An Azure service that stores unstructured data in the cloud as blobs.
Hello Ahsaan Mukhi,
The 403 AuthorizationPermissionMismatch error you are encountering when using azcopy to upload a file to Azure Blob Storage typically indicates that the service principal does not have the necessary permissions for the operation you are trying to perform. Even though you mentioned that the service principal has "storage Blob data owner" permissions, it's important to ensure that the following are correctly configured:
- Role Assignment: Verify that the service principal is assigned the correct role at the appropriate scope (at the storage account level and the container(data)level).
- SAS Token or Authentication Method: If you are using a Shared Access Signature (SAS) token, ensure that it includes the necessary permissions (read, write, delete, etc.) and that it is not expired.
- Access Control Lists (ACLs): If you are using ACLs, ensure that the service principal is included in the ACL entries for the blob or container and has the appropriate permissions.
- Azure RBAC: If using Azure Role-Based Access Control (RBAC), confirm that the service principal has the required roles assigned, such as "Storage Blob Data Contributor" or "Storage Blob Data Owner" and at least "Reader" at the resource level.
References:
- Troubleshoot issues in AzCopy v10
- Authorize access to blobs and files with AzCopy and Microsoft Entra ID
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.