【发布时间】:2022-12-23 12:36:19
【问题描述】:
如果我使用 ARM 模板在 Azure 中创建 IP 组并希望将多个 IP 地址添加为参数而不是将它们放入资源主体中,这可能吗?
模板如下
{
"type": "Microsoft.Network/ipGroups",
"apiVersion": "2021-05-01",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"ipAddresses": [ "10.10.10.10",
"10.10.10.11" ]
}
}
如果我创建如下所示的参数
"ipgipaddress": {
"type": "string
"Value":
"10.10.10.10",
"10.10.10.11"
}
并将代码更新为
{
"type": "Microsoft.Network/ipGroups",
"apiVersion": "2021-05-01",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"ipAddresses": "[parameters('ipgroupsettings')]"
}
}
【问题讨论】:
标签: json azure azure-resource-manager