bebound / azure-cli

Azure Command-Line Interface
MIT License
0 stars 0 forks source link

Crash in az aks update (preview command) #36

Open bebound opened 1 year ago

bebound commented 1 year ago

Describe the bug

Updating ssh keys for an aks scale set fails.

Command Name az aks update

Errors:

CLIInternalError: The command failed with an unexpected error. Here is the traceback:

cannot import name 'edge_zone_type'
Traceback (most recent call last):
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-rpp6y7vh\knack\cli.py", line 215, in invoke
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-34tyr6f2\azure\cli\core\commands\__init__.py", line 558, in execute
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-34tyr6f2\azure\cli\core\__init__.py", line 479, in load_arguments
  File "C:\Users\david\.azure\cliextensions\aks-preview\azext_aks_preview\__init__.py", line 47, in load_arguments
    from ._params import load_arguments
  File "C:\Users\david\.azure\cliextensions\aks-preview\azext_aks_preview\_params.py", line 12, in <module>
    from azure.cli.core.commands.parameters import (
ImportError: cannot import name 'edge_zone_type'

To Reproduce:

Expected Behavior

The command works

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.17.1 *

Extensions:
aks-preview 0.5.41
azure-iot 0.12.1

Additional Context

The environment summary has been auto-generated. If I run Python, I have 3.9.1 installed and used by default. python --version Python 3.9.1

Copy from https://github.com/Azure/azure-cli/issues/25287

similar-bot-test[bot] commented 1 year ago
Find similar issue https://github.com/Azure/azure-cli/issues/20912.
Issue title Az extension aks-preview commands failing
Create time 2022-01-05
Comment number 5