From 315ab214ba8abdc634cba5dac0ccc651b786083d Mon Sep 17 00:00:00 2001 From: KanchanN-Microsoft Date: Tue, 21 Jul 2026 11:14:09 +0530 Subject: [PATCH 1/5] Enhance preprovision and postdeploy hooks and instructions for building and pushing container images. --- azure.yaml | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/azure.yaml b/azure.yaml index 26e768f..6184622 100644 --- a/azure.yaml +++ b/azure.yaml @@ -9,6 +9,16 @@ requiredVersions: hooks: preprovision: + posix: + run: | + echo "" + echo " ---------------------------------------------------------------------------------------------------" + echo " Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs." + echo " https://github.com/microsoft/Container-Migration-Solution-Accelerator/issues" + echo " ---------------------------------------------------------------------------------------------------" + echo "" + shell: sh + interactive: true windows: run: | Write-Host "" @@ -23,8 +33,17 @@ hooks: posix: shell: sh run: | - echo "==> Building and pushing container images to the dedicated ACR (remote build)" - bash ./scripts/deploy_container_images.sh + echo "" + echo "========================================" + echo " Provisioning Complete " + echo "========================================" + echo "" + echo "Run the following script, in order:" + echo "" + echo "Building and pushing container images to the dedicated ACR (remote build)" + echo "" + echo " bash ./scripts/deploy_container_images.sh" + echo "" echo "-----" echo "🧭 Web App Details:" echo "✅ Name: $CONTAINER_WEB_APP_NAME" @@ -39,9 +58,15 @@ hooks: interactive: true windows: shell: pwsh - run: | - Write-Host "==> Building and pushing container images to the dedicated ACR (remote build)" - ./scripts/deploy_container_images.ps1 + run: | + Write-Host "`n========================================" -ForegroundColor Green + Write-Host " Provisioning Complete " -ForegroundColor Green + Write-Host "========================================`n" -ForegroundColor Green + + Write-Host "Run the following script, in order:" -ForegroundColor Yellow + Write-Host " Building and pushing container images to the dedicated ACR (remote build)" -ForegroundColor Yellow + Write-Host " ./scripts/deploy_container_images.ps1" -ForegroundColor Cyan + Write-Host "-----" Write-Host "🧭 Web App Details:" Write-Host "✅ Name: $env:CONTAINER_WEB_APP_NAME" From 0e2abfd050d1999da8753081b3c454848b713980 Mon Sep 17 00:00:00 2001 From: KanchanN-Microsoft Date: Wed, 22 Jul 2026 15:31:17 +0530 Subject: [PATCH 2/5] corrected script file name --- azure.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure.yaml b/azure.yaml index f7e321c..8bc908d 100644 --- a/azure.yaml +++ b/azure.yaml @@ -52,7 +52,7 @@ hooks: echo "" echo "Building and pushing container images to the dedicated ACR (remote build)" echo "" - echo " bash ./scripts/deploy_container_images.sh" + echo " bash ./scripts/acr_build_push.sh" echo "" echo "-----" echo "🧭 Web App Details:" @@ -75,7 +75,7 @@ hooks: Write-Host "Run the following script, in order:" -ForegroundColor Yellow Write-Host " Building and pushing container images to the dedicated ACR (remote build)" -ForegroundColor Yellow - Write-Host " ./scripts/deploy_container_images.ps1" -ForegroundColor Cyan + Write-Host " ./scripts/acr_build_push.ps1" -ForegroundColor Cyan Write-Host "-----" Write-Host "🧭 Web App Details:" From dc18b146e66900f4ace811c1cb8b730fa662ea18 Mon Sep 17 00:00:00 2001 From: KanchanN-Microsoft Date: Wed, 22 Jul 2026 15:46:25 +0530 Subject: [PATCH 3/5] resolved co-pilot comments --- azure.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/azure.yaml b/azure.yaml index 8bc908d..3de1234 100644 --- a/azure.yaml +++ b/azure.yaml @@ -45,12 +45,10 @@ hooks: run: | echo "" echo "========================================" - echo " Provisioning Complete " + echo " Deployment Complete " echo "========================================" echo "" - echo "Run the following script, in order:" - echo "" - echo "Building and pushing container images to the dedicated ACR (remote build)" + echo "Next step: build and push container images to the dedicated ACR (remote build):" echo "" echo " bash ./scripts/acr_build_push.sh" echo "" @@ -70,11 +68,10 @@ hooks: shell: pwsh run: | Write-Host "`n========================================" -ForegroundColor Green - Write-Host " Provisioning Complete " -ForegroundColor Green + Write-Host " Deployment Complete " -ForegroundColor Green Write-Host "========================================`n" -ForegroundColor Green - Write-Host "Run the following script, in order:" -ForegroundColor Yellow - Write-Host " Building and pushing container images to the dedicated ACR (remote build)" -ForegroundColor Yellow + Write-Host "Next step: build and push container images to the dedicated ACR (remote build):" -ForegroundColor Yellow Write-Host " ./scripts/acr_build_push.ps1" -ForegroundColor Cyan Write-Host "-----" From e9a9831eaef4b428223893a34449ab5a8041c49c Mon Sep 17 00:00:00 2001 From: KanchanN-Microsoft Date: Wed, 22 Jul 2026 15:51:34 +0530 Subject: [PATCH 4/5] Remove posix preprovision hook from azure.yaml --- azure.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/azure.yaml b/azure.yaml index 3de1234..1abd776 100644 --- a/azure.yaml +++ b/azure.yaml @@ -9,16 +9,6 @@ requiredVersions: hooks: preprovision: - posix: - run: | - echo "" - echo " ---------------------------------------------------------------------------------------------------" - echo " Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs." - echo " https://github.com/microsoft/Container-Migration-Solution-Accelerator/issues" - echo " ---------------------------------------------------------------------------------------------------" - echo "" - shell: sh - interactive: true windows: run: | Write-Host "" From c82168ec2c3e632fe411822bc55bc824876f5625 Mon Sep 17 00:00:00 2001 From: KanchanN-Microsoft Date: Wed, 22 Jul 2026 15:57:45 +0530 Subject: [PATCH 5/5] removed trailing space --- azure.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure.yaml b/azure.yaml index 1abd776..c6db4ff 100644 --- a/azure.yaml +++ b/azure.yaml @@ -56,7 +56,7 @@ hooks: interactive: true windows: shell: pwsh - run: | + run: | Write-Host "`n========================================" -ForegroundColor Green Write-Host " Deployment Complete " -ForegroundColor Green Write-Host "========================================`n" -ForegroundColor Green