Skip to content

az group list give error: API version 2022-09-01 does not have operation group 'resource_groups'Β #26417

@bmoore-msft

Description

@bmoore-msft

Describe the bug

The az group list command fails with the error: API version 2022-09-01 does not have operation group 'resource_groups'

Command Name
az group list

Errors:

The command failed with an unexpected error. Here is the traceback:
API version 2022-09-01 does not have operation group 'resource_groups'
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/resource/custom.py", line 1306, in list_resource_groups
  File "c:\users\bmoore\source\azdeploymentstacksprivatepreview\azure-mgmt-resource-21.2.0\azure\mgmt\resource\resources\_resource_management_client.py", line 436, in resource_groups
    raise ValueError("API version {} does not have operation group 'resource_groups'".format(api_version))
ValueError: API version 2022-09-01 does not have operation group 'resource_groups'

To Reproduce:

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

  • Just run the command - have tried removing and reinstalling the CLI but no change in behavior.

Expected Behavior

Command should return the list of resource groups in the sub

Environment Summary

Windows-10-10.0.22621-SP0
Python 3.10.10
Installer: MSI

azure-cli 2.48.1

Additional Context

I think the issue is here, though I'm unable to get rid of it:

File "c:\users\bmoore\source\azdeploymentstacksprivatepreview\azure-mgmt-resource-21.2.0\azure\mgmt\resource\resources\_resource_management_client.py", line 436, in resource_groups raise ValueError("API version {} does not have operation group 'resource_groups'".format(api_version))

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botService AttentionThis issue is responsible by Azure service team.Similar-IssuequestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions