azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

after adding "aks-preview" addon, none of the "az aks" commands are working

Open Satheeshkumar433 opened this issue 1 year ago • 11 comments

Describe the bug

If I add the "aks-preview" extension on Azure CLI, none of the AKS commands are working, they are all throwing the error ('NoneType' object has no attribute 'dict'). As soon as I remove the aks-preview extension, all the az aks commands works normally.

Related command

az extension add -n aks-preview az aks get-credentials --resource-group groupname --name clustername --overwrite-existing

or take any az aks commands

Errors

satheesh [ ~ ]$ az extension add -n aks-preview No stable version of 'aks-preview' to install. Preview versions allowed. Extension 'aks-preview' 14.0.0b4 is already installed. satheesh [ ~ ]$ az aks get-credentials --resource-group saxrg --name saxcluster --overwrite-existing The command failed with an unexpected error. Here is the traceback: 'NoneType' object has no attribute 'dict' Traceback (most recent call last): File "/usr/lib64/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke cmd_result = self.invocation.execute(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute self.commands_loader.load_arguments(command) File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 549, in load_arguments loader.load_arguments(command) # this adds entries to the argument registries ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/init.py", line 45, in load_arguments load_arguments(self, command) File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/_params.py", line 429, in load_arguments k8s_support_plans = self.get_models( ^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 804, in get_models return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', operation_group=operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/init.py", line 91, in get_sdk return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 692, in get_versioned_sdk sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 684, in get_versioned_sdk_path api_version = getattr(api_version, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 479, in getattr self._resolve() File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 466, in _resolve for operation_group_name, operation_type in self._client_type.dict.items(): ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'dict'. Did you mean: 'dir'? To check existing issues, please visit: https://github.com/Azure/azure-cli/issues satheesh [ ~ ]$ az extension remove -n aks-preview satheesh [ ~ ]$ az aks get-credentials --resource-group saxrg --name saxcluster --overwrite-existing No module named 'distutils' Merged "saxcluster" as current context in /home/satheesh/.kube/config satheesh [ ~ ]$

Issue script & Debug output

satheesh [ ~ ]$ az aks get-credentials --resource-group saxrg --name saxcluster --overwrite-existing --debug cli.knack.cli: Command arguments: ['aks', 'get-credentials', '--resource-group', 'saxrg', '--name', 'saxcluster', '--overwrite-existing', '--debug'] cli.knack.cli: init debug log: Enable color in terminal. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f49ee0b6020>, <function OutputProducer.on_global_arguments at 0x7f49eddb3740>, <function CLIQuery.on_global_arguments at 0x7f49eddf0cc0>] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Command index version or cloud profile is invalid or doesn't match the current command. cli.azure.cli.core: Command index has been invalidated. cli.azure.cli.core: No module found from index for '['aks', 'get-credentials', '--resource-group', 'saxrg', '--name', 'saxcluster', '--overwrite-existing', '--debug']' cli.azure.cli.core: Loading all modules and extensions cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'compute_recommender', 'computefleet', 'config', 'configure', 'consumption', 'container', 'containerapp', 'cosmosdb', 'databoxedge', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'identity', 'interactive', 'iot', 'keyvault', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'mysql', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'resource', 'role', 'search', 'security', 'servicebus', 'serviceconnector', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm'] cli.azure.cli.core: Loading command modules: cli.azure.cli.core: Name Load Time Groups Commands cli.azure.cli.core: acr 0.242 36 149 cli.azure.cli.core: acs 0.025 15 79 cli.azure.cli.core: advisor 0.002 3 6 cli.azure.cli.core: ams 0.008 22 100 cli.azure.cli.core: apim 0.007 14 69 cli.azure.cli.core: appconfig 0.003 9 47 cli.azure.cli.core: appservice 0.034 80 277 cli.azure.cli.core: aro 0.010 1 10 cli.azure.cli.core: backup 0.005 16 60 cli.azure.cli.core: batch 0.099 32 96 cli.azure.cli.core: batchai 0.004 10 30 cli.azure.cli.core: billing 0.019 19 53 cli.azure.cli.core: botservice 0.004 12 42 cli.azure.cli.core: cdn 0.208 8 50 cli.azure.cli.core: cloud 0.002 1 7 cli.azure.cli.core: cognitiveservices 0.004 10 33 cli.azure.cli.core: compute_recommender 0.004 1 1 cli.azure.cli.core: computefleet 0.011 1 1 cli.azure.cli.core: config 0.002 2 7 cli.azure.cli.core: configure 0.001 2 5 cli.azure.cli.core: consumption 0.019 8 9 cli.azure.cli.core: container 0.012 2 17 cli.azure.cli.core: containerapp 0.165 37 123 cli.azure.cli.core: cosmosdb 0.015 58 200 cli.azure.cli.core: databoxedge 0.011 5 28 cli.azure.cli.core: dls 0.003 6 36 cli.azure.cli.core: dms 0.003 3 22 cli.azure.cli.core: eventgrid 0.006 25 96 cli.azure.cli.core: eventhubs 0.016 14 21 cli.azure.cli.core: extension 0.002 1 7 cli.azure.cli.core: feedback 0.001 1 2 cli.azure.cli.core: find 0.002 1 1 cli.azure.cli.core: hdinsight 0.007 9 42 cli.azure.cli.core: identity 0.003 2 11 cli.azure.cli.core: interactive 0.001 1 1 cli.azure.cli.core: iot 0.133 19 82 cli.azure.cli.core: keyvault 0.011 20 113 cli.azure.cli.core: lab 0.087 9 30 cli.azure.cli.core: managedservices 0.012 3 8 cli.azure.cli.core: maps 0.003 5 13 cli.azure.cli.core: marketplaceordering 0.003 1 2 cli.azure.cli.core: monitor 0.675 18 61 cli.azure.cli.core: mysql 0.098 16 56 cli.azure.cli.core: netappfiles 0.062 8 17 cli.azure.cli.core: network 0.188 104 345 cli.azure.cli.core: policyinsights 0.015 9 17 cli.azure.cli.core: privatedns 0.024 14 60 cli.azure.cli.core: profile 0.003 2 8 cli.azure.cli.core: rdbms 0.248 53 223 cli.azure.cli.core: redis 0.004 7 38 cli.azure.cli.core: relay 0.028 7 8 cli.azure.cli.core: resource 0.023 52 232 cli.azure.cli.core: role 0.005 17 62 cli.azure.cli.core: search 0.015 7 19 cli.azure.cli.core: security 0.013 48 98 cli.azure.cli.core: servicebus 0.010 13 17 cli.azure.cli.core: serviceconnector 0.151 20 323 cli.azure.cli.core: servicefabric 0.017 27 80 cli.azure.cli.core: signalr 0.005 10 42 cli.azure.cli.core: sql 0.020 56 215 cli.azure.cli.core: sqlvm 0.028 4 20 cli.azure.cli.core: storage 0.082 60 275 cli.azure.cli.core: synapse 0.023 54 246 cli.azure.cli.core: util 0.002 3 7 cli.azure.cli.core: vm 0.125 59 219 cli.azure.cli.core: Total (65) 3.067 1192 4674 cli.azure.cli.core: Loading extensions: cli.azure.cli.core: Name Load Time Groups Commands Directory cli.azure.cli.core: ai-examples 0.087 1 1 /usr/lib/python3.12/site-packages/azure-cli-extensions/ai-examples cli.knack.cli: Event: CommandLoader.OnLoadCommandTable [] cli.azure.cli.core: aks-preview 0.016 22 103 /home/satheesh/.azure/cliextensions/aks-preview azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'. azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'. azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'. No module named 'distutils' cli.azure.cli.core: ml 5.148 25 165 /usr/lib/python3.12/site-packages/azure-cli-extensions/ml cli.azure.cli.core: ssh 0.016 1 4 /usr/lib/python3.12/site-packages/azure-cli-extensions/ssh cli.azure.cli.core: Total (4) 5.266 49 273
cli.azure.cli.core: Loaded 1214 groups, 4879 commands. cli.azure.cli.core: Updated command index in 0.008 seconds. cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f49ecef0720>] cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/satheesh/.azure/commands/2025-04-25.11-40-58.aks_get-credentials.12278.log'. az_command_data_logger: command args: aks get-credentials --resource-group {} --name {} --overwrite-existing --debug cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7f49ecf44e00>] cli.knack.cli: Event: CommandLoader.OnLoadArguments [] cli.azure.cli.core.profiles._shared: Traceback (most recent call last): File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 653, in _get_attr op = import_module(full_mod_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 999, in exec_module File "", line 488, in _call_with_frames_removed File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/init.py", line 9, in from ._container_service_client import ContainerServiceClient File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/_container_service_client.py", line 19, in from azure.mgmt.core.tools import get_arm_endpoints ImportError: cannot import name 'get_arm_endpoints' from 'azure.mgmt.core.tools' (/usr/lib64/az/lib/python3.12/site-packages/azure/mgmt/core/tools.py)

