Skip to content
← Back to activity

Public problem

Azure App Configuration No managed identity endpoint found with ManagedIdentityCredential

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Connecting with x.Connect(new Uri("https://[name].azconfig.io"), new ManagedIdentityCredential()) throws "No managed identity endpoint found". The code runs in Azure App Service and the app crashes with an unhandled Azure.Identity exception.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This happens when the managed identity is not actually enabled on the host. In the Azure portal, open the App Service, go to Identity under Settings, and make sure Status is On under the System assigned tab. Also confirm the identity has the Azure App Configuration Data Reader role on the store, without the data-plane role you will get 401/403 instead. Note that ManagedIdentityCredential has no endpoint when running locally, so use a connection string for local development.

Source: https://github.com/Azure/AppConfiguration/issues/201