Overview
|
|
| Name |
keyvaultsecret |
| Tag |
2026.8.31.6 |
| FullName |
br:bicepacrdevwcom.azurecr.io/bicep/modules/keyvaultsecret:2026.8.31.6 |
| Last updated |
2026-08-31 10:51:31:+00:00 |
| Created |
2026-08-31 10:51:31:+00:00 |
| Digest |
sha256:3bef150b71d7b30fe858862db948c10e0224d02ff2d0eed793f54416e4286a70 |
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.8.31.6' = {
name: 'keyvaultsecret${env}${version}'
params: {
keyVaultName: keyVaultName
name: name
value: value
expire: expire
notBefore: notBefore
contentType: contentType
}
}