Azure Container Apps Environment : DAPR Key Vault Secret Store Global Managed Identity

Amit-J 341 Reputation points
2025-05-06T13:45:11.1733333+00:00

Hi,

I created key vault secret store DAPR component in container apps environment by following the article - https://learn.microsoft.com/en-us/azure/container-apps/dapr-component-connect-services#azure-key-vault-secret-stores

so, i have issues regarding the Managed Identity to fetch secret from key vault. I have 10 apps deployed on environment and if I give the identity of 1 app to the store, only that app works.. and other 9 apps "daprd" sidecar fails to initialize with error, "Unable to load proper Managed Identity".

If I omit the client id field and dont provide any managed identity to the secret store. then no app works.

However, if I just add the scope in the secret store, with any gibberish string, all the app starst working.. it seems when the scope is provided and no cleint id, all the apps use their own MIs to access key vault.. i know its a bug.

I also tried creating a new MI and attach to the container app environemnt, and provide that cleint id to the secret store, it doesnt work for any app..

so the only solution i can think of is...to create a shared common MI and attach it to all the 10 apps and mention that client id in secret store.. yes this will mean that most of my apps might end up multiple MIs attached to themselves..

is there a proper solution, where i can create only 1 kv secret store and use it globally for all apps in the same container app environment ????

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
644 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.