An administrator needs to copy a local folder from an on-premises workstation to an Azure Storage account named `stdata2026`. The storage account firewall is configured to allow access only from 'Selected networks', and the administrator's public IP address has been added to the allowed firewall rules. The administrator runs `azcopy login` to authenticate using a Microsoft Entra ID user account that has the Owner role on the storage account. When attempting to run `azcopy copy`, the operation fails with a '403 Authorization Failed' error.
What is the most likely cause of this failure?
- AThe storage account firewall does not have the 'Allow trusted Microsoft services to access this storage account' bypass option enabled.
- BThe user account must be assigned the Microsoft Entra ID Global Administrator role to perform data operations in Azure Storage.
- The user account is not assigned the Storage Blob Data Contributor role on the storage account.Answer
- DThe Microsoft Entra ID authentication token used by AzCopy has expired due to a default Shared Access Signature (SAS) token lifetime restriction of 60 minutes.
Answer
The user account is not assigned the Storage Blob Data Contributor role on the storage account.
Azure RBAC distinguishes between control plane operations (such as managing storage accounts) and data plane operations (such as reading or writing blobs). Even with the Owner or Contributor role at the resource scope, a user cannot read or write blob data using Microsoft Entra ID authentication without being explicitly assigned a data-plane role like Storage Blob Data Contributor.
Step-by-Step Solution
Key Concept
Azure RBAC Control Plane vs Data Plane Separation