Cannot list storage account keys
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az storage account keys list`
**Errors:**
```
'StorageManagementClient' object has no attribute 'config'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
six.reraise(*sys.exc_info())
...
cli/core/commands/__init__.py, ln 325, in __call__
return self.handler(*args, **kwargs)
azure/cli/core/__init__.py, ln 775, in default_command_handler
client = client_factory(cmd.cli_ctx, command_args) if client_factory else None
cli/command_modules/storage/_client_factory.py, ln 150, in cf_sa_for_keys
client.config.enable_http_logger = False
AttributeError: 'StorageManagementClient' object has no attribute 'config'
```
## To Reproduce:
1. Login to a VM running openSuse Leap 15.3 in Azure
2. create or select a storage account
2. sudo zypper install azure-cli
3. az login
4. try to retrieve the keys for the storage account in step 2.
- _Put any pre-requisite steps here..._
- `az storage account keys list --resource-group {} --account-name {}`
## Expected Behavior
No exception, storage account key is listed
## Environment Summary
```
Linux-5.3.18-59.10-default-x86_64-with-glibc2.3.4
Python 3.6.13
Installer: PIP
azure-cli 2.14.2 *
```
## Additional Context
The VM where this happens runs in Azure.
Contributor guide
Assessment
This issue has not been assessed yet.