Skip to content

Commit 0f730cb

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/DeploymentGuide.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,14 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
193193
2. **Deleting Resources After a Failed Deployment**
194194

195195
- Follow steps in [Delete Resource Group](./DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources.
196-
## For local Debugging
197196

198-
To configure your environment, navigate to the `src` 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**".
197+
## Environment configuration for local development & debugging
198+
> 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**.
199+
To configure your environment, follow these steps:
200+
1. Navigate to the `src` folder.
201+
2. Create a `.env` file based on the `.env.sample` file.
202+
3. Fill in the `.env` file using the deployment output or by checking the Azure Portal under "Deployments" in your resource group.
203+
4. Ensure that `APP_ENV` is set to "**dev**" in your `.env` file.
199204
200205
## Next Steps
201206
Now that you've completed your deployment, you can start using the solution.

0 commit comments

Comments
 (0)