azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az aks update-credentials failed

Open zsolt-bognar opened this issue 6 years ago • 7 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az aks update-credentials

Errors:

400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
python3.6/site-packages/requests/models.py, ln 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token

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 update-credentials --resource-group {} --name {} --reset-service-principal --service-principal {} --client-secret {}

Expected Behavior

Environment Summary

Linux-4.15.0-1091-azure-x86_64-with-debian-stretch-sid (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.9.0

Additional Context

zsolt-bognar avatar Jul 16 '20 08:07 zsolt-bognar

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

ghost avatar Jul 16 '20 10:07 ghost

aks

yonzhan avatar Jul 16 '20 10:07 yonzhan

hi @zsolt-bognar did you meet the issue in Cloudshell? Could you pls try workaround with az login? This is a known Cloudshell issue #11749 .

yungezz avatar Jul 16 '20 23:07 yungezz

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @maertendMSFT.

ghost avatar Jul 16 '20 23:07 ghost

@zsolt-bognar When you see this error "400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token", can you try "az login --identity" and paste the response here? Please also share the time that this error shows, so we can dig into our logs. Thank you.

BellaLi avatar Jul 21 '20 16:07 BellaLi

Ping on @zsolt-bognar for @BellaLi 's request

maertendMSFT avatar Sep 30 '20 23:09 maertendMSFT

Can we close this as a dupe of: https://github.com/Azure/azure-cli/issues/11749

maertendMSFT avatar Nov 20 '20 22:11 maertendMSFT