app service configuration accessing key vault keys using manage identities?

Khas, Mohit 21 Reputation points
2021-07-23T17:36:21.247+00:00

Azure functions can access the reference of keys from key vaults when authenticated via manage identities.
Means If we copy the reference of key from key vault, add a key in configuration of function app, its value as the reference of key(eg: @Microsoft.KeyVault(SecretUri=https://xyzVault.vault.azure.net/secrets/testKey/)), enable the manage identity, then function app can directly access the value of that key in Key vault.
There is no need for code change. But can we do the same for App service?
I am looking for a way, that i put the reference of key from key vault in the configuration of app service and it is able to access it from keyVault directly once manage identity is enabled for this app service in Key Vault. and No code change is required.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,115 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,261 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,876 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,466 questions
0 comments No comments
{count} votes

Accepted answer
  1. ajkuma 22,401 Reputation points Microsoft Employee
    2021-07-26T19:47:08.17+00:00

    @Khas, Mohit , Apologies for the delay in responding from over the weekend.

    The feature is shared by both products ( App Service and Azure Functions). It should work for App Service as well, please see this doc -This topic shows you how to work with secrets from Azure Key Vault in your App Service or Azure Functions application without requiring any code changes.

    Please let us know if this works/you're facing any specific issues (errors) implementing the same for App Service/ or if I have misunderstood your question.


0 additional answers

Sort by: Most helpful