-
Benachrichtigungen
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission error when uploading blob to container via Azure CLI as Owner role #123883
Kommentare
@apaulture |
It seems like you are trying to upload a blob to a container in Azure Storage, but you are getting a permission error. The error message suggests that you need to be assigned one of the following roles: "Storage Blob Data Owner", "Storage Blob Data Contributor", or "Storage Blob Data Reader". The Owner role should be able to upload blobs, but it's possible that the permission is not set up correctly. You can check the role assignments for your subscription by running the If you see that your security principal has the Owner role assigned, then it's possible that there is an issue with the authentication method you are using. The error message suggests that you can use the old authentication method and allow querying for the right account key by using the "--auth-mode" parameter and "key" value. Here is an example command to upload a blob using the "key" authentication method:
Replace I hope this helps! Let me know if you have any other questions. For an issue like this, I'd recommend you create a support ticket since the support team will be able to respond much more quickly and have a conversation with you to figure out what could be going on. |
@SaibabaBalapur-MSFT
After running the command, the blob successfully uploaded to the specified container. |
@apaulture @stevenmatthew |
Type of issue
Other (describe below)
Feedback
az storage blob upload --auth-mode login --container-name <container> --account-name <storage-account> --name <name> --file <file-path>
role assignment list
After assigning role
Storage Blob Data Contributor
to security principal, upload works. Shouldn'tOwner
be able to upload blobs, or is this permission required?"dataActions": ["Microsoft.Storage/storageAccounts/blobServices/containers/blobs/add/action"]
Page URL
https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-cli
Content source URL
https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/storage/blobs/storage-quickstart-blobs-cli.md
Author
stevenmatthew
Document Id
K.A.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: