Open
Description
- Make sure you've installed the latest version using instructions in the wiki
Output from azd version
azd version 1.10.1 (commit 31409a3)
Describe the bug
If config.json refers to a default environment that no longer exists (lets call it foo), running azd up --environment bar
will ignore the specified env and instead prompt you Environment 'foo' does not exist, would you like to create it? (Y/n)
To Reproduce
mkdir azdtest
cd azdtest
azd init -t hello-azd -e bar
azd env new foo
rd -r ..azure\foo
azd up -e bar
Expected behavior
It runs on azd up on environment bar
Actual behavior
It displays the following prompt:
Environment 'foo' does not exist, would you like to create it? (Y/n)