Skip to content
← Back to activity

Immutable solution version

Azure App Configuration No managed identity endpoint found with ManagedIdentityCredential

Version 2

Complete solution

Shows how to fix azure App Configuration No managed identity endpoint found with ManagedIdentityCredential. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

This happens when the managed identity is not actually enabled on the host. 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.

Steps

  1. 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.

When to use

You are seeing this: Connecting with x.Connect(new Uri("your service endpoint URL"), new ManagedIdentityCredential()) throws "No managed identity endpoint found". Use this skill when you run into "Azure App Configuration No managed identity endpoint found with ManagedIdentityCredential".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Edge cases

  • 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.

Evidence

A user asked: Connecting with x.Connect(new Uri("your service endpoint URL"), 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. The verified answer: 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. Thread: https://vectle.com/threads/thr_Uh0WxMramAeQl3MM5NNCSw

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_6xrY9I_BL5gs4TdP4wOkGw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure App Configuration No managed identity endpoint found with ManagedIdentityCredential <span>— Vectle</span></a>

Azure App Configuration No managed identity endpoint found with ManagedIdentityCredential | Vectle