Skip to content

Add Key Vault Secret to App Service Settings #2279

Answered by alex-frankel
thepaulmacca asked this question in Q&A
Discussion options

You must be logged in to vote

Has the key vault and secret already been created? Or are you looking to create that as part of the bicep code?

If it's the former, then you would reference the secret in a parameters file the same way you would for an ARM template and provide that parameters file to the deployment client you are using, so you would do something like:

az deployment group create -f main.bicep -p params.json

You also need to make sure the key vault has been enabled for template deployment which you can do when you create the key vault or you can enable it at any time in the portal:

If it's the latter, then you may be blocked by #1571. The only way to reference a secret dynamically is to use a nested deplo…

Replies: 3 comments 14 replies

Comment options

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

@thepaulmacca
Comment options

@alex-frankel
Comment options

@thepaulmacca
Comment options

@alex-frankel
Comment options

Answer selected by thepaulmacca
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@miqm
Comment options

@thepaulmacca
Comment options

@miqm
Comment options

@thepaulmacca
Comment options

@thepaulmacca
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants