@@ -66,21 +66,21 @@ var envShort = (envMap[?toLower(environmentRaw)] ?? substring(toLower(environmen
6666
6767// Create a resource group for global assets
6868resource globalResourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
69- name : 'rg-global-${envShort }'
69+ name : 'rg-stamps- global-${envShort }'
7070 location : regions [0 ].regionName
7171 tags : union (tags , { scope : 'global' })
7272}
7373
7474// Create a resource group for each region
7575resource regionResourceGroups 'Microsoft.Resources/resourceGroups@2021-04-01' = [for region in regions : {
76- name : 'rg-region-${region .geoName }-${region .regionName }'
76+ name : 'rg-stamps- region-${region .geoName }-${region .regionName }-${ envShort }'
7777 location : region .regionName
7878 tags : union (tags , { geo : region .geoName , region : region .regionName , scope : 'region' })
7979}]
8080
8181// Create a resource group for each CELL
8282resource cellResourceGroups 'Microsoft.Resources/resourceGroups@2021-04-01' = [for cell in cells : {
83- name : 'rg-cell-${cell .geoName }-${cell .regionName }-${cell .cellName }'
83+ name : 'rg-stamps- cell-${cell .geoName }-${cell .regionName }-${cell .cellName }-${ envShort }'
8484 location : cell .regionName
8585 tags : union (tags , {
8686 geo : cell .geoName
@@ -102,7 +102,7 @@ resource cellResourceGroups 'Microsoft.Resources/resourceGroups@2021-04-01' = [f
102102// Deploy regional modules into their region RGs
103103module regionalNetworks './regionalNetwork.bicep' = [for (region , idx ) in regions : {
104104 name : 'regionalNetwork-${region .geoName }-${region .regionName }'
105- scope : resourceGroup ('rg-region-${region .geoName }-${region .regionName }' )
105+ scope : resourceGroup ('rg-stamps- region-${region .geoName }-${region .regionName }-${ envShort }' )
106106 params : {
107107 location : region .regionName
108108 geoName : region .geoName
@@ -150,7 +150,7 @@ module regionalLayers './regionalLayer.bicep' = [for (region, idx) in regions: {
150150// Deploy the CELL module into each dedicated RG
151151module deploymentStampLayers './deploymentStampLayer.bicep' = [for (cell , idx ) in cells : {
152152 name : 'cell-${cell .geoName }-${cell .regionName }-${cell .cellName }'
153- scope : resourceGroup ('rg-cell-${cell .geoName }-${cell .regionName }-${cell .cellName }' )
153+ scope : resourceGroup ('rg-stamps- cell-${cell .geoName }-${cell .regionName }-${cell .cellName }-${ envShort }' )
154154 params : {
155155 location : cell .regionName
156156 sqlServerName : toLower ('sql-${(geoShortNames [?cell .geoName ] ?? substring (cell .geoName , 0 , 2 ))}-${(regionShortNames [?cell .regionName ] ?? substring (cell .regionName , 0 , 3 ))}-cell${(substring (substring (cell .cellName , length (cell .cellName ) - 3 , 3 ), 0 , 2 ) == '00' ? substring (substring (cell .cellName , length (cell .cellName ) - 3 , 3 ), 2 , 1 ) : (substring (substring (cell .cellName , length (cell .cellName ) - 3 , 3 ), 0 , 1 ) == '0' ? substring (substring (cell .cellName , length (cell .cellName ) - 3 , 3 ), 1 , 2 ) : substring (cell .cellName , length (cell .cellName ) - 3 , 3 )))}-${envShort }' )
0 commit comments