Package: azure-cli
Version: 2.77.0-1
Severity: important

Dear Maintainer,

az acr login fails with the error shown below (note that I've masked my 
client's repository).

Other commands like az vm restart are broken.

I've logged a bug upstream (https://github.com/Azure/azure-cli/issues/32087). 
It was closed by a bot and then got a comment that they will look into it. I 
still don't know if the issue comes from upstream.

I hope you'll be able to do something about it.

All the best

$ az acr login -n XXXXXX --debug
cli.knack.cli: Command arguments: ['acr', 'login', '-n', 'XXXXXX', '--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 0x7fb0f6a4d260>, <function 
OutputProducer.on_global_arguments at 0x7fb0f6834f40>, <function 
CLIQuery.on_global_arguments at 0x7fb0f6863060>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'acr': 
['azure.cli.command_modules.acr']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: acr                       0.083        36       149
cli.azure.cli.core: Total (1)                 0.083        36       149
cli.azure.cli.core: These extensions are not installed and will be skipped: 
['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name                  Load Time    Groups  Commands  
Directory
cli.azure.cli.core: Total (0)                 0.000         0         0  
cli.azure.cli.core: Loaded 36 groups, 149 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : acr login
cli.azure.cli.core: Command table: acr login
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function 
AzCliLogging.init_command_file_logging at 0x7fb0f5770c20>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 
'/home/domi/.azure/commands/2025-09-10.16-42-26.acr_login.437842.log'.
az_command_data_logger: command args: acr login -n {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function 
register_global_subscription_argument.<locals>.add_subscription_parameter at 
0x7fb0f57bdee0>]
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 281, in __getattr__
    return self._operations_groups_value[item]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'webhooks'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", 
line 564, in execute
    self.commands_loader.load_arguments(command)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 554, 
in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument 
registries
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/__init__.py", 
line 37, in load_arguments
    load_arguments(self, command)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/_params.py", line 
77, in load_arguments
    TokenStatus, ZoneRedundancy, AutoGeneratedDomainNameLabelScope = 
self.get_models(
                                                                     
~~~~~~~~~~~~~~~^
        'PasswordName', 'DefaultAction', 'PolicyStatus', 'WebhookAction', 
'WebhookStatus',
        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        'TokenStatus', 'ZoneRedundancy', 'AutoGeneratedDomainNameLabelScope')
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 809, 
in get_models
    return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', 
operation_group=operation_group)
  File "/usr/lib/python3/dist-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/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 493, in get_versioned_sdk
    sdk_path = get_versioned_sdk_path(api_profile, resource_type, 
operation_group)
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 485, in get_versioned_sdk_path
    api_version = getattr(api_version, operation_group)
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 283, in __getattr__
    raise AttributeError('Attribute {} does not exist.'.format(item))
AttributeError: Attribute webhooks does not exist.

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: Attribute webhooks does not exist.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 281, in __getattr__
    return self._operations_groups_value[item]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'webhooks'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", 
line 564, in execute
    self.commands_loader.load_arguments(command)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 554, 
in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument 
registries
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/__init__.py", 
line 37, in load_arguments
    load_arguments(self, command)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/_params.py", line 
77, in load_arguments
    TokenStatus, ZoneRedundancy, AutoGeneratedDomainNameLabelScope = 
self.get_models(
                                                                     
~~~~~~~~~~~~~~~^
        'PasswordName', 'DefaultAction', 'PolicyStatus', 'WebhookAction', 
'WebhookStatus',
        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        'TokenStatus', 'ZoneRedundancy', 'AutoGeneratedDomainNameLabelScope')
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 809, 
in get_models
    return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', 
operation_group=operation_group)
  File "/usr/lib/python3/dist-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/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 493, in get_versioned_sdk
    sdk_path = get_versioned_sdk_path(api_profile, resource_type, 
operation_group)
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 485, in get_versioned_sdk_path
    api_version = getattr(api_version, operation_group)
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 283, in __getattr__
    raise AttributeError('Attribute {} does not exist.'.format(item))
AttributeError: Attribute webhooks does not exist.
az_command_data_logger: Attribute webhooks does not exist.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 281, in __getattr__
    return self._operations_groups_value[item]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'webhooks'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", 
line 564, in execute
    self.commands_loader.load_arguments(command)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 554, 
in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument 
registries
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/__init__.py", 
line 37, in load_arguments
    load_arguments(self, command)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/_params.py", line 
77, in load_arguments
    TokenStatus, ZoneRedundancy, AutoGeneratedDomainNameLabelScope = 
self.get_models(
                                                                     
~~~~~~~~~~~~~~~^
        'PasswordName', 'DefaultAction', 'PolicyStatus', 'WebhookAction', 
'WebhookStatus',
        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        'TokenStatus', 'ZoneRedundancy', 'AutoGeneratedDomainNameLabelScope')
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 809, 
in get_models
    return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', 
operation_group=operation_group)
  File "/usr/lib/python3/dist-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/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 493, in get_versioned_sdk
    sdk_path = get_versioned_sdk_path(api_profile, resource_type, 
operation_group)
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 485, in get_versioned_sdk_path
    api_version = getattr(api_version, operation_group)
  File "/usr/lib/python3/dist-packages/azure/cli/core/profiles/_shared.py", 
line 283, in __getattr__
    raise AttributeError('Attribute {} does not exist.'.format(item))
AttributeError: Attribute webhooks does not exist.
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 0x7fb0f5770ea0>]
az_command_data_logger: exit code: 1
cli.azure.cli.__main__: Command ran in 0.291 seconds (init: 0.107, invoke: 
0.184)
cli.azure.cli.core.decorators: Suppress exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/azure/cli/__main__.py", line 53, in 
<module>
    raise ex
  File "/usr/lib/python3/dist-packages/azure/cli/__main__.py", line 46, in 
<module>
    sys.exit(exit_code)
    ~~~~~~~~^^^^^^^^^^^
SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/azure/cli/core/decorators.py", line 79, 
in _wrapped_func
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/azure/cli/core/telemetry.py", line 580, 
in _get_device_id
    from deviceid import get_device_id
ModuleNotFoundError: No module named 'deviceid'

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 7843 in cache file under 
/home/domi/.azure/telemetry/20250910164226435
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/usr/bin/python3 
/usr/lib/python3/dist-packages/azure/cli/telemetry/__init__.py 
/home/domi/.azure /home/domi/.azure/telemetry/20250910164226435"
telemetry.process: Return from creating process 437861
telemetry.main: Finish creating telemetry upload process.


*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.16.3+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en_US:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages azure-cli depends on:
ii  python3            3.13.7-1
ii  python3-azure-cli  2.77.0-1

azure-cli recommends no packages.

azure-cli suggests no packages.

-- no debconf information

Reply via email to