-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Question about Azure Key Vault secrets
When I try to create a new secret in an Azure Key Vault using Set-Secret I don't know how to provide information about values that are enforced by Azure Policy.
When using the Set-AzKeyVaultSecret cmdlet from Az.KeyVault all works fine.
I have to run it like this
Set-AzKeyVaultSecret -VaultName vault -Name "test" -Expires ((get-date).AddDays(88)) -SecretValue (ConvertTo-SecureString "xxx" -AsPlainText -Force) -ContentType 'txt'
Is it possible to do this with Set-Secret or should Set-AzKeyVaultSecret be used?
Proposed technical implementation details (optional)
No response
Metadata
Metadata
Assignees
Labels
No labels