-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
First of all, I have not used the AZ cli for some time and just upgraded till version 2.75.0. When I start a Terminal, Powershell, Commandline, Developer powershell I'm presented with an error as below:
C:\some\path>az
The command failed with an unexpected error. Here is the traceback:
('dla',)
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 568, in execute
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 87, in load_command_table
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/parser.py", line 208, in _get_subparser
KeyError: ('dla',)
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
Validating the installed az version and extensions:
C:\some/dir>az version
{
"azure-cli": "2.75.0",
"azure-cli-core": "2.75.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
I did found only one reference that was pointing towards an issue with Azure Data Studio, however that has been uninstalled. For the rest I do not have any references on how to solve this.
Tried so far:
- Uninstalled Azure Data Studio
- Uninstalled Microsoft.AzureCli
- Reboot
- Installed Microsoft.AzureCli
- Downgraded to version 2.74
So far I'm out of ideas, any assistance would be appreciated
Related command
Executing AZ
Errors
C:\some\path>az
The command failed with an unexpected error. Here is the traceback:
('dla',)
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 568, in execute
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 87, in load_command_table
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/parser.py", line 208, in _get_subparser
KeyError: ('dla',)
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
Issue script & Debug output
C:\Users\username>az --debug
cli.knack.cli: Command arguments: ['--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 0x00000267C011F2E0>, <function OutputProducer.on_global_arguments at 0x00000267C04BC180>, <function CLIQuery.on_global_arguments at 0x00000267C04E5580>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: No module found from index for '['--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', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'identity', 'interactive', 'iot', 'keyvault', 'kusto', '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.425 36 149
cli.azure.cli.core: acs 0.032 15 79
cli.azure.cli.core: advisor 0.002 3 6
cli.azure.cli.core: ams 0.004 22 100
cli.azure.cli.core: apim 0.005 14 69
cli.azure.cli.core: appconfig 0.003 9 47
cli.azure.cli.core: appservice 0.024 80 277
cli.azure.cli.core: aro 0.011 1 10
cli.azure.cli.core: backup 0.004 16 60
cli.azure.cli.core: batch 0.043 32 96
cli.azure.cli.core: batchai 0.003 10 30
cli.azure.cli.core: billing 0.016 19 53
cli.azure.cli.core: botservice 0.003 12 42
cli.azure.cli.core: cdn 0.147 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.005 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.020 8 9
cli.azure.cli.core: container 0.013 2 17
cli.azure.cli.core: containerapp 0.105 37 123
cli.azure.cli.core: cosmosdb 0.011 58 200
cli.azure.cli.core: databoxedge 0.009 5 28
cli.azure.cli.core: dla 0.003 23 62
cli.azure.cli.core: dls 0.002 6 36
cli.azure.cli.core: dms 0.002 3 22
cli.azure.cli.core: eventgrid 0.003 25 96
cli.azure.cli.core: eventhubs 0.014 14 21
cli.azure.cli.core: extension 0.001 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.006 9 42
cli.azure.cli.core: identity 0.007 2 7
cli.azure.cli.core: interactive 0.001 1 1
cli.azure.cli.core: iot 0.072 19 82
cli.azure.cli.core: keyvault 0.034 20 114
cli.azure.cli.core: kusto 0.002 3 14
cli.azure.cli.core: lab 0.030 9 30
cli.azure.cli.core: managedservices 0.011 3 8
cli.azure.cli.core: maps 0.002 5 13
cli.azure.cli.core: marketplaceordering 0.003 1 2
cli.azure.cli.core: monitor 0.235 18 64
cli.azure.cli.core: mysql 0.099 16 56
cli.azure.cli.core: netappfiles 0.046 8 15
cli.azure.cli.core: network 0.057 106 352
cli.azure.cli.core: policyinsights 0.012 9 17
cli.azure.cli.core: privatedns 0.020 14 60
cli.azure.cli.core: profile 0.001 2 8
cli.azure.cli.core: rdbms 0.069 52 217
cli.azure.cli.core: redis 0.003 7 38
cli.azure.cli.core: relay 0.023 7 8
cli.azure.cli.core: resource 0.013 52 232
cli.azure.cli.core: role 0.002 17 62
cli.azure.cli.core: search 0.007 7 19
cli.azure.cli.core: security 0.010 48 98
cli.azure.cli.core: servicebus 0.009 13 17
cli.azure.cli.core: serviceconnector 0.017 20 331
cli.azure.cli.core: servicefabric 0.012 27 80
cli.azure.cli.core: signalr 0.004 10 42
cli.azure.cli.core: sql 0.012 56 215
cli.azure.cli.core: sqlvm 0.021 4 20
cli.azure.cli.core: storage 0.091 60 275
cli.azure.cli.core: synapse 0.010 54 246
cli.azure.cli.core: util 0.001 3 7
cli.azure.cli.core: vm 0.060 59 262
cli.azure.cli.core: Total (67) 1.938 1219 4800
cli.azure.cli.core: Loaded 1205 groups, 4800 commands.
cli.azure.cli.core: Updated command index in 0.003 seconds.
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x00000267C288AE80>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\username.azure\commands\2025-07-14.14-22-58.unknown_command.26636.log'.
az_command_data_logger: command args: --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x00000267C28B39C0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x00000267C28E1F80>, <function register_cache_arguments..add_cache_arguments at 0x00000267C28E20C0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x00000267C28E2160>]
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 568, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 87, in load_command_table
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/parser.py", line 208, in _get_subparser
KeyError: ('dla',)
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: ('dla',)
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 568, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 87, in load_command_table
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/parser.py", line 208, in _get_subparser
KeyError: ('dla',)
az_command_data_logger: ('dla',)
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 568, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 87, in load_command_table
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/parser.py", line 208, in get_subparser
KeyError: ('dla',)
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 0x00000267C288B100>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 2.277 seconds (init: 0.271, invoke: 2.007)
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 7363 in cache file under C:\Users\username.azure\telemetry\20250714142258905
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init.pyc C:\Users\username.azure C:\Users\username.azure\telemetry\20250714142258905"
telemetry.process: Return from creating process 6768
telemetry.main: Finish creating telemetry upload process.
Expected behavior
AZ should give me the list of capabilities it has
Environment Summary
c:>az --version
azure-cli 2.75.0
core 2.75.0
telemetry 1.1.0
Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\username\.azure'
Extensions directory 'C:\Users\username\.azure\cliextensions'
Python (Windows) 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response