Reputation: 4319
So we have started to use Azure Key Vault for our secrets, but looks like applications running as Azure App Services have to have application setting values hardcoded in the portal. Is there a way to have the application settings in App Services pull from Key Vault?
Upvotes: 3
Views: 930
Reputation: 19494
Yes you can. By saving app settings value as azure keyvault reference .
@Microsoft.KeyVault(SecretUri=https://myvault.vault.azure.net/secrets/mysecret/ec96f02080254f109c51a1f14cdb1931)
Please note that your app should have access you can setup using Managed Service Identity (MSI)
Other option is when you use .net is that you can use extension to read settings
Upvotes: 4