Skip to content

Commit 1ecfc84

Browse files
Merge pull request #519 from microsoft/dev
fix: Prefix/Suffix fixes - dev to main
2 parents 6b7ed08 + 1cfe257 commit 1ecfc84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

infra/main.bicep

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ param azureExistingAIProjectResourceId string = ''
6969

7070
var solutionLocation = empty(AZURE_LOCATION) ? resourceGroup().location : AZURE_LOCATION
7171

72-
var uniqueId = toLower(uniqueString(environmentName, subscription().id, solutionLocation))
73-
var solutionPrefix = 'dg${padLeft(take(uniqueId, 12), 12, '0')}'
72+
var solutionPrefix = 'dg${padLeft(take(toLower(uniqueString(subscription().id, environmentName, resourceGroup().location,resourceGroup().name)), 12), 12, '0')}'
7473

7574
// ========== Resource Group Tag ========== //
7675
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {

0 commit comments

Comments
 (0)