- Package Name: azure-storage-blob
- Package Version: 12.5.0
- Operating System: MacOS
- Python Version: 3.8
Describe the bug
This command:
az storage blob list --container-name mycontainername --account-name myaccount works and returns list of blobs
in python:
ContainerClient(account_url="myaccount.blob.core.windows.net", container_name="mycontainername", credential=AzureCliCredential()).list_blobs()
Throws:
HttpResponseError: This request is not authorized to perform this operation using this permission.
RequestId:4d936591-701e-0031-078a-8c01ed000000
Time:2020-09-17T00:34:09.6826796Z
ErrorCode:AuthorizationPermissionMismatch
Error:None
Expected behavior
Either python returning correct response or useful error message to pinpoint what's wrong.
Describe the bug
This command:
az storage blob list --container-name mycontainername --account-name myaccountworks and returns list of blobsin python:
ContainerClient(account_url="myaccount.blob.core.windows.net", container_name="mycontainername", credential=AzureCliCredential()).list_blobs()Throws:
Expected behavior
Either python returning correct response or useful error message to pinpoint what's wrong.