Package: azure-cli Version: 2.41.0-1 Severity: normal Dear Maintainer,
With Debian's azure-cli, terraform authentication fails with the following error: $ terraform apply ╷ │ Error: obtaining Authorization Token from the Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: The command failed with an unexpected error. Here is the traceback: │ ERROR: ClientApplication.__init__() got an unexpected keyword argument 'allow_broker' │ 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 663, in execute │ raise ex │ File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially │ results.append(self._run_job(expanded_arg, cmd_copy)) │ File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job │ result = cmd_copy(params) │ File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 333, in __call__ │ return self.handler(*args, **kwargs) │ File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 121, in handler │ return op(**command_args) │ File "/usr/lib/python3/dist-packages/azure/cli/command_modules/profile/custom.py", line 66, in get_access_token │ creds, subscription, tenant = profile.get_raw_token(subscription=subscription, resource=resource, scopes=scopes, │ File "/usr/lib/python3/dist-packages/azure/cli/core/_profile.py", line 382, in get_raw_token │ credential = self._create_credential(account, tenant) │ File "/usr/lib/python3/dist-packages/azure/cli/core/_profile.py", line 592, in _create_credential │ return identity.get_user_credential(username_or_sp_id) │ File "/usr/lib/python3/dist-packages/azure/cli/core/auth/identity.py", line 224, in get_user_credential │ return UserCredential(self.client_id, username, **self._msal_app_kwargs) │ File "/usr/lib/python3/dist-packages/azure/cli/core/auth/msal_authentication.py", line 39, in __init__ │ super().__init__(client_id, **kwargs) │ File "/usr/lib/python3/dist-packages/msal/application.py", line 1525, in __init__ │ super(PublicClientApplication, self).__init__( │ TypeError: ClientApplication.__init__() got an unexpected keyword argument 'allow_broker' │ To open an issue, please run: 'az feedback' On the other hand, terraform works fine when using the azure-cli package provided by Microsoft: $ sudo apt install azure-cli=2.41.0-1~bullseye [snip] The following packages will be DOWNGRADED: azure-cli [snip] dpkg: warning: downgrading azure-cli from 2.41.0-1 to 2.41.0-1~bullseye (Reading database ... 717725 files and directories currently installed.) Preparing to unpack .../azure-cli_2.41.0-1~bullseye_all.deb ... Unpacking azure-cli (2.41.0-1~bullseye) over (2.41.0-1) ... Setting up azure-cli (2.41.0-1~bullseye) ... [snip] $ terraform apply module.seira-azure.random_integer.subnet-nb: Refreshing state... [id=154] [snip] All the best -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.0.0-2-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set 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.10.6-1 ii python3-azure-cli 2.41.0-1 azure-cli recommends no packages. azure-cli suggests no packages. -- no debconf information