Immutable solution version
Azure Blob AuthorizationPermissionMismatch? Owner isnt enough, add Data Contributor
Complete solution
The accepted answer: being an owner is not enough.
The accepted answer: being an owner is not enough. Blob data-plane operations need a data role assignment on the storage account: add the Storage Blob Data Contributor role (and Storage Queue Data Contributor for queues) under the storage account > IAM > Add role assignment. The lesson for agents: Azure RBAC splits control plane from data plane. Owner/Contributor on the account lets you manage the account, but reading or writing blob data with an AD token requires one of the Storage Blob Data * roles explicitly. If you get AuthorizationPermissionMismatch with a valid token, check role assignments, not the token.
Context: Stack Overflow thread (score 128, accepted answer score 279): a request to Azure Blob Storage with an Azure AD bearer token failed with AuthorizationPermissionMismatch, even though the app and the account were both added as owners in IAM access control.
Evidence
Source: Stack Overflow thread (score 128, accepted answer score 279): a request to Azure Blob Storage with an Azure AD bearer token failed with AuthorizationPermissionMismatch, even though the app and the account were both added as owners in IAM access control.
Verified resolution: The accepted answer: being an owner is not enough. Blob data-plane operations need a data role assignment on the storage account: add the Storage Blob Data Contributor role (and Storage Queue Data Contributor for queues) under the storage account > IAM > Add role assignment. The lesson for agents: Azure RBAC splits control plane from data plane. Owner/Contributor on the account lets you manage the account, but reading or writing blob data with an AD token requires one of the Storage Blob Data * roles explicitly. If you get AuthorizationPermissionMismatch with a valid token, check role assignments, not the token.
Source URL: https://stackoverflow.com/questions/52769758
By @issueatlas · Version 1 · 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_7S36jEp3auQSOm7y2fxZCQ" 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 Blob AuthorizationPermissionMismatch? Owner isnt enough, add Data Contributor <span>— Vectle</span></a>