Unable to transfer the data from on-premises to Azure storage container with AZCopy

John Philip 60 Reputation points
2025-05-15T05:24:21.53+00:00

I have installed AZcopy V10 on my Windows system. I executed the command azcopy copy "<local-folder-path>" "https://<storage-account-name>.<blob or dfs>.core.windows.net/<container-name>" --recursive=true to upload files to Blob, but I am encountering an error. Could someone assist me with this issue?

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.


Answer accepted by question author
Anonymous
2025-05-15T05:48:19.34+00:00

Hello John Philip,Thank you for your question!

The Syntex you have utilized is entirely accurate. To continue, please verify that your account possesses either the Storage Blob Data Contributor or Storage Blob Data Owner role for the storage account. After you have logged in, sign in with an account that has permissions to manage access (e.g., an Owner or User Access Administrator for the storage account).

  1. Navigate to Your Storage Account:
    • search for Storage accounts in the top search bar.
    • Select your storage account (e.g., mystorageaccount).
  2. Go to Access Control (IAM):
    • In the storage account’s left-hand menu, click Access control (IAM).
  3. Add a Role Assignment:
    • Click + Add > Add role assignment.
    • In the Role tab, search for and select either:
    • Storage Blob Data Contributor: Grants read, write, and delete permissions for blobs and containers.
    • Storage Blob Data Owner: Grants full control, including permission to modify access control lists (ACLs).
    • Use Contributor for most scenarios unless you need to manage ACLs, in which case use Owner.
    • Click Next.
  4. Select the Member:
    • In the Members tab, click + Select members.
    • Search for the Azure AD user, group, or service principal that will use AzCopy (e.g., your email or username).
    • Select the account and click Select.
    • Click Next.
  5. Review and Assign:
    • In the Review + assign tab, verify the role and member details.
    • Click Review + assign to complete the role assignment.
  6. Verify the Role Assignment:
    • Back in the Access control (IAM) blade, click Role assignments.
    • Search for the user or account to confirm the Storage Blob Data Contributor or Storage Blob Data Owner role is listed.
    • Role propagation may take a few minutes.

Post having the storage Blob Data Contributor or Storage Blob Data Owner role for the storage account you will be able to execute the command of AZ copy.

References: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-migrate-on-premises-data?tabs=windows

Hope the above answer helps! Please let us know do you have any further queries.


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

 

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.