azure - 如何在使用 ARM 模板创建时为 Azure Key Vault 设置“选定网络”
问题描述
我想将防火墙状态设置为“选定网络”——在我创建 Azure Key Vault 服务时基本上拒绝所有数据包。(我有另一个自动化来设置商定的防火墙规则)。
我正在部署 ARM 模板并使用以下属性:
"networkAcls": {
"value": {
"defaultAction": "Deny",
"bypass": "AzureServices"
}
}
但是,这是行不通的。
当前结果:
这就是我要的:
解决方案
Here is the template i tried for Network ACL which worked for me, I have not added Value node in the template.
"networkAcls": {
"bypass": "string",
"defaultAction": "string",
"ipRules": [
{
"value": "string"
}
],
"virtualNetworkRules": [
{
"id": "string"
}
]
}
}
Reference: https://docs.microsoft.com/en-us/azure/templates/microsoft.keyvault/2018-02-14/vaults
try and see if it works for you.
推荐阅读
- javascript - 使用javascript从2个选择字段计算数据到输入字段
- groovy - 在 Jenkinsfile 中设置可重用属性的最佳方法
- javascript - 如何在 React 的道具中应用 css 样式?
- jenkins - 如何使用 Groovy 脚本在 Jenkins 中设置默认凭据?
- django - Django 管理员:“另存为新”忽略 GenericForeignKey
- python - Python:Telnetlib 仅命令不带空格
- c# - AbpSession 如何以及何时设置?
- mysql - mysql计算列表中的不同元素
- php - php 数组到 json 字符串的转换
- php - ACF 中继器字段未更新