Resolving 403 Error When Copying Blob Using AzCopy

Bathini Harshitha 340 Reputation points
2024-10-07T09:23:59.1966667+00:00

How can I resolve a 403 error when copying a blob from one Azure Storage account to another using AzCopy?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,920 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 47,021 Reputation points Microsoft Employee
    2024-11-06T13:31:08.93+00:00

    The 403 error occurs because the copy blob request is coming from an unauthorized IP address, which is not permitted to access the destination storage account. This typically happens due to improper networking configuration on the destination storage account. To resolve this issue, follow these steps:

    Verify Networking Configuration: Ensure that the networking settings of the destination storage account allow access from the source IP address. This can involve checking the firewall rules, virtual network settings, and any service endpoints configured.

    Adjust Firewall Rules: If the destination storage account has a firewall enabled, make sure to add the source IP address to the allowed list.

    Check Virtual Network Settings: If the storage account is restricted to certain virtual networks, ensure that the source IP address falls within one of these networks.

    Refer to Documentation: For detailed guidance on configuring Azure Storage firewalls and virtual networks, refer to the official documentation.

    After making the necessary configuration changes, retry the blob copy operation. This should resolve the 403 error and allow the files to be copied successfully.

    Resources:

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    Please do not forget to "Accept the answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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