Created
March 29, 2022 20:31
-
-
Save StefanIvemo/582a147399e776c4d2a7ce84221820e8 to your computer and use it in GitHub Desktop.
bicep-loops-modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vnets = [ | |
{ | |
name: 'landingzone-1-vnet' | |
addressPrefix: '10.1.0.0/24' | |
} | |
{ | |
name: 'landingzone-2-vnet' | |
addressPrefix: '10.2.0.0/24' | |
} | |
] | |
module virtualNetwork 'modules/virtualNetwork.bicep' = [for vnet in vnets: { | |
name: '${vnet.name}-deploy' | |
params: { | |
vnetName: vnet.name | |
addressPrefix: vnet.addressPrefix | |
} | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment