Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az group list crashes (also az resource list) #18542

Closed
delian opened this issue Jun 18, 2021 · 4 comments
Closed

az group list crashes (also az resource list) #18542

delian opened this issue Jun 18, 2021 · 4 comments
Assignees
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group feature-request
Milestone

Comments

@delian
Copy link

delian commented Jun 18, 2021

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az group list

Errors:

API version 2020-10-01 does not have operation group 'resource_groups'
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 233, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 659, in execute
    raise ex
cli/core/commands/__init__.py, ln 722, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 715, in _run_job
    six.reraise(*sys.exc_info())
...
cli/command_modules/resource/custom.py, ln 1198, in list_resource_groups
    groups = rcf.resource_groups.list(filter=filter_text)
mgmt/resource/resources/_resource_management_client.py, ln 350, in resource_groups
    raise ValueError("API version {} does not have operation group 'resource_groups'".format(api_version))
ValueError: API version 2020-10-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.

  • Put any pre-requisite steps here...
  • az group list -o {}

Expected Behavior

Environment Summary

Linux-5.11.0-18-generic-x86_64-with-glibc2.33
Python 3.9.5
Installer: DEB

azure-cli 2.18.0 *

Extensions:
interactive Unknown
azure-devops Unknown

Additional Context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 18, 2021
@yonzhan yonzhan added the ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group label Jun 18, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jun 18, 2021
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Jun 18, 2021
@yonzhan yonzhan added this to the S189 milestone Jun 18, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 18, 2021

ARM

@lishaie
Copy link

lishaie commented Jul 5, 2021

Happens to me too.
Ubuntu 21.04, x86_64
default python installation (python 3.9.5)
deb installer. azure-cli 2.18.0-1


CLIInternalError: The command failed with an unexpected error. Here is the traceback:
API version 2020-10-01 does not have operation group 'resource_groups'
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 659, in execute                                                
    raise ex                                                                                                                                     
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 722, 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 715, in _run_job                                               
    six.reraise(*sys.exc_info())                                                                                                                 
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise                                                                             
    raise value                                                                                                                                  
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 693, in _run_job                                               
    result = cmd_copy(params)                                                                                                                    
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 330, in __call__                                               
    return self.handler(*args, **kwargs)                                                                                                         
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 786, in default_command_handler
    return op(**command_args)
  File "/usr/lib/python3/dist-packages/azure/cli/command_modules/resource/custom.py", line 1198, in list_resource_groups
    groups = rcf.resource_groups.list(filter=filter_text)
  File "/usr/lib/python3/dist-packages/azure/mgmt/resource/resources/_resource_management_client.py", line 350, in resource_groups
    raise ValueError("API version {} does not have operation group 'resource_groups'".format(api_version))
ValueError: API version 2020-10-01 does not have operation group 'resource_groups'

@zhoxing-ms
Copy link
Contributor

@delian @lishaie This issue looks like a historical issue with older version of CLI.
Could you please upgrade the CLI to the latest version and try again? You can execute command az upgrade to upgrade

@jiasli
Copy link
Member

jiasli commented Aug 27, 2021

Should be solved by #19367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group feature-request
Projects
None yet
Development

No branches or pull requests

6 participants