How does one create a certificate in keyvault via Bicep? #8457
-
I use bicep to create my Keyvault, but want the Keyvault to have some default certs after creation. Really I can't seem to find the equivalent of https://learn.microsoft.com/en-us/cli/azure/keyvault/certificate?view=azure-cli-latest#az-keyvault-certificate-create Is this just a ARM limitation? I do see capability for creating secrets but nothing for certificates. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
Well done! |
Beta Was this translation helpful? Give feedback.
You create certificates via policy.
There is a known issue about
Certificates
resource provider under keyvault not being published.So you have to use an alternate method.
I use deploymentscripts
example for issuers, you can also do self signed instead of this, however it's not a valid cert
plus you may need some extra settings for these...
Module to create issuer
DeploymentScript in the Module