@description('keyvault name the key is being added to')
param keyVaultName string
@description('The name of the key being added to the keyvault')
param keyName string
@description('The value of the key')
param keyValue string
@description('The content type of the key')
param contentType string = 'plain/text'
resource kv 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
name: keyVaultName
}
resource endpoint 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = {
parent: kv
name: keyName
properties: {
value: keyValue
contentType: contentType
}
}
Confirm
[X] I have read the troubleshooting guide and looked for duplicates.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @RandalliLama, @schaabs, @jlichwa. Please see https://aka.ms/biceptypesinfo for troubleshooting help.
Resource Type
Microsoft.KeyVault/vaults
Api Version
2023-07-01
Issue Type
Type is unavailable
Other Notes
No response
Bicep Repro
Confirm