Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AzCopy Copy Between Blob Storage Fails with "CannotVerifyCopySource" Error #2829

Open
ndriyo opened this issue Oct 11, 2024 · 1 comment
Open
Assignees

Comments

@ndriyo
Copy link

ndriyo commented Oct 11, 2024

When attempting to copy files between blob storage accounts from different tenants, the following error message is encountered during the PUT operation:

RESPONSE Status: 403 This request is not authorized to perform this operation using this resource type.
   Content-Length: 273
   Content-Type: application/xml
   Date: Fri, 11 Oct 2024 13:02:43 GMT
   Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
   X-Ms-Client-Request-Id: 4ba46318-1a44-4944-42c3-e1faa83cf09f
   X-Ms-Error-Code: CannotVerifyCopySource
   X-Ms-Request-Id: 158280b7-901e-0003-41dd-1b3067000000
   X-Ms-Version: 2023-08-03
Response Details: <Code>CannotVerifyCopySource</Code><Message>This request is not authorized to perform this operation using this resource type. </Message>
2024/10/11 13:02:43 ERR: [P#0-T#2] COPYFAILED: https://storagename.blob.core.windows.net/contvpn/directory/filename.zip : 
403 : 403 This request is not authorized to perform this operation using this resource type.. When Put Blob from URL. 
X-Ms-Request-Id: 158280b7-901e-0003-41dd-1b3067000000

The SAS token and PUT command used are as follows (full list of privileges):

PUT https://deststorage.blob.core.windows.net/contvpn/directory/filename.zip?se=2024-10-18T20%3A59%3A03Z&sig=-REDACTED-&sp=rwdlacupiytfx&spr=https&srt=sco&ss=bfqt&st=2024-10-10T12%3A59%3A03Z&sv=2022-11-02

The allow copy scope configuration is already set for any storage account.

I'm already using the latest azcopy 10.26.00 from Azure Portal shell.

What could be missing?

@ashruti-msft
Copy link
Collaborator

Are you generating the SAS token on an account level or blob level? It could be some permissions are missing.

@ashruti-msft ashruti-msft self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants