Skip to content

Commit 0bf7d76

Browse files
Update DeploymentGuide.md for local development & debugging instructions
1 parent cfaff99 commit 0bf7d76

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/DeploymentGuide.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,12 @@ This will rebuild the source code, package it into a container, and push it to t
229229

230230
- Follow steps in [Delete Resource Group](DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
231231

232-
## For local Debugging
232+
## Environment configuration for local development & debugging
233+
> Set APP_ENV in your .env file to control Azure authentication. Use dev to enable to use Azure CLI credential, Prod to enable Managed Identity (for production). **Ensure you're logged in via az login when using dev in local**.
233234
234-
To configure your environment, navigate to the `src\App` folder to create a `.env` file based on the `.env.sample`, fill it using deployment output or the Azure Portal under "Deployments" in your resource group, and ensure APP_ENV is set to "**dev**".
235+
To configure your environment, follow these steps:
236+
237+
1. Navigate to the `src\App` folder.
238+
2. Create a `.env` file based on the `.env.sample` file.
239+
3. Fill in the `.env` file using the deployment output or by retrieving values from the Azure Portal under "Deployments" in your resource group.
240+
4. Ensure that the `APP_ENV` variable is set to "**dev**".

0 commit comments

Comments
 (0)