-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.potential-pruningquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Description
Describe the bug
Circular import randomly
"cannot import name 'Identity' from partially initialized module 'azure.cli.core.auth.identity'
"cannot import name 'BinaryCache' from partially initialized module 'azure.cli.core.auth.binary_cache'
"cannot import name 'RequestsTransport' from partially initialized module 'azure.core.pipeline.transport._requests_basic'
Related command
az vm start --ids /subscriptions/xxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxx/providers/Microsoft.Compute/virtualMachines/xxxxxxxxxx /subscriptions/xxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxx/providers/Microsoft.Compute/virtualMachines/xxxxxxxxxx --no-wait
Errors
"cannot import name 'Identity' from partially initialized module 'azure.cli.core.auth.identity'
"cannot import name 'BinaryCache' from partially initialized module 'azure.cli.core.auth.binary_cache'
"cannot import name 'RequestsTransport' from partially initialized module 'azure.core.pipeline.transport._requests_basic'
Issue script & Debug output
n/a
Expected behavior
no error
Environment Summary
(azure-cli-venv) root@2ea9794aadff:/# az --version
azure-cli 2.59.0
core 2.59.0
telemetry 1.1.0
Dependencies:
msal 1.27.0
azure-mgmt-resource 23.1.0b2
Python location '/root/azure-cli-venv/bin/python3'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
Additional context
Installed in a virtualenv via pip install azure-cli
Note that there is no error if only one ID is given to the command
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.potential-pruningquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that