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

[Issue] azd init hangs inside WSL #460

Closed
1 task done
weikanglim opened this issue Aug 11, 2022 · 3 comments
Closed
1 task done

[Issue] azd init hangs inside WSL #460

weikanglim opened this issue Aug 11, 2022 · 3 comments

Comments

@weikanglim
Copy link
Contributor

Output from azd version
Run azd version and copy and paste the output here:
azd version 0.1.0-beta.3 (commit 77ab01c)

Output from az version
Run az version and copy and paste the output here (minimum required version is 2.38.0):
{
"azure-cli": "2.38.0",
"azure-cli-core": "2.38.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {}
}

Describe the bug
When the user isn't logged into azure CLI, running azd init hangs on az login.

To Reproduce

  1. In WSL, run az logout
  2. Run azd init in an empty folder
  3. Specify a template (if needed) and an environment name
  4. azd hangs forever

Expected behavior
azd should print out the device code since there isn't autolaunch browser support in WSL.

Environment
Information on your environment:
* WSL Ubuntu 22.04

Additional context

@savannahostrowski
Copy link
Contributor

I can't repro this anymore. Does this still persist for you @weikanglim?

@vhvb1989
Copy link
Member

IIRC, we are not failling if we run any command (like init or up) and we did not log in first.

@weikanglim
Copy link
Contributor Author

This is mostly fixed with the azd login changes to not depend on az

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants