Skip to content

Commit

Permalink
Make keyvault name unique
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekku2 committed Jul 1, 2024
1 parent 47189cb commit 853c0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/key-vault.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource identities 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-07-31
}
]

var keyVaultName = replace('kv${baseName}', '-', '')
var keyVaultName = 'kv${uniqueString(resourceGroup().id, baseName)}'
resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' = {
name: keyVaultName
location: location
Expand Down

0 comments on commit 853c0ab

Please sign in to comment.