From cfaff99a5348469df7fe33dd17edd91cc8c7ed93 Mon Sep 17 00:00:00 2001 From: Atulku-Microsoft Date: Thu, 7 Aug 2025 15:36:47 +0530 Subject: [PATCH 1/3] Update DeploymentGuide.md --- docs/DeploymentGuide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/DeploymentGuide.md b/docs/DeploymentGuide.md index 7d54bbc54..186dc2fdc 100644 --- a/docs/DeploymentGuide.md +++ b/docs/DeploymentGuide.md @@ -228,3 +228,7 @@ This will rebuild the source code, package it into a container, and push it to t 3. **Deleting Resources After a Failed Deployment** - Follow steps in [Delete Resource Group](DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources. + +## For local Debugging + +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**". From 0bf7d763e6f77bd8e16fc6883307d2144f3cfd10 Mon Sep 17 00:00:00 2001 From: Prajwal-Microsoft Date: Mon, 11 Aug 2025 16:20:45 +0530 Subject: [PATCH 2/3] Update DeploymentGuide.md for local development & debugging instructions --- docs/DeploymentGuide.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/DeploymentGuide.md b/docs/DeploymentGuide.md index 186dc2fdc..ab414e05c 100644 --- a/docs/DeploymentGuide.md +++ b/docs/DeploymentGuide.md @@ -229,6 +229,12 @@ This will rebuild the source code, package it into a container, and push it to t - Follow steps in [Delete Resource Group](DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources. -## For local Debugging +## Environment configuration for local development & debugging +> 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**. -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**". +To configure your environment, follow these steps: + + 1. Navigate to the `src\App` folder. + 2. Create a `.env` file based on the `.env.sample` file. + 3. Fill in the `.env` file using the deployment output or by retrieving values from the Azure Portal under "Deployments" in your resource group. + 4. Ensure that the `APP_ENV` variable is set to "**dev**". From 53c519a311131d521d183ddb43302b96e36bcb9e Mon Sep 17 00:00:00 2001 From: Prajwal-Microsoft Date: Mon, 11 Aug 2025 21:28:13 +0530 Subject: [PATCH 3/3] Update DeploymentGuide.md for local development & debugging instructions --- docs/DeploymentGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DeploymentGuide.md b/docs/DeploymentGuide.md index ab414e05c..59a6547cf 100644 --- a/docs/DeploymentGuide.md +++ b/docs/DeploymentGuide.md @@ -230,7 +230,7 @@ This will rebuild the source code, package it into a container, and push it to t - Follow steps in [Delete Resource Group](DeleteResourceGroup.md) if your deployment fails and/or you need to clean up the resources. ## Environment configuration for local development & debugging -> 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**. +> Set APP_ENV in your .env file to control Azure authentication. Set the environment variable to dev to use Azure CLI credentials, or to prod to use Managed Identity for production. **Ensure you're logged in via az login when using dev in local**. To configure your environment, follow these steps: