Mid
From PDF
Azure
Microsoft Azure
How do you use managed identity with Key Vault?
Short answer: Enable Managed Identity on your App Service or Function App. Grant Key Vault access policy to the identity. Access secrets without storing credentials: var client = new SecretClient(new Uri(" new DefaultAzureCredential()); KeyVaultSecret secret = client.GetSecret("MySecret");
Example code
string value = secret.Value;
Real-world example (ShopNest)
Connection strings and payment keys live in Key Vault—not in source control or plain appsettings on disk.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png