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.

Not able to connect to cluster when using Azure CLI

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

When am trying to connect to an AKS cluster using Azure CLI, its getting this error.

Command Name az aks get-credentials

Errors:

The command failed with an unexpected error. Here is the traceback:
API version 2022-06-01 does not have operation group 'managed_clusters'
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 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 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 27, 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 492, in managed_clusters
    raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version))
ValueError: API version 2022-06-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 aks get-credentials --resource-group {} --name {}

Expected Behavior

Environment Summary

Linux-5.19.0-1-amd64-x86_64-with-glibc2.34, Debian GNU/Linux bookworm/sid
Python 3.10.7
Installer: DEB

azure-cli 2.40.0

Extensions:
azure-devops 0.24.0

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.0.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
navba-MSFTcommented, Sep 26, 2022

@strange2x The action is currently pending on you see the above suggestion. Please feel free to reopen this thread, if you need any further assistance on this. We would be happy to help.

0reactions
strange2xcommented, Oct 20, 2022

I have installed a lower version and it worked fine. Now switched the machine and using the latest one and is working fine 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot cluster connection issues with the API server
Troubleshoot issues that occur when you attempt to connect to the API server of an Azure Kubernetes Service (AKS) cluster.
Read more >
User can't get cluster resources - Azure - Microsoft Learn
Troubleshoot issues that are caused when a user can't list a resource within an API group in an Azure Kubernetes Service (AKS) cluster....
Read more >
Troubleshoot network problems in AKS clusters
These errors involve connection problems that occur when you can't reach an Azure Kubernetes Service (AKS) cluster's API server through the ...
Read more >
Quickstart: Connect an existing Kubernetes cluster to Azure Arc
In this quickstart, you learn how to connect an Azure Arc-enabled Kubernetes cluster.
Read more >
Troubleshoot Azure Kubernetes Service cluster creation issues
Learn about basic troubleshooting methods to use when you can't ... When you create clusters by using Azure CLI, errors are recorded as ......
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