Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1021338: azure-cli: az webapp commands failing: API version 2022-03-01 does not have operation group 'web_apps'

213 views
Skip to first unread message

David.K

unread,
Oct 6, 2022, 2:30:02 AM10/6/22
to
Package: azure-cli
Version: 2.40.0-1
Severity: normal

Dear Maintainer,

az webapp commands are failing with the following stack trace:

$ az webapp list
The command failed with an unexpected error. Here is the traceback:
API version 2022-03-01 does not have operation group 'web_apps'
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/appservice/custom.py", line 967, in list_webapp
full_list = _list_app(cmd.cli_ctx, resource_group_name)
File "/usr/lib/python3/dist-packages/azure/cli/command_modules/appservice/custom.py", line 1006, in _list_app
result = list(client.web_apps.list())
File "/usr/lib/python3/dist-packages/azure/mgmt/web/_web_site_management_client.py", line 804, in web_apps
raise ValueError("API version {} does not have operation group 'web_apps'".format(api_version))
ValueError: API version 2022-03-01 does not have operation group 'web_apps'


According to this issue raised in the github project page, doing an install with the
non-Debian installer fixes the issue. Which seems to indicate that this package is in
need of an update.

https://github.com/Azure/azure-cli/issues/23848




-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Versions of packages azure-cli depends on:
ii python3 3.10.6-1
ii python3-azure-cli 2.40.0-1

Luca Boccassi

unread,
Oct 7, 2022, 5:50:04 AM10/7/22
to
Control: reassign -1 python3-azure 20220407+git-1
The issue is in the python-azure package - unfortunately the upstream
SDK is of terrible quality, and very badly maintained, so it's
impossible to "get it right", there's always something breaking as it's
never internally consistent. At some point I'll do an update of python-
azure, but something else will just break instead, it's like whack-a-
mole.

You should _never_ use the upstream package by the way, it's even lower
quality than everything else upstream produces and riddled with
security bugs, it should never touch any production machine where there
is valuable or sensitive data.

--
Kind regards,
Luca Boccassi

Luca Boccassi

unread,
Nov 11, 2022, 10:20:04 AM11/11/22
to
Control: close -1 20221101+git-1

On Thu, 06 Oct 2022 17:15:33 +1100 "David.K" <deb...@dk.id.au> wrote:
Cannot reproduce with the newer python3-azure, closing.
signature.asc
0 new messages