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.

az aks get-credentials not returning access-profile

See original GitHub issue

I am using Azure-CLI version 2.0.24, however az aks get-credentials is not working.

I am getting the following error:

‘ManagedCluster’ object has no attribute ‘properties’ Traceback (most recent call last): File “/home/xiou/lib/azure-cli/local/lib/python2.7/site-packages/knack/cli.py”, line 193, in invoke cmd_result = self.invocation.execute(args) File “/home/xiou/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/commands/init.py”, line 319, in execute six.reraise(*sys.exc_info()) File “/home/xiou/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/commands/init.py”, line 292, in execute result = cmd(params) File “/home/xiou/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/commands/init.py”, line 169, in call return super(AzCliCommand, self).call(*args, **kwargs) File “/home/xiou/lib/azure-cli/local/lib/python2.7/site-packages/knack/commands.py”, line 109, in call return self.handler(*args, **kwargs) File “/home/xiou/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/init.py”, line 328, in default_command_handler result = op(**command_args) File “/home/xiou/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/command_modules/acs/custom.py”, line 1329, in aks_get_credentials access_profiles = mc.properties.access_profiles AttributeError: ‘ManagedCluster’ object has no attribute ‘properties’

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:27
  • Comments:52 (12 by maintainers)

github_iconTop GitHub Comments

16reactions
frank-montynecommented, Jan 8, 2018

Hello Microsoft! This is prevents a lot of people of using managed AKS Kubernetes! Any workaround is appreciated!

7reactions
vpopescucommented, Jan 8, 2018

I am just seeing something similar, just started happening:

az aks get-credentials -n cluster-name -g rg-name No Kubernetes access profiles found. Cluster provisioning state is “Succeeded”.

Edit:

that was with 2.0.22 After updating to 2.0.24 I get the stack trace like the OP.

2.0.23 works. Reverted with: apt-get install azure-cli=2.0.23-1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Kubernetes Error when running "az aks get-credentials ...
When you use the command az aks get-credentials without parameter --admin , it means the CLI command uses the default value: Cluster user....
Read more >
Reset the credentials for a cluster - Azure Kubernetes Service
To update the credentials for the existing service principal, get the service principal ID of your cluster using the az aks show command....
Read more >
Securely enabling az aks get-credentials - BrandonBarnett.io
In order for az aks get-credentials to succeed right now on AKS, the user has to have at least Contributor access to the...
Read more >
Disable local user account (-admin) in Azure Kubernetes ...
So if I try to get the cluster credentials using az aks get-credentials I will get errors, for both user and admin.
Read more >
Understanding identities in Azure AKS / Kubernetes
That is a Kubernetes tool, not an Azure tool. ... Step 3 - az aks get-credentials Here are the sub steps: End-user launch...
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