Skip to content

[Issue] azd init hangs inside WSL #460

Description

@weikanglim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions