azure-cli
azure-cli copied to clipboard
fail when i ran get-credentials 'az aks get-credentials --resource-group testResourceGroup --name myAKSCluster'
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks get-credentials
Errors:
'clusters'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 625, in execute
raise ex
cli/core/commands/__init__.py, ln 689, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 682, in _run_job
six.reraise(*sys.exc_info())
...
cli/command_modules/acs/custom.py, ln 1181, in merge_kubernetes_configurations
_handle_merge(existing, addition, 'clusters', replace)
cli/command_modules/acs/custom.py, ln 1116, in _handle_merge
if existing[key] is None:
KeyError: 'clusters'
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 {}
Expected Behavior
Environment Summary
macOS-10.15.4-x86_64-i386-64bit
Python 3.8.2
Installer: HOMEBREW
azure-cli 2.3.1 *
Additional Context
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.
aks
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