22
loading...
This website collects cookies to deliver better user experience
.bicep
format, see Decompiling an ARM Template.*.bicep
files and the tooling will transpile the code and send it to ARM on your behalf. For example, to deploy main.bicep
to a resource group my-rg
, we can use the CLI command we are already used to:az deployment group create -f ./main.bicep -g my-rg
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = {
name: 'name'
location: resourceGroup().location
properties: {
addressSpace: {
addressPrefixes: [
'10.0.0.0/16'
]
}
subnets: [
{
name: 'Subnet-1'
properties: {
addressPrefix: '10.0.0.0/24'
}
}
{
name: 'Subnet-2'
properties: {
addressPrefix: '10.0.1.0/24'
}
}
]
}
}