From b25fc00b63d4e41d5dc05cf71526fbb063a0dbd9 Mon Sep 17 00:00:00 2001 From: Priyanka-Microsoft Date: Fri, 24 Apr 2026 09:59:29 +0530 Subject: [PATCH 1/5] local deployment setup --- azure.yaml | 1 - docs/LocalDevelopmentSetup.md | 25 ++++--------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/azure.yaml b/azure.yaml index eb12323bc..890a5fe54 100644 --- a/azure.yaml +++ b/azure.yaml @@ -6,7 +6,6 @@ metadata: requiredVersions: azd: '>= 1.18.0 != 1.23.9' - bicep: '>= 0.33.0' hooks: postprovision: diff --git a/docs/LocalDevelopmentSetup.md b/docs/LocalDevelopmentSetup.md index 3480589db..571d6d422 100644 --- a/docs/LocalDevelopmentSetup.md +++ b/docs/LocalDevelopmentSetup.md @@ -344,26 +344,16 @@ Install dependencies for all Python services: ### 6.1. Install Backend Dependencies ```bash -# Navigate to backend directory -cd code/backend - +# From repository root (pyproject.toml is located here) # Install dependencies using Poetry pip install --upgrade pip pip install poetry poetry self add poetry-plugin-export@latest -poetry export -o requirements.txt +poetry export -o requirements.txt --without-hashes pip install -r requirements.txt ``` -### 6.2. Install Batch Function Dependencies - -```bash -# Navigate to batch directory -cd batch - -# Install dependencies -pip install -r requirements.txt -``` +> **📋 Note**: The batch function shares the same dependencies managed by the root `pyproject.toml`. No separate installation is needed for the batch function. ### 6.3. Alternative: Use Setup Script @@ -592,14 +582,7 @@ Copy-Item ..\..\..\.azure\\.env . # Windows PowerShell > **⚠️ Important**: Replace `` with your actual azd environment name. You can find it by running `azd env list`. -### 10.2. Install Batch Function Dependencies - -```bash -# Make sure you're in code/backend/batch directory -pip install -r requirements.txt -``` - -### 10.3. Run the Batch Function +### 10.2. Run the Batch Function #### Option A: Using Azure Functions Core Tools (Command Line) From 49bce9e4e8d0433062adf37227d8b42b2aa39516 Mon Sep 17 00:00:00 2001 From: Priyanka-Microsoft Date: Fri, 24 Apr 2026 10:06:29 +0530 Subject: [PATCH 2/5] local deployment setup --- docs/LocalDevelopmentSetup.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/LocalDevelopmentSetup.md b/docs/LocalDevelopmentSetup.md index 571d6d422..318f42ffa 100644 --- a/docs/LocalDevelopmentSetup.md +++ b/docs/LocalDevelopmentSetup.md @@ -344,12 +344,14 @@ Install dependencies for all Python services: ### 6.1. Install Backend Dependencies ```bash -# From repository root (pyproject.toml is located here) +# Navigate to backend directory +cd code/backend + # Install dependencies using Poetry pip install --upgrade pip pip install poetry poetry self add poetry-plugin-export@latest -poetry export -o requirements.txt --without-hashes +poetry export -o requirements.txt pip install -r requirements.txt ``` From 195313659fc893f9b00b4dd724cee76b79524774 Mon Sep 17 00:00:00 2001 From: Priyanka-Microsoft Date: Fri, 24 Apr 2026 10:14:32 +0530 Subject: [PATCH 3/5] local deployment setup --- docs/LocalDevelopmentSetup.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/LocalDevelopmentSetup.md b/docs/LocalDevelopmentSetup.md index 318f42ffa..3480589db 100644 --- a/docs/LocalDevelopmentSetup.md +++ b/docs/LocalDevelopmentSetup.md @@ -355,7 +355,15 @@ poetry export -o requirements.txt pip install -r requirements.txt ``` -> **📋 Note**: The batch function shares the same dependencies managed by the root `pyproject.toml`. No separate installation is needed for the batch function. +### 6.2. Install Batch Function Dependencies + +```bash +# Navigate to batch directory +cd batch + +# Install dependencies +pip install -r requirements.txt +``` ### 6.3. Alternative: Use Setup Script @@ -584,7 +592,14 @@ Copy-Item ..\..\..\.azure\\.env . # Windows PowerShell > **⚠️ Important**: Replace `` with your actual azd environment name. You can find it by running `azd env list`. -### 10.2. Run the Batch Function +### 10.2. Install Batch Function Dependencies + +```bash +# Make sure you're in code/backend/batch directory +pip install -r requirements.txt +``` + +### 10.3. Run the Batch Function #### Option A: Using Azure Functions Core Tools (Command Line) From 331fe499ff8feb1dabf69bb42cf111f800bcfa9b Mon Sep 17 00:00:00 2001 From: Priyanka-Microsoft Date: Fri, 24 Apr 2026 10:55:36 +0530 Subject: [PATCH 4/5] updated waf instruction --- docs/LocalDevelopmentSetup.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/LocalDevelopmentSetup.md b/docs/LocalDevelopmentSetup.md index 3480589db..c72d6ccf8 100644 --- a/docs/LocalDevelopmentSetup.md +++ b/docs/LocalDevelopmentSetup.md @@ -300,6 +300,8 @@ You can also update the `principalId` value in `infra/main.bicep` with your Prin **Note**: RBAC permission changes can take 5-10 minutes to propagate. If you encounter "Forbidden" errors after assigning roles, wait a few minutes and try again. +> **⚠️ Important**: If your deployment uses WAF (Web Application Firewall) or VNET-secured resources with private endpoints, you must enable public network access on all Azure services (Storage, OpenAI, Cognitive Services, Key Vault, PostgreSQL, etc.) to allow local development traffic. + ### 4.4. Configure Authentication Type From c3c88d5f38ee202043198ac053f9599cfb16e257 Mon Sep 17 00:00:00 2001 From: Priyanka-Microsoft Date: Fri, 24 Apr 2026 10:57:03 +0530 Subject: [PATCH 5/5] updated local setup --- docs/LocalDevelopmentSetup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/LocalDevelopmentSetup.md b/docs/LocalDevelopmentSetup.md index c72d6ccf8..ca7647577 100644 --- a/docs/LocalDevelopmentSetup.md +++ b/docs/LocalDevelopmentSetup.md @@ -300,7 +300,7 @@ You can also update the `principalId` value in `infra/main.bicep` with your Prin **Note**: RBAC permission changes can take 5-10 minutes to propagate. If you encounter "Forbidden" errors after assigning roles, wait a few minutes and try again. -> **⚠️ Important**: If your deployment uses WAF (Web Application Firewall) or VNET-secured resources with private endpoints, you must enable public network access on all Azure services (Storage, OpenAI, Cognitive Services, Key Vault, PostgreSQL, etc.) to allow local development traffic. +> **⚠️ Important**: If your deployment uses WAF or VNET-secured resources with private endpoints, you must enable public network access on all Azure services (Storage, OpenAI, Cognitive Services, Key Vault, PostgreSQL, etc.) to allow local development traffic. ### 4.4. Configure Authentication Type