1

I have created the Azure Key Vault for connection string. After the configuration setup I am able to get the data using the key-vault in ASP.Net MVC deployed in Azure. Locally, I tested the app and found no issue since I am able to connect but I am thinking about where to use the Managed Identity. I have read several documents they are talking about key-Vault but I am unable to grasp the use of the managed identity relevant to the MVC app and secret of Key Vault. I am figuring out if I am missing something at this point. Can someone help?

Jashvita
  • 553
  • 3
  • 24

2 Answers2

1

Managed Identity is used when the App Service is uploaded to Azure. When you run locally, it uses your credentials to access the Key Vault. Once you upload to Azure, you'll need a different identity since you won't be logged into the app in that manner. The Managed Identity assigned to your application prevents the need to hard code the identity into the application and is also more secure by not requiring an explicit client secret.

Matt Small
  • 2,182
  • 1
  • 10
  • 16
  • You have answered me and I have setup the Managed Identity by going to the Key-Vault and selected the app for it to have access to the Azure Key Vault but I am getting error. I create a new question for that. Thanks – Jashvita Jan 21 '22 at 21:42
1

Is the below answer the answer of your question. I mentioned step by step in the below answer. I have implemented same thing my microservice PAAS System.

Answer

Please let me know if you have any doubts or question. Even if you are facing any issues.

Pradeep Kumar
  • 1,193
  • 1
  • 9
  • 21