From 5e09c5c32e6d722bc92a749d9f3fcd50664fc65f Mon Sep 17 00:00:00 2001 From: chaudhariniraj Date: Thu, 9 Jul 2026 14:53:07 +0530 Subject: [PATCH] Update deployment script and azure.yaml --- azure.yaml | 11 ++--------- docs/DeploymentGuide.md | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/azure.yaml b/azure.yaml index 3f34cb0e..5cf64bd6 100644 --- a/azure.yaml +++ b/azure.yaml @@ -11,12 +11,5 @@ metadata: name: content-processinge@1.0 hooks: - postprovision: - posix: - shell: sh - run: sed -i 's/\r$//' ./infra/scripts/post_deployment.sh; bash ./infra/scripts/post_deployment.sh - interactive: true - windows: - shell: pwsh - run: ./infra/scripts/post_deployment.ps1 - interactive: true + postprovision: {} + diff --git a/docs/DeploymentGuide.md b/docs/DeploymentGuide.md index 6c80ac54..430e386a 100644 --- a/docs/DeploymentGuide.md +++ b/docs/DeploymentGuide.md @@ -301,9 +301,9 @@ azd up ## Step 5: Post-Deployment Configuration -### 5.1 Run Post Deployment Script +### 5.1 Run Post Deployment Scripts -1. You can run the ACR build and push script from the project root. Use the appropriate command for your shell: +1. Run the ACR build and push script from the project root. Use the appropriate command for your shell: - For Bash (Linux/macOS/WSL): @@ -317,6 +317,20 @@ azd up infra\scripts\acr_build_push.ps1 ``` +2. After the ACR build and push completes, run the post-deployment script: + + - For Bash (Linux/macOS/WSL): + + ```bash + bash infra/scripts/post_deployment.sh + ``` + + - For PowerShell (Windows): + + ```powershell + .\infra\scripts\post_deployment.ps1 + ``` + ### 5.2 Schema Registration (Automatic) > Want to customize the schemas for your own documents? [Learn more about adding your own schemas here.](./CustomizeSchemaData.md)