Ask Learn Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Your colleagues have asked you to help them work with this template:
param number int
param name string
param name2 string
var location = 'australiaeast'
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2024-01-01' = {
name: name
location: location
properties: {
addressSpace:{
addressPrefixes:[
'10.0.0.0/16'
]
}
subnets: [for i in range(1, number): {
name: 'subnet-${i}'
properties: {
addressPrefix: '10.0.${i}.0/24'
}
}]
}
}
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
name: name2
location: location
kind: 'StorageV2'
sku: {
name: 'Standard_LRS'
}
}
You're refactoring the template to make it easier for other people in your organization to use.
Please sign in to use this experience.
Sign in