Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az account list-locations fails #13144

Closed
dkozinn opened this issue Apr 23, 2020 · 6 comments
Closed

az account list-locations fails #13144

dkozinn opened this issue Apr 23, 2020 · 6 comments
Assignees
Labels
Account az login/account Cloud Shell customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@dkozinn
Copy link

dkozinn commented Apr 23, 2020

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az account list-locations

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 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
    raise ex
cli/core/commands/__init__.py, ln 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 659, in _run_job
    six.reraise(*sys.exc_info())
...
python3.6/site-packages/msrestazure/azure_active_directory.py, ln 486, in get_msi_token
    result.raise_for_status()
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 account list-locations

Expected Behavior

Expected valid output

Environment Summary

Linux-4.15.0-1075-azure-x86_64-with-debian-stretch-sid
Python 3.6.5

azure-cli 2.2.0 *

Extensions:
interactive 0.4.3

Additional Context

@ghost ghost added needs-triage customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Apr 23, 2020
@yonzhan yonzhan added the Account az login/account label Apr 24, 2020
@ghost ghost removed the needs-triage label Apr 24, 2020
@yonzhan yonzhan added this to the S170 milestone Apr 24, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 24, 2020

@arrownj please take a look

@arrownj
Copy link
Contributor

arrownj commented Apr 24, 2020

Similar to #11749 (comment)

400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token is a known issue of Cloud Shell that it intermittently fails with this error.

To solve it, please use Azure CLI on a local machine or run az login in Cloud Shell and retry the command.

@dkozinn
Copy link
Author

dkozinn commented Apr 24, 2020

I can confirm that using az login in the cloud shell works. It seems like I only had to do that once, after closing the cloud shell and starting a new one the command worked without another az login.

@arrownj
Copy link
Contributor

arrownj commented Apr 26, 2020

@dkozinn , yes, glad to here that it works. Let us know if you have other problems. Thanks

@jiasli jiasli added Cloud Shell Service Attention This issue is responsible by Azure service team. labels Apr 26, 2020
@ghost
Copy link

ghost commented Apr 26, 2020

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

@arrownj
Copy link
Contributor

arrownj commented Jun 9, 2020

Close this issue first. Cloud shell issue will be traced in #11749

@arrownj arrownj closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account Cloud Shell customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants