Skip to content

Moving Microsoft.Web/certificates between Key Vaults #5997

Answered by brwilkinson
chwarr asked this question in Q&A
Discussion options

You must be logged in to vote

How was the certificate created/generated? i.e. was it an App Service Certificate?

or was it imported (manually) into the keyvault?

  • There is no specific way to copy a certificate in Bicep that I am aware of.

I do sync keyvault secrets and certificates with this script.

https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/1-prereqs/3-Start-AzureKVSync.ps1

 .\3-Start-AzureKVSync.ps1 -primaryKVName ACU1-BRW-AOA-P0-kvVLT01 -SecondaryKVName AWU1-BRW-AOA-P0-kvVLT01

I would suggest to sync or copy the cert over to the new keyvault, then register a new web certificate, based on the new values.

Adding this incase it is helpful:
https://github.com/brwilkinson/AzureDeploymentFrame…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@brwilkinson
Comment options

@chwarr
Comment options

@brwilkinson
Comment options

@chwarr
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants