-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Closed
Copy link
Labels
Auto-AssignAuto assign by botAuto assign by botStorageaz storageaz storagecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Description
This is autogenerated. Please review and update as needed.
Describe the bug
When use "az storage blob delete-batch" with an account key, the following error occures.
Command Name
az storage blob delete-batch
Errors:
The command failed with an unexpected error. Here is the traceback:
'BlockBlobService' object has no attribute 'get_blob_client'
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 713, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/storage/__init__.py", line 409, in new_handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/storage/__init__.py", line 408, in new_handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/storage/operations/blob.py", line 709, in storage_blob_delete_batch
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/storage/util.py", line 33, in collect_blob_objects
AttributeError: 'BlockBlobService' object has no attribute 'get_blob_client'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az storage blob delete-batch --source {} --account-name {} --account-key {} --pattern {}
Expected Behavior
Environment Summary
Windows-10-10.0.22000-SP0
Python 3.10.4
Installer: MSI
azure-cli 2.36.0
Extensions:
account 0.2.1
Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0
Additional Context
Reactions are currently unavailable
Metadata
Metadata
Labels
Auto-AssignAuto assign by botAuto assign by botStorageaz storageaz storagecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.