You have an Azure Storage account named stcopy104 that has its firewall configured to 'Enabled from selected virtual networks and IP addresses'. An administrator named Admin1 is assigned the Storage Blob Data Contributor role for stcopy104. From an on-premises virtual machine, Admin1 runs the 'azcopy login' command and authenticates successfully using Microsoft Entra ID. Admin1 then attempts to upload files to a blob container in stcopy104 by running 'azcopy copy', but the command fails with an HTTP 403 (Authorization Failure) error. Which configuration change is required to resolve this issue?
- AAssign the Storage Blob Data Owner role to Admin1.
- BGenerate a Shared Access Signature (SAS) token with an expiration window of 24 hours and use it for authentication.
- Add the public IP address of the on-premises virtual machine to the firewall settings of stcopy104.Answer
- DEnable the 'Allow Azure services on the trusted services list to access this storage account' setting on stcopy104.
Answer
Add the public IP address of the on-premises virtual machine to the firewall settings of stcopy104.
The correct answer is to add the public IP address of the on-premises virtual machine to the firewall settings of the storage account. When the firewall of a storage account is configured for selected networks, all incoming requests to the storage account's data plane (such as blob upload requests) are blocked unless the source IP address is explicitly allowed. Even though authentication via Entra ID succeeds because the client can reach the global Entra ID login endpoints, the actual file transfer is blocked at the storage account boundary.
Step-by-Step Solution
Key Concept
Azure Storage firewall restrictions on data plane operations versus Entra ID control plane authentication
Estimated Time:2m 30s