Unable to copy files from One storage account to another using Az Copy

Shwetha J 15 Reputation points
2025-12-02T14:51:08.2433333+00:00

We encountered the error CannotVerifyCopySource when using AzCopy with SAS tokens to copy data between two Azure File Shares.

We are attempting to copy data between two Azure Storage accounts using AzCopy with SAS tokens.

Both source and destination accounts are configured with private endpoints only.

Public network access is disabled on both accounts.

The operation fails with error: CannotVerifyCopySource.

When we temporarily enable public network access, the copy works as expected.

Question: Can you confirm if this is a known product limitation — that AzCopy with SAS tokens requires public endpoint access for validation and cannot work when both accounts are restricted to private endpoints? If so, is the only supported workaround to either enable public access or perform a two-step copy (download + upload)?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-02T14:51:24.71+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Yes, the issue you are encountering with AzCopy and the error CannotVerifyCopySource when both source and destination Azure Storage accounts are configured with private endpoints is a known limitation. AzCopy requires public endpoint access for validation when using SAS tokens, which is why the operation fails with private endpoint configurations.

    The only supported workarounds in this scenario are to either enable public network access temporarily or to perform a two-step copy process, where you first download the data to a local machine and then upload it to the destination account.


    References:

    0 comments No comments

  2. Jeevan Shanigarapu 3,275 Reputation points Microsoft External Staff Moderator
    2025-12-02T18:02:30.2133333+00:00

    Hello @Shwetha,

    Welcome to Microsoft Q&A Platform & thank you for reaching out.

    I understand your question regarding the issue with copying files between Azure Storage accounts using AzCopy and encountering the error "CannotVerifyCopySource." This seems related to the configuration of your private endpoints.

    Here's what you need to know:

    1. Error Details: The error you're seeing typically occurs because AzCopy is unable to verify the source when both source and destination storage accounts are configured with private endpoints and public network access is disabled.
    2. Product Limitation: Yes, this behavior can indeed be considered a known limitation with AzCopy when used with SAS tokens for accounts that have been set up with only private endpoints. For AzCopy to verify the source for the copy operation, it may need access to the public internet.
    3. Workarounds:
      • The quickest way to bypass this error is to temporarily enable public network access as you already found out, which allows the copy operation to succeed.
      • Alternatively, you can adopt the two-step approach of first downloading the content from the source account and then uploading it to the destination account, though this may be less efficient.

    For your next steps, if you'd like more optimized solutions, consider checking if your network environment allows certain configurations to manage the transfer process better while maintaining security.

    Relevant Documentation:

    https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10

    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/blobs/connectivity/copy-blobs-between-storage-accounts-network-restriction#scenario-2-the-clients-vnet-has-private-links-configured-and-it-uses-a-private-endpoint-to-access-storage-accounts

    Kindly let us know if the above helps or you need further assistance on this issue.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.