Skip to content

Commit

Permalink
Add option to enable template deployment usage (#4027)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied authored and Menghua1 committed Jul 11, 2024
1 parent 04a810f commit f0e559d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/common/infra/bicep/core/security/keyvault.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ param tags object = {}

param principalId string = ''

@description('Allow the key vault to be used for template deployment.')
param enabledForDeployment bool = false

resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' = {
name: name
location: location
Expand All @@ -19,6 +22,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' = {
tenantId: subscription().tenantId
}
] : []
enabledForDeployment: enabledForDeployment
}
}

Expand Down

0 comments on commit f0e559d

Please sign in to comment.