Skip to content

Commit bf9045f

Browse files
Update DeploymentGuide.md for local development & debugging instructions
1 parent baa0b3b commit bf9045f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

documents/DeploymentGuide.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,13 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
195195
196196
- Follow steps in [Delete Resource Group](./DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
197197
198-
## For local Debugging
199-
200-
To configure your environment, navigate to the `src\api` 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**".
198+
## Environment configuration for local development & debugging
199+
> 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**.
200+
To configure your environment:
201+
- Navigate to the `src\api` folder.
202+
- Create a `.env` file based on the `.env.sample` file.
203+
- Fill in the `.env` file using deployment output or the Azure Portal under "Deployments" in your resource group.
204+
- Ensure that `APP_ENV` is set to "**dev**".
201205

202206
## Sample Questions
203207

0 commit comments

Comments
 (0)