From baa0b3baf9c0adce62fadc466dd664c61a7dade9 Mon Sep 17 00:00:00 2001 From: Atulku-Microsoft Date: Thu, 7 Aug 2025 11:18:21 +0530 Subject: [PATCH 1/3] Update DeploymentGuide.md add the section: "For local Debugging" --- documents/DeploymentGuide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/documents/DeploymentGuide.md b/documents/DeploymentGuide.md index 0c1b45350..07c3364bb 100644 --- a/documents/DeploymentGuide.md +++ b/documents/DeploymentGuide.md @@ -194,6 +194,10 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain 2. **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\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**". ## Sample Questions From bf9045fac6d5188f9715950b0cc327b660138d4f Mon Sep 17 00:00:00 2001 From: Prajwal-Microsoft Date: Mon, 11 Aug 2025 19:47:17 +0530 Subject: [PATCH 2/3] Update DeploymentGuide.md for local development & debugging instructions --- documents/DeploymentGuide.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/documents/DeploymentGuide.md b/documents/DeploymentGuide.md index 07c3364bb..906a48d64 100644 --- a/documents/DeploymentGuide.md +++ b/documents/DeploymentGuide.md @@ -195,9 +195,13 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain - 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\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**". +## 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\api` folder. +- Create a `.env` file based on the `.env.sample` file. +- Fill in the `.env` file using deployment output or the Azure Portal under "Deployments" in your resource group. +- Ensure that `APP_ENV` is set to "**dev**". ## Sample Questions From 58f2f279f1ac767605bc31d831052bd66e7b4a06 Mon Sep 17 00:00:00 2001 From: Prajwal-Microsoft Date: Mon, 11 Aug 2025 21:29:52 +0530 Subject: [PATCH 3/3] Update DeploymentGuide.md for local development & debugging instructions --- documents/DeploymentGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/DeploymentGuide.md b/documents/DeploymentGuide.md index 906a48d64..66a6d08d4 100644 --- a/documents/DeploymentGuide.md +++ b/documents/DeploymentGuide.md @@ -196,7 +196,7 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain - 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: - Navigate to the `src\api` folder. - Create a `.env` file based on the `.env.sample` file.