Errror running aks get-credentials
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:
'users' Traceback (most recent call last): File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke cmd_result = self.invocation.execute(args) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 603, in execute raise ex File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 661, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 654, in _run_job six.reraise(*sys.exc_info()) File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise raise value File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 631, in _run_job result = cmd_copy(params) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 306, in call return self.handler(*args, **kwargs) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/init.py", line 485, in default_command_handler return op(**command_args) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1887, in aks_get_credentials _print_or_merge_credentials(path, kubeconfig, overwrite_existing, context_name) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 2775, in _print_or_merge_credentials merge_kubernetes_configurations(path, temp_path, overwrite_existing, context_name) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1178, in merge_kubernetes_configurations _handle_merge(existing, addition, 'users', replace) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 1112, in _handle_merge if existing[key] is None: KeyError: 'users'
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 aks get-credentials --resource-group {} --name {} --subscription {} --overwrite-existing
Expected Behavior
Environment Summary
Linux-4.4.0-18362-Microsoft-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash
azure-cli 2.0.74 *
Additional Context
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.
thanks for reporting, we'll look at it
@jessemillar, I ended up uninstalling azure-cli and deleting my .azure and .cube directories. Might have worked with just deleting those directories. anyway, reinstalled,and now it's working again. Hope this helps!
Hello! Please try again with the latest Azure CLI version. Feel free to reopen an issue if it still doesn't work. https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest