az aks get-credentials not returning access-profile
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:27
- Comments:52 (12 by maintainers)
Top GitHub Comments
Hello Microsoft! This is prevents a lot of people of using managed AKS Kubernetes! Any workaround is appreciated!
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