-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
I'm running this command to list all dev box definitions:
$dcName = 'devcenter-tfotz75rskxty-dc'
Write-Host "Getting all definitions in $dcName..." -ForegroundColor Cyan
$defDeets = az devcenter admin devbox-definition list -g devcenter-16-25 -d $dcName --subscription 8f22e2e8-b4c1-4f7d-a889-49aec29b9c75My first attempt failed because it couldn't access C:\Users\rickkr.Azure\cliextensions\devcenter\devcenter-7.0.0.dist-info. I used File Explorer to navigate there after dismissing a popup saying I needed perms.
Then I tried again and got this:
WARNING: Unable to load extension 'devcenter: cannot access local variable 'command_loader' where it is not associated with a value'. Use --debug for more information.
ERROR: 'devcenter' is misspelled or not recognized by the system
Related command
az devcenter admin devbox-definition list -g devcenter-16-25 -d $dcName --subscription 8f22e2e8-b4c1-4f7d-a889-49aec29b9c75
Errors
WARNING: Unable to load extension 'devcenter: cannot access local variable 'command_loader' where it is not associated with a value'. Use --debug for more information.
ERROR: 'devcenter' is misspelled or not recognized by the system
Issue script & Debug output
PS Q:\src\VSDevBoxes\utilities> $defDeets = az devcenter admin devbox-definition list -g devcenter-16-25 -d $dcName --subscription 8f22e2e8-b4c1-4f7d-a889-49aec29b9c75 --debug
DEBUG: cli.knack.cli: Command arguments: ['devcenter', 'admin', 'devbox-definition', 'list', '-g', 'devcenter-16-25', '-d', 'devcenter-tfotz75rskxty-dc', '--subscription', '8f22e2e8-b4c1-4f7d-a889-49aec29b9c75', '--debug']
DEBUG: cli.knack.cli: init debug log:
Cannot enable color.
DEBUG: cli.knack.cli: Event: Cli.PreExecute []
DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x000001F51F887380>, <function OutputProducer.on_global_arguments at 0x000001F51FA1C220>, <function CLIQuery.on_global_arguments at 0x000001F51FA45620>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: cli.azure.cli.core: No module found from index for '['devcenter', 'admin', 'devbox-definition', 'list', '-g', 'devcenter-16-25', '-d', 'devcenter-tfotz75rskxty-dc', '--subscription', '8f22e2e8-b4c1-4f7d-a889-49aec29b9c75', '--debug']'
DEBUG: cli.azure.cli.core: Loading all modules and extensions
DEBUG: 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']
DEBUG: cli.azure.cli.core: Loading command modules:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
DEBUG: cli.azure.cli.core: acr 1.483 36 149
DEBUG: cli.azure.cli.core: acs 0.187 15 79
DEBUG: cli.azure.cli.core: advisor 0.016 3 6
DEBUG: cli.azure.cli.core: ams 0.022 22 100
DEBUG: cli.azure.cli.core: apim 0.031 14 69
DEBUG: cli.azure.cli.core: appconfig 0.021 9 47
DEBUG: cli.azure.cli.core: appservice 0.136 80 277
DEBUG: cli.azure.cli.core: aro 0.080 1 10
DEBUG: cli.azure.cli.core: backup 0.023 16 60
DEBUG: cli.azure.cli.core: batch 0.213 32 96
DEBUG: cli.azure.cli.core: batchai 0.020 10 30
DEBUG: cli.azure.cli.core: billing 0.137 19 53
DEBUG: cli.azure.cli.core: botservice 0.021 12 42
DEBUG: cli.azure.cli.core: cdn 1.089 8 50
DEBUG: cli.azure.cli.core: cloud 0.011 1 7
DEBUG: cli.azure.cli.core: cognitiveservices 0.011 10 33
DEBUG: cli.azure.cli.core: compute_recommender 0.022 1 1
DEBUG: cli.azure.cli.core: computefleet 0.050 1 1
DEBUG: cli.azure.cli.core: config 0.016 2 7
DEBUG: cli.azure.cli.core: configure 0.012 2 5
DEBUG: cli.azure.cli.core: consumption 0.127 8 9
DEBUG: cli.azure.cli.core: container 0.070 2 17
DEBUG: cli.azure.cli.core: containerapp 0.723 37 123
DEBUG: cli.azure.cli.core: cosmosdb 0.062 58 200
DEBUG: cli.azure.cli.core: databoxedge 0.056 5 28
DEBUG: cli.azure.cli.core: dls 0.017 6 36
DEBUG: cli.azure.cli.core: dms 0.014 3 22
DEBUG: cli.azure.cli.core: eventgrid 0.021 25 96
DEBUG: cli.azure.cli.core: eventhubs 0.111 14 21
DEBUG: cli.azure.cli.core: extension 0.010 1 7
DEBUG: cli.azure.cli.core: feedback 0.008 1 2
DEBUG: cli.azure.cli.core: find 0.009 1 1
DEBUG: cli.azure.cli.core: hdinsight 0.074 9 42
DEBUG: cli.azure.cli.core: identity 0.063 2 7
DEBUG: cli.azure.cli.core: interactive 0.005 1 1
DEBUG: cli.azure.cli.core: iot 0.808 19 82
DEBUG: cli.azure.cli.core: keyvault 0.038 20 114
DEBUG: cli.azure.cli.core: lab 0.275 9 30
DEBUG: cli.azure.cli.core: managedservices 0.096 3 8
DEBUG: cli.azure.cli.core: maps 0.016 5 13
DEBUG: cli.azure.cli.core: marketplaceordering 0.025 1 2
DEBUG: cli.azure.cli.core: monitor 1.418 18 64
DEBUG: cli.azure.cli.core: mysql 0.477 16 56
DEBUG: cli.azure.cli.core: netappfiles 0.335 8 15
DEBUG: cli.azure.cli.core: network 0.226 105 350
DEBUG: cli.azure.cli.core: policyinsights 0.094 9 17
DEBUG: cli.azure.cli.core: privatedns 0.141 14 60
DEBUG: cli.azure.cli.core: profile 0.015 2 8
DEBUG: cli.azure.cli.core: rdbms 0.433 52 217
DEBUG: cli.azure.cli.core: redis 0.020 7 38
DEBUG: cli.azure.cli.core: relay 0.179 7 8
DEBUG: cli.azure.cli.core: resource 0.069 52 232
DEBUG: cli.azure.cli.core: role 0.007 17 62
DEBUG: cli.azure.cli.core: search 0.060 7 19
DEBUG: cli.azure.cli.core: security 0.062 48 98
DEBUG: cli.azure.cli.core: servicebus 0.059 13 17
DEBUG: cli.azure.cli.core: serviceconnector 0.104 20 331
DEBUG: cli.azure.cli.core: servicefabric 0.075 27 80
DEBUG: cli.azure.cli.core: signalr 0.017 10 42
DEBUG: cli.azure.cli.core: sql 0.054 56 215
DEBUG: cli.azure.cli.core: sqlvm 0.108 4 20
DEBUG: cli.azure.cli.core: storage 0.219 60 275
DEBUG: cli.azure.cli.core: synapse 0.061 54 246
DEBUG: cli.azure.cli.core: util 0.012 3 7
DEBUG: cli.azure.cli.core: vm 0.285 59 262
DEBUG: cli.azure.cli.core: Total (65) 10.761 1192 4722
DEBUG: cli.azure.cli.core: Loading extensions:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory
DEBUG: cli.azure.cli.core.commands: Module 'azext_devcenter' is missing get_command_loader entry.
DEBUG: cli.azure.cli.core.commands: Module 'azext_devcenter' is missing COMMAND_LOADER_CLS entry.
DEBUG: cli.knack.cli: Event: MainLoader.OnFailedExtensionLoad []
WARNING: cli.azure.cli.core: Unable to load extension 'devcenter: cannot access local variable 'command_loader' where it is not associated with a value'. Use --debug for more information.
DEBUG: cli.azure.cli.core: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 356, in _update_command_table_from_extensions
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 1147, in _load_extension_command_loader
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 1143, in _load_command_loader
UnboundLocalError: cannot access local variable 'command_loader' where it is not associated with a value
DEBUG: cli.azure.cli.core: Total (0) 0.000 0 0
DEBUG: cli.azure.cli.core: Loaded 1178 groups, 4722 commands.
DEBUG: cli.azure.cli.core: Updated command index in 0.004 seconds.
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x000001F521C3B240>]
DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\rickkr.azure\commands\2025-06-17.11-06-12.unknown_command.28284.log'.
INFO: az_command_data_logger: command args: devcenter admin devbox-definition list -g {} -d {} --subscription {} --debug
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x000001F521CE63E0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x000001F521CE6480>, <function register_cache_arguments..add_cache_arguments at 0x000001F521CE65C0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x000001F521CE6660>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x000001F524E6DD00>]
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): aka.ms:443
DEBUG: urllib3.connectionpool: https://aka.ms:443 "GET /azure-cli-extension-index-v1 HTTP/1.1" 301 0
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): azcliextensionsync.blob.core.windows.net:443
DEBUG: urllib3.connectionpool: https://azcliextensionsync.blob.core.windows.net:443 "GET /index1/index.json HTTP/1.1" 200 5360217
DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['devcenter-0.1.0-py3-none-any.whl', 'devcenter-0.1.1-py3-none-any.whl', 'devcenter-0.1.2-py3-none-any.whl', 'devcenter-1.0.0-py3-none-any.whl', 'devcenter-1.0.1-py3-none-any.whl', 'devcenter-1.0.2-py3-none-any.whl', 'devcenter-2.0.0-py3-none-any.whl', 'devcenter-3.0.0-py3-none-any.whl', 'devcenter-4.0.0-py3-none-any.whl', 'devcenter-4.0.1-py3-none-any.whl', 'devcenter-5.0.0-py3-none-any.whl', 'devcenter-5.0.1-py3-none-any.whl', 'devcenter-6.0.0-py3-none-any.whl', 'devcenter-6.0.1-py3-none-any.whl', 'devcenter-6.1.0-py3-none-any.whl', 'devcenter-6.2.0-py3-none-any.whl', 'devcenter-6.2.1-py3-none-any.whl', 'devcenter-6.2.2-py3-none-any.whl', 'devcenter-6.2.3-py3-none-any.whl', 'devcenter-7.0.0-py3-none-any.whl']
DEBUG: cli.azure.cli.core.extension._resolve: Candidates ['devcenter-0.1.0-py3-none-any.whl', 'devcenter-0.1.1-py3-none-any.whl', 'devcenter-0.1.2-py3-none-any.whl', 'devcenter-1.0.0-py3-none-any.whl', 'devcenter-1.0.1-py3-none-any.whl', 'devcenter-1.0.2-py3-none-any.whl', 'devcenter-2.0.0-py3-none-any.whl', 'devcenter-3.0.0-py3-none-any.whl', 'devcenter-4.0.0-py3-none-any.whl', 'devcenter-4.0.1-py3-none-any.whl', 'devcenter-5.0.0-py3-none-any.whl', 'devcenter-5.0.1-py3-none-any.whl', 'devcenter-6.0.0-py3-none-any.whl', 'devcenter-6.0.1-py3-none-any.whl', 'devcenter-6.1.0-py3-none-any.whl', 'devcenter-6.2.0-py3-none-any.whl', 'devcenter-6.2.1-py3-none-any.whl', 'devcenter-6.2.2-py3-none-any.whl', 'devcenter-6.2.3-py3-none-any.whl', 'devcenter-7.0.0-py3-none-any.whl']
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-0.1.0-py3-none-any.whl' as 0.1.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-0.1.1-py3-none-any.whl' as 0.1.1 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-0.1.2-py3-none-any.whl' as 0.1.2 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-1.0.0-py3-none-any.whl' as 1.0.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-1.0.1-py3-none-any.whl' as 1.0.1 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-1.0.2-py3-none-any.whl' as 1.0.2 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-2.0.0-py3-none-any.whl' as 2.0.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-3.0.0-py3-none-any.whl' as 3.0.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-4.0.0-py3-none-any.whl' as 4.0.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-4.0.1-py3-none-any.whl' as 4.0.1 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-5.0.0-py3-none-any.whl' as 5.0.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-5.0.1-py3-none-any.whl' as 5.0.1 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-6.0.0-py3-none-any.whl' as 6.0.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-6.0.1-py3-none-any.whl' as 6.0.1 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-6.1.0-py3-none-any.whl' as 6.1.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-6.2.0-py3-none-any.whl' as 6.2.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-6.2.1-py3-none-any.whl' as 6.2.1 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-6.2.2-py3-none-any.whl' as 6.2.2 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-6.2.3-py3-none-any.whl' as 6.2.3 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.extension._resolve: Skipping 'devcenter-7.0.0-py3-none-any.whl' as 7.0.0 not greater than current version 7.0.0
DEBUG: cli.azure.cli.core.command_recommender: "-g" is an invalid parameter for command "devcenter".
DEBUG: cli.azure.cli.core.command_recommender: "-d" is an invalid parameter for command "devcenter".
DEBUG: cli.azure.cli.core.command_recommender: "--subscription" is an invalid parameter for command "devcenter".
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): app.aladdin.microsoft.com:443
DEBUG: urllib3.connectionpool: https://app.aladdin.microsoft.com:443 "GET /api/v1.0/suggestions?query=%7B%22command%22%3A+%22devcenter%22%2C+%22parameters%22%3A+%22%22%7D&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.74.0%22%2C+%22errorType%22%3A+%22UnknownSubcommand%22%2C+%22correlationId%22%3A+%221d3874f7-afc4-4248-a7f8-5008aeb9a811%22%2C+%22subscriptionId%22%3A+%22a47a4531-9906-40fe-a0f0-e96fd85f2dda%22%2C+%22eventId%22%3A+%2264d576cc-102d-40c6-883f-e61da743be25%22%7D HTTP/1.1" 200 None
DEBUG: cli.azure.cli.core.command_recommender: "-g" is an invalid parameter for command "devcenter".
DEBUG: cli.azure.cli.core.command_recommender: "-d" is an invalid parameter for command "devcenter".
DEBUG: cli.azure.cli.core.command_recommender: "--subscription" is an invalid parameter for command "devcenter".
DEBUG: cli.azure.cli.core.azclierror: NoneType: None
ERROR: cli.azure.cli.core.azclierror: 'devcenter' is misspelled or not recognized by the system.
ERROR: az_command_data_logger: 'devcenter' is misspelled or not recognized by the system.
Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs
DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x000001F521C3B4C0>]
INFO: az_command_data_logger: exit code: 2
INFO: cli.main: Command ran in 12.747 seconds (init: 1.087, invoke: 11.660)
INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1
INFO: telemetry.client: Accumulated 0 events. Flush the clients.
INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1
INFO: telemetry.save: Save telemetry record of length 3933 in cache file under C:\Users\rickkr.azure\telemetry\20250617110613837
INFO: telemetry.main: Begin creating telemetry upload process.
INFO: 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\rickkr.azure C:\Users\rickkr.azure\telemetry\20250617110613837"
INFO: telemetry.process: Return from creating process 16832
INFO: telemetry.main: Finish creating telemetry upload process.
Expected behavior
return a list of devbox definitions
Environment Summary
azure-cli 2.74.0
core 2.74.0
telemetry 1.1.0
Extensions:
devcenter 7.0.0
Dependencies:
msal 1.32.3
azure-mgmt-resource 23.3.0
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\rickkr.azure'
Extensions directory 'C:\Users\rickkr.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
I'm running on a Microsoft Dev Box I created last year. Previous attempts with this command worked. (Don't know precisely when it stopped working.)
I tried removing and reinstalling the devcenter extension, but that did not help.