question

CloudRock avatar image
5 Votes"
CloudRock asked bhargaviannadevara-msft edited

Configure webapp to access key vault


Here's a technical question I need an answer for :

You have the following azure resources :
- Azure Key Vaullt named KeyVault1
- Azure App Service named WebApp1

You need to ensure that WebApp1 can access KeyVault1 by using Azure Active Directory (Azure AD) authentication.

Which two settings can be used to configure WebApp1 ? Each correct answer represents a complete solution.

  • User assigned managed identity

  • Application settings

  • TLS/SSL bindings

  • App Service Authentication

  • System assigned managed identity



azure-webappsazure-key-vault
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

bhargaviannadevara-msft avatar image
37 Votes"
bhargaviannadevara-msft answered bhargaviannadevara-msft edited

@CloudRock Thanks for reaching out. Using Managed Identity can help you with your requirement.

A managed identity from Azure Active Directory (Azure AD) allows your app to easily access other Azure AD-protected resources such as Azure Key Vault. The identity is managed by the Azure platform and does not require you to provision or rotate any secrets.

Your application can be granted two types of identities:

  • A system-assigned identity is tied to your application and is deleted if your app is deleted. An app can only have one system-assigned identity.

  • A user-assigned identity is a standalone Azure resource that can be assigned to your app. An app can have multiple user-assigned identities.

To know more about how to use managed identities for App Service and the different ways to set it up, please check this article.

Check this tutorial and code sample for a detailed walkthrough.

Hope this helps. Do let us know if you have any further questions.


If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.