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

UX: Should confirm before automatically setting a new environment as the default. #4800

Open
vhvb1989 opened this issue Feb 14, 2025 · 3 comments

Comments

@vhvb1989
Copy link
Member

From the conversation in : #4561

This issue is about changing the current behavior in azd after a new environment is created. The current implementation is automatically setting the new environment as the default without asking user about it or without even telling user that the new environment has been set as the default.

A new user is surprised, for example, when running azd provision -e new-environment that the next call to azd will continue to use the new created environment, when the intention of using -e flag was to avoid explicitly calling azd env select another-environment.

@Menghua1
Copy link
Member

@vhvb1989 We designed a solution to solve this issue, the specific effects are as follows:

  • For the azd env new command, the design is as follows:
    Image

  • For azd provision -e new-env, the design is as follows:
    Image

If you agree with our proposed solution, we will open a PR to fix it.
CC: @rajeshkamal5050

@vhvb1989
Copy link
Member Author

That looks good to me <3
Let me add @kristenwomack and @SophCarp as a heads up and for feedback. I think it is a good change.

@kristenwomack
Copy link
Collaborator

Thank you! Looks good.

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

No branches or pull requests

3 participants