cli.azure.cli.core.azclierror: Traceback (most recent call last): File "/usr/lib64/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke cmd_result = self.invocation.execute(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute self.commands_loader.load_arguments(command) File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 549, in load_arguments loader.load_arguments(command) # this adds entries to the argument registries ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/init.py", line 45, in load_arguments load_arguments(self, command) File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/_params.py", line 429, in load_arguments k8s_support_plans = self.get_models( ^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 804, in get_models return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', operation_group=operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/init.py", line 91, in get_sdk return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 692, in get_versioned_sdk sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 684, in get_versioned_sdk_path api_version = getattr(api_version, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 479, in getattr self._resolve() File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 466, in _resolve for operation_group_name, operation_type in self._client_type.dict.items(): ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'dict'. Did you mean: 'dir'?

cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback: az_command_data_logger: The command failed with an unexpected error. Here is the traceback: cli.azure.cli.core.azclierror: 'NoneType' object has no attribute 'dict' Traceback (most recent call last): File "/usr/lib64/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke cmd_result = self.invocation.execute(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute self.commands_loader.load_arguments(command) File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 549, in load_arguments loader.load_arguments(command) # this adds entries to the argument registries ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/init.py", line 45, in load_arguments load_arguments(self, command) File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/_params.py", line 429, in load_arguments k8s_support_plans = self.get_models( ^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 804, in get_models return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', operation_group=operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/init.py", line 91, in get_sdk return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 692, in get_versioned_sdk sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 684, in get_versioned_sdk_path api_version = getattr(api_version, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 479, in getattr self._resolve() File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 466, in _resolve for operation_group_name, operation_type in self._client_type.dict.items(): ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'dict'. Did you mean: 'dir'? az_command_data_logger: 'NoneType' object has no attribute 'dict' Traceback (most recent call last): File "/usr/lib64/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke cmd_result = self.invocation.execute(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute self.commands_loader.load_arguments(command) File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 549, in load_arguments loader.load_arguments(command) # this adds entries to the argument registries ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/init.py", line 45, in load_arguments load_arguments(self, command) File "/home/satheesh/.azure/cliextensions/aks-preview/azext_aks_preview/_params.py", line 429, in load_arguments k8s_support_plans = self.get_models( ^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 804, in get_models return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', operation_group=operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/init.py", line 91, in get_sdk return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 692, in get_versioned_sdk sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 684, in get_versioned_sdk_path api_version = getattr(api_version, operation_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 479, in getattr self._resolve() File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 466, in _resolve for operation_group_name, operation_type in self._client_type.dict.items(): ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'dict'. Did you mean: 'dir'? To check existing issues, please visit: https://github.com/Azure/azure-cli/issues cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f49ecef09a0>] az_command_data_logger: exit code: 1 cli.main: Command ran in 8.814 seconds (init: 0.237, invoke: 8.577) telemetry.main: Begin splitting cli events and extra events, total events: 1 telemetry.client: Accumulated 0 events. Flush the clients. telemetry.main: Finish splitting cli events and extra events, cli events: 1 telemetry.save: Save telemetry record of length 8180 in cache file under /home/satheesh/.azure/telemetry/20250425114058910 telemetry.main: Begin creating telemetry upload process. telemetry.process: Creating upload process: "/usr/bin/python3.12 /usr/lib/az/lib/python3.12/site-packages/azure/cli/telemetry/init.py /home/satheesh/.azure /home/satheesh/.azure/telemetry/20250425114058910" telemetry.process: Return from creating process 12287 telemetry.main: Finish creating telemetry upload process.

Expected behavior

it should fetch the credentials of the aks cluster

Environment Summary

azure-cli : 2.71.0

aks-preview: 14.0.0b4

Additional context

No response

Satheeshkumar433 avatar Apr 25 '25 11:04 Satheeshkumar433

Thank you for opening this issue, we will look into it.

yonzhan avatar Apr 25 '25 11:04 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dyu1208, @FumingZhang, @andyliuliming.

Here are some similar issues that might help you. Please check if they can solve your problem.

  • #31345
  • #31346

Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Solution 1:

Downgrading aks-preview extension worked for me:

az extension remove --name aks-preview
az extension add --name aks-preview --version 14.0.0b3

Reference:

  • https://github.com/azure/azure-cli/issues/31345#issuecomment-2828117607

Solution 2:

Please run pip install azure-mgmt-core==1.5.0 in your python environment as a workaround.

Reference:

  • https://github.com/azure/azure-cli/issues/31345#issuecomment-2829187175

Powered by issue-sentinel

github-actions[bot] avatar Apr 25 '25 11:04 github-actions[bot]

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dyu1208, @FumingZhang, @andyliuliming.

Thank you for reporting this @Satheeshkumar433. We will work to address this issue in the next version. In the meantime, please downgrade to the last working version - v14.0.0b3. I'm not receiving these errors in that version.

az extension remove --name aks-preview
az extension add --name aks-preview --version 14.0.0b3

mbifeld avatar Apr 25 '25 16:04 mbifeld

This is duplicate issue of https://github.com/Azure/azure-cli/issues/31345

surajssd avatar Apr 25 '25 20:04 surajssd

Please run pip install azure-mgmt-core==1.5.0 in your python environment as a workaround. Raised issue #31322 to cli team to completely fix the problem.

FumingZhang avatar Apr 28 '25 03:04 FumingZhang

Root issue has been fixed in az cli - #31322 and will be resolved in the next az cli version on May 6th - https://github.com/Azure/azure-cli/milestone/154

mbifeld avatar Apr 28 '25 23:04 mbifeld

Root issue has been fixed in az cli - #31322 and will be resolved in the next az cli version on May 6th - https://github.com/Azure/azure-cli/milestone/154

The fix #31342 is actually merged in milestone https://github.com/Azure/azure-cli/milestone/155, would be released on 05/19/2025

FumingZhang avatar Apr 29 '25 05:04 FumingZhang

Will release a new version of aks-preview 14.0.0b5 to fix the issue, see PR #8703.

FumingZhang avatar Apr 29 '25 06:04 FumingZhang

Closing as aks-preview 14.0.0b6 is now available with the PR linked above. This version is now the default installed when running az extension add -n aks-preview. I have marked 14.0.0b4 as pre-release due this issue. Please comment/reopen if there are still issues.

mbifeld avatar May 01 '25 18:05 mbifeld