Overview
|
|
| Name |
keyvaultsecret |
| Tag |
2026.9.9.2 |
| FullName |
br:bicepacrdevwcom.azurecr.io/bicep/modules/keyvaultsecret:2026.9.9.2 |
| Last updated |
2026-09-09 12:49:05:+00:00 |
| Created |
2026-09-09 12:49:05:+00:00 |
| Digest |
sha256:70aea865e7f00424cc9632624e717bc76e6aeeb7a789e1dd2398eb6ef5a7e4b1 |
Parameters
| Name |
Type |
Required |
Description |
keyVaultName |
string |
Yes |
|
name |
string |
Yes |
|
value |
▲ secure ▲
string |
Yes |
|
enabled |
bool |
No
true |
Enable or disable the secret. Defaults to true. |
expire |
string |
Yes |
Expiration date and time in UTC, formatted as '2026-08-31T12:00:00Z'. Leave null or empty to create the secret without an expiration date. |
notBefore |
string |
Yes |
Activation date and time in UTC, formatted as '2026-08-31T12:00:00Z'. Leave null or empty to create the secret without an activation date. |
contentType |
string |
Yes |
Content type of the secret. Leave null or empty to use the default content type. |
tags |
object |
No
{ } |
Tags for the secret. Leave null or empty to not add any tags. |
Outputs
| Name |
Type |
Description |
secretUri |
string |
|
Example
@description('The target environment.')
param env string
@description('The deployment version.')
param version string = '1.0.0.0'
param keyVaultName string
param name string
@secure()
param value string
@description('Expiration date and time in UTC, formatted as '2026-08-31T12:00:00Z'. Leave null or empty to create the secret without an expiration date.')
param expire string
@description('Activation date and time in UTC, formatted as '2026-08-31T12:00:00Z'. Leave null or empty to create the secret without an activation date.')
param notBefore string
@description('Content type of the secret. Leave null or empty to use the default content type.')
param contentType string
module keyvaultsecret 'br:bicepacrdevwcom.azurecr.io/bicep/modules/keyvaultsecret:2026.9.9.2' = {
name: 'keyvaultsecret${env}${version}'
params: {
keyVaultName: keyVaultName
name: name
value: value
expire: expire
notBefore: notBefore
contentType: contentType
}
}