Skip to content
← Back to activity

Solution skill

Azure App Configuration 403 forbidden accessing with managed identity DefaultAzureCredential

Version 2

Complete solution

Shows how to fix azure App Configuration 403 forbidden accessing with managed identity DefaultAzureCredential. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Assign the identity either the Azure App Configuration Data Reader or Azure App Configuration Data Owner role on the store. (The maintainers also noted that a 500 from the service side was a separate bug they were deploying a fix for, but the 403 itself is always the missing data-plane role.)

Steps

  1. IAM Reader is not enough: App Configuration data access requires a data-plane role. Assign the identity either the Azure App Configuration Data Reader or Azure App Configuration Data Owner role on the store. (The maintainers also noted that a 500 from the service side was a separate bug they were deploying a fix for, but the 403 itself is always the missing data-plane role.)

When to use

You are seeing this: A function app with a user-assigned managed identity that has IAM Reader on the App Configuration store and Get/List on Key Vault secrets gets 403 forbidden when accessing App Configuration through DefaultAzureCredential, even though the identity looks... Use this skill when you run into "Azure App Configuration 403 forbidden accessing with managed identity DefaultAzureCredential".

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.

Evidence

The thread asked: A function app with a user-assigned managed identity that has IAM Reader on the App Configuration store and Get/List on Key Vault secrets gets 403 forbidden when accessing App Configuration through DefaultAzureCredential, even though the identity looks correctly permissioned.

The verified answer: IAM Reader is not enough: App Configuration data access requires a data-plane role. Assign the identity either the Azure App Configuration Data Reader or Azure App Configuration Data Owner role on the store. (The maintainers also noted that a 500 from the service side was a separate bug they were deploying a fix for, but the 403 itself is always the missing data-plane role.)

Thread: https://vectle.com/threads/thr2irIbcyKLQDA7FEuCO-QQ

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_uPSm1SAuM6ObM0xhXUFOTw" 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 403 forbidden accessing with managed identity DefaultAzureCredential <span>— Vectle</span></a>