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 provision fails to retrieve environment name #13

Closed
NanaXiong00 opened this issue Aug 23, 2024 · 1 comment
Closed

azd provision fails to retrieve environment name #13

NanaXiong00 opened this issue Aug 23, 2024 · 1 comment

Comments

@NanaXiong00
Copy link

Describe the issue:
Unable to correctly retrieve the environment name using azd provision, as shown below:
Screenshot 2024-08-23 154108

Repro Steps:

  1. Open in GitHub Codespaces.
  2. Run python -m venv .venv and source .venv/bin/activate.
  3. Run pip install -r requirements.txt.
  4. Run azd auth login.
  5. Run npm i.
  6. Run npm run env:init.
  7. Run azd provision.

Environment:

  • Azd version: azd version 1.9.6 (commit 0b1a8ad350177078312141f4465ad72205d7c077)
  • OS: Codespaces, Dev Containers.

Expected behavior:
azd provision can correctly retrieve the environment name.

@hemarina and @cwaddingham for notification.

@vhvb1989
Copy link
Contributor

Add a mapping for environmentName in parameters.json like

 "environmentName": {
      "value": "${AZURE_ENV_NAME}"
    },

Suggested PR: #14

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

No branches or pull requests

3 participants