Skip to content

Commit 823789e

Browse files
committed
style: Clean up comments and formatting in CI/CD workflow configuration
1 parent fcb0890 commit 823789e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

blueprints/gh-aspnet-webapp/bicep/main.bicep

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
2929
location: location
3030
}
3131

32+
// Generate unique suffix based on resource group ID for customer-specific uniqueness
33+
var uniqueSuffix = uniqueString(resourceGroup.id)
34+
3235
// Deploy resources within the resource group
3336
module resourcesInRG './resources.bicep' = {
3437
name: 'deployResourcesInRG'
3538
scope: resourceGroup
3639
params: {
37-
acrName: acrName
40+
acrName: '${acrName}${uniqueSuffix}'
3841
acrSku: acrSku
39-
appServicePlanName: appServicePlanName
40-
webAppName: webAppName
42+
appServicePlanName: '${appServicePlanName}-${uniqueSuffix}'
43+
webAppName: '${webAppName}-${uniqueSuffix}'
4144
location: location
4245
containerImage: containerImage
4346
}

0 commit comments

Comments
 (0)