Unable Download Data via Azcopy Command

Rashwealth Cloud 1 Reputation point
2022-10-27T07:56:15.817+00:00

I try to download data from an Azure Storage blob using the azcopy command and after a successful login I get some authentication errors.
Does anyone know what's going wrong?
254626-azcopy-error.png

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

5 answers

Sort by: Most helpful
  1. RAFAŁ ŻAK 3,251 Reputation points
    2022-10-27T08:13:43.38+00:00

    Hi @Rashwealth Cloud ,

    Welcome on Microsoft Q&A
    You need to assign an Azure role for access to blob data.
    To access blob data in the Azure portal with Azure AD credentials, a user must have the following role assignments:

    • A data access role, such as Storage Blob Data Reader or Storage Blob Data Contributor
    • The Azure Resource Manager Reader role, at a minimum

    You can use the Azure portal, PowerShell, Azure CLI, or an Azure Resource Manager template to assign a role for data access:
    https://learn.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access?WT.mc_id=itopstalk-blog-thmaure&tabs=portal

    Please upvote or accept as answer if it helped.

    0 comments No comments

  2. Rashwealth Cloud 1 Reputation point
    2022-10-28T03:19:55.983+00:00

    Hi @RAFAŁ ŻAK ,

    I assigned some of the roles you mentioned to the RC account, which is the owner of this storage account, but it still returns an error when accessing the blob container.
    254860-riwaydisk-identity.png
    254953-riwaydisk-error-2.png

    0 comments No comments

  3. RAFAŁ ŻAK 3,251 Reputation points
    2022-10-28T05:41:48.833+00:00

    Hi @Rashwealth Cloud ,
    Please add this role under Access Control (IAM):
    254887-image.png

    0 comments No comments

  4. Rashwealth Cloud 1 Reputation point
    2022-10-28T07:17:26.637+00:00

    Hi @RAFAŁ ŻAK ,

    Kindly guide how to add this role(Storage Blob Data Contributor)? Because I can't found inside the list.


  5. Rashwealth Cloud 1 Reputation point
    2022-10-31T02:02:08.977+00:00

    Hi @RAFAŁ ŻAK ,

    Look weird, the only roles I got here is on the list, didn't found any Storage Blob Data Contributor keyword. (This account is under owner level)
    255440-azure-1.png

    0 comments No comments

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.