question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not sure how to resolve storage blob upload error

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug Trying out QS on creating/uploading/downloading blob but unable to resolve error

To Reproduce Doc here: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-cli This is the command that failed: image image

Expected behavior No error with upload success

Environment summary working on CMD, on cli version 2.7.0 image

Additional context

Some other weird behavior that I can’t list storage container after creating it… image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Juliehzlcommented, Aug 17, 2020

It is because you doesn’t grant RBAC roles for your storage account. To grant rbac roles, you could refer to the document here https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-portal in portal and https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli?toc=/azure/storage/blobs/toc.json in azure cli.

I will recommend you to grant at least Storage Blob Data Contributor for upload opetaion.

In addition, you could also use account key and sas token as credential which will not need special rbac roles. For storage command usage, you could refer to here https://github.com/Azure/azure-cli/blob/3113258ba38f0415cae2c30347491030e76c08f4/doc/use_cli_effectively.md#using-storage-commands.

0reactions
chenlomiscommented, Aug 21, 2020

Thanks! Let me give that a try Was rather surprised by the steps to take before executing the upload Appreciate the help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure blob storage upload fail - Microsoft Q&A
Uploading files to blob endpoint Azure storage account via Storage Explorer and command line is failing with error "Response Status: 403 This ...
Read more >
Cannot upload to azure Blob Storage: The remote server ...
I resolved it by changing the TLS version in the configuration of the storage; the new TLS version (1.2) is not compatible with...
Read more >
@azure/storage-blob - npm
Start using @azure/storage-blob in your project by running `npm i ... Unstructured data is data that does not adhere to a particular data ......
Read more >
Error from az storage blob upload-batch command in Azure ...
We will archive this ticket since the issue was resolved by using ubuntu-18.04 agent. If you encounter this issue again next time, please...
Read more >
How to Upload a File to Azure Blob Storage
This tutorial teaches how to write data to Azure Blob Storage from ... Make sure you understand the differences in terms of cost...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found