An IT department implements a security policy that disables shared key access for all Azure Storage accounts. To upload log files to a blob container named `application-logs` in a storage account named `stdata2026`, an administrator runs the `azcopy login` command and authenticates using their Microsoft Entra ID credentials. The administrator is a member of a group assigned the Contributor role for the storage account. When attempting to run the copy command, the administrator receives a HTTP 403 error. Which role must be assigned to the administrator to resolve the issue?
- AStorage Account Contributor
- BStorage Blob Data Reader
- Storage Blob Data ContributorAnswer
- DA Shared Access Signature (SAS) token with write permissions
Answer
Storage Blob Data Contributor
The correct answer is the Storage Blob Data Contributor role. When shared key access is disabled on a storage account, authorization via access keys or SAS tokens is blocked. The administrator must authenticate using Microsoft Entra ID. The Contributor role only grants control plane management capabilities. To write blobs, the administrator must be assigned a data-plane role such as Storage Blob Data Contributor.
Step-by-Step Solution
Key Concept
Azure RBAC distinction between control plane (Contributor) and data plane (Storage Blob Data Contributor) roles when shared key access is disabled.
Estimated Time:1m 30s