-
-
Save johnlokerse/39ce9ed32fea173ea2acb4b3caf9b108 to your computer and use it in GitHub Desktop.
Learn how to enhance objects with User-Defined Types in Azure Bicep blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type accessPoliciesType = { | |
tenantId: string | |
objectId: string | |
permissions: { | |
keys: keyPermissionType? | |
secrets: secretPermissionType? | |
} | |
}[] | |
type keyPermissionType = ('get' | 'list' | 'create' | 'update' | 'delete')[] | |
type secretPermissionType = ('get' | 'list' | 'set' | 'delete')[] | |
param parAccessPolicies accessPoliciesType | |
resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = { | |
name: 'my-key-vault' | |
location: 'westeurope' | |
properties: { | |
enabledForDeployment: true | |
enabledForTemplateDeployment: true | |
enabledForDiskEncryption: true | |
tenantId: tenant().tenantId | |
accessPolicies: parAccessPolicies | |
sku: { | |
name: 'standard' | |
family: 'A' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment