Skip to content

chore: down merging the changes from main#471

Open
Abdul-Microsoft wants to merge 11 commits into
microsoft:devfrom
Abdul-Microsoft:dev
Open

chore: down merging the changes from main#471
Abdul-Microsoft wants to merge 11 commits into
microsoft:devfrom
Abdul-Microsoft:dev

Conversation

@Abdul-Microsoft

@Abdul-Microsoft Abdul-Microsoft commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Purpose

  • This pull request introduces a major change to the deployment workflow by automating the build and deployment of backend and frontend container images using a provisioned Azure Container Registry (ACR). It also updates the default GPT model to gpt-5.1 and refines several deployment parameters and documentation to reflect these changes. The most important changes are grouped below:

Container Image Build and Deployment Automation

  • Added scripts (build_and_push_images.sh and build_and_push_images.ps1) to build backend and frontend images remotely in the deployment's ACR and update the container apps to use these images, eliminating the need for local Docker.
  • Updated infra/main.bicep to provision a dedicated Azure Container Registry per deployment, configure container apps to use a placeholder image initially, and output relevant ACR and container app information for use by the post-provision scripts. [1] [2] [3] [4] [5]
  • Removed parameters and references to a static container registry endpoint in parameter files, as each deployment now provisions its own registry. [1] [2]

Deployment and Documentation Updates

  • Updated the deployment guide (docs/DeploymentGuide.md) to include a new step for building and pushing container images, adjusted the expected deployment duration, and clarified the post-deployment workflow. [1] [2]
  • Improved parameter documentation in docs/CustomizingAzdParameters.md to reflect the new image build process and updated descriptions for image and model parameters.

Model Version and Parameter Updates

  • Changed the default GPT model from gpt-4o to gpt-5.1 and updated the default version to 2025-11-13 in all relevant Bicep files and documentation. [1] [2] [3] [4] [5]

Minor and Maintenance Changes

  • Corrected CODEOWNERS usernames to reflect current team assignments.

These changes together streamline the deployment pipeline, ensure each deployment uses its own secure and isolated container registry, and update the project to use the latest available GPT model.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the deployment flow by introducing per-deployment Azure Container Registry (ACR) provisioning and post-provision automation to build/push backend and frontend container images remotely via az acr build, while also updating default GPT model settings and refreshing related documentation/parameters.

Changes:

  • Added post-provision scripts to build/push backend+frontend images in the deployment’s ACR and update Container Apps to use them.
  • Updated infra templates/parameters to provision a dedicated ACR, use placeholder images initially, and expose outputs consumed by the scripts; removed the static registry endpoint parameter.
  • Updated deployment docs and parameter docs; refreshed default GPT model name/version; updated CODEOWNERS.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
scripts/build_and_push_images.sh Adds Bash automation to ACR-build images and update Container Apps.
scripts/build_and_push_images.ps1 Adds PowerShell automation to ACR-build images and update Container Apps.
infra/main.waf.parameters.json Removes static container registry endpoint parameter.
infra/main.parameters.json Removes static container registry endpoint parameter.
infra/main.json Updates generated ARM template to include per-deployment ACR, placeholder images, and new outputs.
infra/main.bicep Provisions dedicated ACR, switches Container Apps to placeholder images, and adds outputs for the post-provision scripts; updates GPT defaults.
infra/main_custom.bicep Updates GPT defaults (but does not yet align with the new ACR/image-build workflow).
docs/DeploymentGuide.md Documents the new image build/push step and updates deployment flow/step numbering.
docs/CustomizingAzdParameters.md Updates parameter docs for new defaults and image-tag meaning; removes old registry endpoint parameter.
.github/CODEOWNERS Updates code owner usernames.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/build_and_push_images.ps1
Comment thread docs/DeploymentGuide.md Outdated
Comment thread infra/main_custom.bicep
Comment thread scripts/build_and_push_images.sh
Copilot AI review requested due to automatic review settings July 15, 2026 16:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.

Comment on lines +4 to +15
# ---------------------------------------------------------------------------
# Post-provision hook
#
# Builds the backend and frontend container images remotely inside the
# deployment's Azure Container Registry (ACR) using 'az acr build' (no local
# Docker required) and then updates the container apps to run the freshly
# built images.
#
# The required values are provided by azd as environment variables (they are
# outputs of infra/main.bicep). When the script is run outside of an azd hook
# the values are read back with 'azd env get-value'.
# ---------------------------------------------------------------------------
Comment on lines +4 to +15
# ---------------------------------------------------------------------------
# Post-provision hook (PowerShell)
#
# Builds the backend and frontend container images remotely inside the
# deployment's Azure Container Registry (ACR) using 'az acr build' (no local
# Docker required) and then updates the container apps to run the freshly
# built images.
#
# The required values are provided by azd as environment variables (they are
# outputs of infra/main.bicep). When the script is run outside of an azd hook
# the values are read back with 'azd env get-value'.
# ---------------------------------------------------------------------------
Comment thread docs/DeploymentGuide.md
4. **Resource group** selection (create new or use existing)

**Expected Duration:** 6-9 minutes for default configuration
**Expected Duration:** 9-14 minutes for default configuration (includes remotely building and pushing the container images)
Comment thread docs/DeploymentGuide.md
Comment on lines +303 to +307
- For PowerShell (Windows):

```
.\scripts\build_and_push_images.ps1
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants