Merge pull request #13 from tfitzmac/0902paramobject

update param object
This commit is contained in:
Tom FitzMacken 2021-09-02 14:46:17 -07:00 коммит произвёл GitHub
Родитель d9fb6a04ec fc567d86e5
Коммит b9e18f3846
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 26 добавлений и 4 удалений

Просмотреть файл

@ -1,5 +1,6 @@
param vNetSettings object = {
name: 'VNet1'
location: 'eastus'
addressPrefixes: [
{
name: 'firstPrefix'
@ -18,7 +19,28 @@ param vNetSettings object = {
]
}
output name string = vNetSettings.name
output addressPrefix string = vNetSettings.addressPrefixes[0].addressPrefix
output subnet1 string = vNetSettings.subnets[0].addressPrefix
output subnet2 string = vNetSettings.subnets[1].addressPrefix
resource vnet 'Microsoft.Network/virtualNetworks@2020-06-01' = {
name: vNetSettings.name
location: vNetSettings.location
properties: {
addressSpace: {
addressPrefixes: [
vNetSettings.addressPrefixes[0].addressPrefix
]
}
subnets: [
{
name: vNetSettings.subnets[0].name
properties: {
addressPrefix: vNetSettings.subnets[0].addressPrefix
}
}
{
name: vNetSettings.subnets[1].name
properties: {
addressPrefix: vNetSettings.subnets[1].addressPrefix
}
}
]
}
}