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

API version 2021-10-01 does not have operation group 'managed_clusters' when running az aks get-credentials #21254

Closed
Stummi opened this issue Feb 11, 2022 · 4 comments
Assignees
Labels
AKS az aks/acs/openshift customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-author-feedback More information is needed from author to address the issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@Stummi
Copy link

Stummi commented Feb 11, 2022

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az aks get-credentials

Errors:

The command failed with an unexpected error. Here is the traceback:
API version 2021-10-01 does not have operation group 'managed_clusters'
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 658, in execute
    raise ex
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 721, 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 692, in _run_job
    result = cmd_copy(params)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
    client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
  File "/usr/lib/python3/dist-packages/azure/cli/command_modules/acs/_client_factory.py", line 22, in cf_managed_clusters
    return get_container_service_client(cli_ctx).managed_clusters
  File "/usr/lib/python3/dist-packages/azure/mgmt/containerservice/_container_service_client.py", line 404, in managed_clusters
    raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version))
ValueError: API version 2021-10-01 does not have operation group 'managed_clusters'

To Reproduce:

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

  • az login
  • az aks get-credentials --admin --subscription={} --name {} --resource-group {}

Expected Behavior

Environment Summary

Linux-5.15.0-3-amd64-x86_64-with-glibc2.33, Debian GNU/Linux bookworm/sid
Python 3.9.10
Installer: DEB

azure-cli 2.33.0

Extensions:
azure-devops 0.23.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. AKS az aks/acs/openshift CXP Attention This issue is handled by CXP team. Auto-Assign Auto assign by bot and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Feb 11, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 11, 2022

route to CXP team to help with

@yonzhan yonzhan removed the Auto-Assign Auto assign by bot label Feb 11, 2022
@navba-MSFT navba-MSFT self-assigned this Feb 14, 2022
@navba-MSFT
Copy link
Contributor

@Stummi Apologies for the late reply. I was not able to reproduce this issue in my machine. Could you please install the latest version of the Azure CLI from here and then test this again ? Awaiting your reply.

Tagging a few similar issues here #16498 #18889

@navba-MSFT navba-MSFT added the needs-author-feedback More information is needed from author to address the issue. label Feb 14, 2022
@jiasli
Copy link
Member

jiasli commented Feb 14, 2022

Judging by

Linux-5.15.0-3-amd64-x86_64-with-glibc2.33, Debian GNU/Linux bookworm/sid
Python 3.9.10
azure-cli 2.33.0

This is not the official Azure CLI published by Microsoft. Please see #19640.

For now, please follow https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt to install Azure CLI on stable/GA versions of Debian, like 11 Bullseye, instead of sid.

https://wiki.debian.org/DebianUnstable

Sid is forever doomed to being unstable.

@Stummi
Copy link
Author

Stummi commented Feb 14, 2022

Thanks. I actually did download the official version but it seems I was unaware of a locally installed one that did override the official one. It now works.

@Stummi Stummi closed this as completed Feb 14, 2022
@navba-MSFT navba-MSFT added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS az aks/acs/openshift customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-author-feedback More information is needed from author to address the issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants