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

Bug#1014203: azure-cli: API version 2021-08-01 does not have operation group 'network_interfaces'

220 views
Skip to first unread message

Nye Liu

unread,
Jul 1, 2022, 9:10:04 PM7/1/22
to
Package: azure-cli
Version: 2.37.0-2
Severity: grave
Justification: renders package unusable

Dear Maintainer,

* What led up to the situation?

installed

* What exactly did you do (or not do) that was effective (or
ineffective)?

az vm list-ip-addresses

* What was the outcome of this action?

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

The command failed with an unexpected error. Here is the traceback:
API version 2021-08-01 does not have operation group 'network_interfaces'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/knack/cli.py", line 231, 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/vm/custom.py", line 1281, in list_vm_ip_addresses
nics = network_client.network_interfaces.list_all()
File "/usr/lib/python3/dist-packages/azure/mgmt/network/_network_management_client.py", line 4475, in network_interfaces
raise ValueError("API version {} does not have operation group 'network_interfaces'".format(api_version))
ValueError: API version 2021-08-01 does not have operation group 'network_interfaces'

* What outcome did you expect instead?

Normal az output

* Workaround

changing to

2.37.0-1~focal 500
500 https://packages.microsoft.com/repos/azure-cli focal/main amd64 Packages
100 /var/lib/dpkg/status

resolves it.

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

Kernel: Linux 5.8.3-x86_64-linode137 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages azure-cli depends on:
ii python3 3.10.4-1+b1
ii python3-azure-cli 2.37.0-2

azure-cli recommends no packages.

azure-cli suggests no packages.

-- no debconf information

Nye Liu

unread,
Aug 25, 2022, 8:20:04 PM8/25/22
to
unattended upgrades overwrites anything installed from the microsoft
package repo.


--
All information and attachments included in this email are confidential and
intended for the original recipient only. You must not share any part of
this message with any third party. If you have received this message by
mistake, please let us know immediately, so that we can make sure such a
mistake does not happen again and delete this message from your system.

Nye Liu

unread,
Aug 25, 2022, 8:30:04 PM8/25/22
to

https://github.com/Azure/azure-cli/issues/19640#issuecomment-1227878091


1. Remove the alias `azure-cli` from https://packages.debian.org/sid/azure-cli, and only use the name `python3-azure-cli` so that it can be distinguished from Microsoft's `azure-cli`.

2. Pull down the package `azure-cli` from Debian/Ubuntu repo https://packages.debian.org/sid/azure-cli.

3. Force installing from `packages.microsoft.com`: [{Packaging} Prioritize official package over the dist one #20557](https://github.com/Azure/azure-cli/pull/20557)
0 new messages