WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@Harsh-Microsoft
Copy link
Contributor

Purpose

This pull request introduces a new parameter to both the main and WAF infrastructure parameter files to support specifying the Azure AI Service location. This change helps ensure deployments can target the correct regional AI resources.

Infrastructure configuration updates:

  • Added the azureAiServiceLocation parameter to infra/main.parameters.json to allow configuration of the Azure AI Service region.
  • Added the azureAiServiceLocation parameter to infra/main.waf.parameters.json for consistent regional AI Service configuration in WAF deployments.

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the CI/CD infrastructure to support WAF (Well-Architected Framework) deployment testing alongside regular deployments. The changes introduce deployment type selection based on odd/even days or manual workflow dispatch, migrate from direct az deployment commands to Azure Developer CLI (azd), and add support for specifying Azure AI Service location as a separate parameter.

Key changes include:

  • Addition of azureAiServiceLocation parameter to infrastructure configuration files
  • Migration to azd CLI for deployments with automated environment management
  • Implementation of WAF deployment testing with temporary network access configuration
  • Alternating deployment types (WAF/Non-WAF) based on calendar day for automated testing

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
infra/main.parameters.json Added azureAiServiceLocation parameter to specify Azure AI Service region
infra/main.waf.parameters.json Added azureAiServiceLocation parameter for WAF deployments
.github/workflows/CAdeploy.yml Major refactoring: added deployment type selection, migrated to azd CLI, added WAF-specific network access handling, simplified cleanup using azd down

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

azd env set AZURE_ENV_AI_DEPLOYMENTS_LOCATION="${{ env.AZURE_LOCATION }}"
azd env set AZURE_ENV_MODEL_CAPACITY="${{ env.GPT_MIN_CAPACITY }}"
azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY="${{ env.TEXT_EMBEDDING_MIN_CAPACITY }}"
azd env set AZURE_ENV_IMAGETAG="${IMAGE_TAG}"
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

The parameter files reference AZURE_ENV_AI_SERVICE_LOCATION but this environment variable is never set. You should add a line to set this variable, likely to the same value as AZURE_LOCATION based on the parameter file configuration. Add: azd env set AZURE_ENV_AI_SERVICE_LOCATION="${{ env.AZURE_LOCATION }}"

Suggested change
azd env set AZURE_ENV_IMAGETAG="${IMAGE_TAG}"
azd env set AZURE_ENV_IMAGETAG="${IMAGE_TAG}"
azd env set AZURE_ENV_AI_SERVICE_LOCATION="${{ env.AZURE_LOCATION }}"

Copilot uses AI. Check for mistakes.
EMAIL_BODY=$(cat <<EOF
{
"body": "<p>Dear Team,</p><p>We would like to inform you that the Build-your-own-copilot-Solution-Accelerator(Client Advisior) Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
"body": "<p>Dear Team,</p><p>We would like to inform you that the Build-your-own-copilot-Solution-Accelerator(Client Advisior) - ${{ env.DEPLOYMENT_TYPE }} Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

Spelling error: "Advisior" should be "Advisor"

Suggested change
"body": "<p>Dear Team,</p><p>We would like to inform you that the Build-your-own-copilot-Solution-Accelerator(Client Advisior) - ${{ env.DEPLOYMENT_TYPE }} Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
"body": "<p>Dear Team,</p><p>We would like to inform you that the Build-your-own-copilot-Solution-Accelerator(Client Advisor) - ${{ env.DEPLOYMENT_TYPE }} Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}<br> ${OUTPUT}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"

Copilot uses AI. Check for mistakes.
Comment on lines +38 to +40
"azureAiServiceLocation": {
"value": "${AZURE_ENV_AI_SERVICE_LOCATION}"
},
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

The new parameter AZURE_ENV_AI_SERVICE_LOCATION is not documented in the CustomizingAzdParameters.md file. This parameter should be added to the parameters table with information about its purpose (location for AI Foundry deployment) and the allowed values based on the bicep constraints (australiaeast, eastus, eastus2, francecentral, japaneast, swedencentral, uksouth, westus, westus3).

Copilot uses AI. Check for mistakes.
@Prajwal-Microsoft Prajwal-Microsoft merged commit f428000 into main Dec 12, 2025
5 checks passed
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.

3 participants