azure-cli-extensions
azure-cli-extensions copied to clipboard
az account subscription list fails
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az account subscription list Extension Name: account. Version: 0.2.2.
Errors:
No module named 'azure.core.rest'
Traceback (most recent call last):
Temp\pip-unpacked-wheel-2lthyver\knack\cli.py, ln 215, in invoke
cli\core\commands\__init__.py, ln 654, in execute
cli\core\commands\__init__.py, ln 717, in _run_jobs_serially
cli\core\commands\__init__.py, ln 710, in _run_job
Local\Temp\pip-unpacked-wheel-o9e7nicr\six.py, ln 703, in reraise
cli\core\commands\__init__.py, ln 688, in _run_job
...
azext_account\vendored_sdks\subscription\_subscription_client.py, ln 12, in <module>
from azure.core.rest import HttpRequest, HttpResponse
ModuleNotFoundError: No module named 'azure.core.rest'
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 account subscription list
Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.6.8
Installer:
azure-cli 2.15.1 *
Extensions:
account 0.2.2
azure-devops 0.21.0
blueprint 0.3.1
costmanagement 0.1.1
image-copy-extension 0.2.8
resource-graph 1.1.0
storage-preview 0.7.1
subscription 0.1.4
virtual-wan 0.2.11
Additional Context
@jiasli for awareness
I cannot repro on the latest Azure CLI:
> az account subscription list
Command group 'account subscription' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
[
{
"authorizationSource": "RoleBased",
"displayName": "AzureSDKTest",
"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590",
"state": "Enabled",
"subscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590",
"subscriptionPolicies": {
"locationPlacementId": "Internal_2014-09-01",
"quotaId": "Internal_2014-09-01",
"spendingLimit": "Off"
}
}
]
Azure CLI 2.15.1 is a very old version. Please update to the latest and see if it works.
let me upgrade first and test
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!