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:
Expected behavior No error with upload success
Environment summary working on CMD, on cli version 2.7.0
Additional context
Some other weird behavior that I can’t list storage container after creating it…
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Thanks! Let me give that a try Was rather surprised by the steps to take before executing the upload Appreciate the help