Creating 20+ Azure Resource Group with Locks two locations in the US (West and East). I can not fine JSON
template or cli
template which would let me create them through user prompt in the terminal or through JSON parameter in the console. I cant be creating one by one for both the regions using
New-AzureRmResourceGroup -Name $rgName -Location $locName
Closest i saw in MS site is the below -
variables
`$labPrefix = "Mlab"
$labnumber = "2017"
$labsubnet = "55"
$rgName = $labPrefix + $labnumber #New resource group name
$locName = "West Europe" # Loation of new resource group
$saName = $rgName.Replace("-","").tolower()
$saType="Standard_LRS" # Storage account type`
If i was creating RG as Mlab2017 - this would work. but mine would have 4 different labPrefix and 4 different labnumber. I cant seem to find a better solutions for this. any help on creating the json array with or shell script array to pass and create the RG with Locks will be highly appreciated.