question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

azure-cli 2.37.0-2 from debian unstable: API version 2021-08-01 does not have operation group 'network_interfaces'

See original GitHub issue

Describe the bug

Command Name az vm list-ip-addresses

Errors:

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'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az vm list-ip-addresses

Expected Behavior

Environment Summary

Linux-5.18.0-2-cloud-amd64-x86_64-with-glibc2.33, Debian GNU/Linux bookworm/sid
Python 3.10.5
Installer: DEB

azure-cli 2.37.0

Extensions:
azure-devops 0.24.0

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.0.0

Additional Context

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jiaslicommented, Jul 4, 2022

@zhoxing-ms, you are right. 2.37.0-2 is release by @bluca, not Microsoft.

1reaction
nyetwurkcommented, Sep 6, 2022

@nyetwurk Please share az --version details with us please. For some reason we are unable to reproduce this issue at our end.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014203 and https://github.com/Azure/azure-cli/issues/23094#issuecomment-1173262831

Read more comments on GitHub >

github_iconTop Results From Across the Web

API version 2022-03-01 does not have operation group ...
I would suggest you use the below Azure Cli cmdlet to see the list of supported windows-11:win11-21h2-pro images to deploy a virtual machine....
Read more >
azure-cli: az webapp commands failing: API version 2022-03 ...
Bug#1021338: azure-cli: az webapp commands failing: API version 2022-03-01 does not have operation group 'web_apps'. 11 views.
Read more >
Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
Read more >
Bugs in package azure-cli (version 2.42.0-1) in unstable
Debian Bug report logs: Bugs in package azure-cli (version 2.42.0-1) in unstable. Maintainers for azure-cli are Debian Python Team ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found