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

azd init on fresh install fails on macOS #4864

Open
1 task
dariuszparys opened this issue Feb 28, 2025 · 1 comment
Open
1 task

azd init on fresh install fails on macOS #4864

dariuszparys opened this issue Feb 28, 2025 · 1 comment
Labels
customer-reported identify a customer issue question

Comments

@dariuszparys
Copy link

Output from azd version
azd version 1.12.0 (commit dc37b93)

Describe the bug
After installing azd for the first time running azd init it only asks for
? Enter a new environment name: instead of going through the selection dialogue.

See attached screenshot

Image

The project analyzed is an .NET Aspire 9.1 project

To Reproduce

  1. Cleanup existing azd structure and installation
rm -rf ˜/.azure
rm -rf ˜/.azd
brew uninstall azd
cd project
rm -rf .azure
rm azure.yaml
rm next-steps.md
  1. Reinstall azd and init
brew tap azure/azd && brew install azd
az login
cd project
azd init

This is given the shown error.

Expected behavior
Running azd init should respond with this dialog

Image

Environment
Information on your environment:
* en-US
* macOS Sequoia 15.3.1
* .NET V9.0.200
* .NET Aspire 9.1.0
* nvim

@weikanglim
Copy link
Contributor

Hey @dariuszparys 👋 Thanks for taking the time to log an issue!

azd init it only asks for ? Enter a new environment name:

From what I gleaned at the implementation, azd would prompt singly for an environment name if an existing azure.yaml in the working direcotry is already detected. I could see from the repro steps provided that rm azure.yaml was ran at some point, but I'm curious that project directory having an existing azure.yaml may still be related here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported identify a customer issue question
Projects
None yet
Development

No branches or pull requests

2 participants