@Xinming Zhuo Status: AuthorizationPermissionMismatch|This request is not authorized to perform this operation using this permission.
It's like the oauth token isn't getting set correctly when trying to use that as the authentication mechanism also (re generate the SAS token and also cross verify allowed permissions)
Refer to the suggestion mentioned in this GitHub link and let me know the status
Reference: https://github.com/Azure/azure-storage-azcopy/issues/452#issuecomment-503812803
https://github.com/Azure/azure-storage-azcopy/issues/819
https://github.com/Azure/azure-storage-azcopy/issues/122
Note: Every request made by the user to access/modify data from a storage account must be authenticated/authorized unless the resource being accessed is public resource.
Now there are two broad categories of Authn/AuthZ we support :-
Signature Based Auth:- Shared Key and Shared Access Signature (SAS).
SAS avoids authentication as a specific user and grants restricted access rights to the resource. So the user gets granular level resource access in storage account without hampering security. You can create a SAS key for a resource from Azure_Portal/Storage_Explorer/REST_API etc. So, your copy request will look like
azcopy cp "/path/to/file.txt" "https://[account].blob.core.windows.net/[container]/[path/to/blob]?[SAS]
Please read this for more information.
Identity Based Auth:- Azure AD and Anonymous(Public) Access.
Azure AD is OAuth based token used for AuthN. A user can identify itself by running azcopy login command (OAuth Token). A user is assigned roles which essentially control access-rights such as read, modify, delete etc. Please read this for more information.
For work around you can refer to this GitHub link
Please let us know if you have any further queries. I’m happy to assist you further.
Looking forward for your reply!
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please do not forget to and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.