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 Login command should timeout or error if account does not have access #11150

Closed
gminer485 opened this issue Nov 7, 2019 · 2 comments
Closed
Assignees
Labels
Account az login/account
Milestone

Comments

@gminer485
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az login

Errors:

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 login

Expected Behavior

Time out after 60 seconds of attempted login.

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: powershell.exe

azure-cli 2.0.76

Additional Context

I used the account signed into Windows, which does not have access. It should have timed out, rather than just sitting there for ten minutes.

@mmyyrroonn mmyyrroonn added the Account az login/account label Nov 8, 2019
@fengzhou-msft
Copy link
Member

@jiasli please take a look.

@yonzhan yonzhan added this to the S162 milestone Nov 9, 2019
@yonzhan yonzhan modified the milestones: S162, S163 Dec 15, 2019
@yonzhan yonzhan modified the milestones: S163, S164 Dec 30, 2019
@yonzhan yonzhan modified the milestones: S164, S165 Feb 1, 2020
@yonzhan yonzhan modified the milestones: S165, S167 Feb 15, 2020
@qianwens qianwens added needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Mar 3, 2020
@jiasli
Copy link
Member

jiasli commented Mar 4, 2020

I have fixed az login hang issue in #10955. If the account doesn't have access, instead of hanging, CLI will show

No subscriptions were found for 'xxx'. If this is expected, use '--allow-no-subscriptions' to have tenant level access

If you still see this issue, please run az login --debug and share the result to my email <my_github_id>@microsoft.com

@jiasli jiasli closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account
Projects
None yet
Development

No branches or pull requests

6 participants