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

subscription and location isn't being saved after provisioning attempt #2325

Closed
weikanglim opened this issue May 30, 2023 · 0 comments · Fixed by #2326
Closed

subscription and location isn't being saved after provisioning attempt #2325

weikanglim opened this issue May 30, 2023 · 0 comments · Fixed by #2326
Assignees
Labels
bug Something isn't working

Comments

@weikanglim
Copy link
Contributor

  1. azd init -> Select Minimal
  2. azd config unset defaults.subscription and azd config unset defaults.location
  3. azd provision -> Select a subscription and location and complete provisioning
  4. Run azd config list

Expected:
defaults.subscription and defaults.location are set.

Actual:
The config values are unset. Running azd provision doesn't default to the previously provisioned subscription.

@ghost ghost added the needs-triage For new issues label May 30, 2023
@weikanglim weikanglim self-assigned this May 30, 2023
@weikanglim weikanglim added bug Something isn't working and removed needs-triage For new issues labels May 30, 2023
weikanglim added a commit that referenced this issue May 31, 2023
This fixes default subscription and location prompt selection not being saved after the initial provisioning attempt.

Existing logic was using `env.GetSubscriptionId()` and `env.GetLocationId()` but those values were not yet set in the environment.

Fixes #2325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant