We got the below error while trying to transfer files to Azure Blob Storage using AzCopy
INFO: Authentication failed, it is either not correct, or expired, or does not have the correct permission -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /email@example.com/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=AuthorizationPermissionMismatch) =====
Description=This request is not authorized to perform this operation using this permission.
Here we were using Azure Active Directory to provide authorization credentials to AzCopy
The account (service principal) we were using was having the Owner Role
To fix this issue, we assigned the
Storage Blob Data Contributor role to the account.
Retrying again after some time fixed the issue.
Points to keep in mind –
Hope it helps..