Skip to content

Conversation

@Harsh-Microsoft
Copy link
Contributor

@Harsh-Microsoft Harsh-Microsoft commented Oct 17, 2025

Purpose

This pull request introduces several infrastructure improvements and refactorings to the Azure deployment configuration for the Content Processing Solution Accelerator. The most significant changes include the addition of purge protection as a configurable parameter, refactoring of the AI services module, and updates to output and environment variable handling. These changes improve the flexibility, reliability, and maintainability of the deployment process.

Parameter and Output Improvements

  • Added a new enablePurgeProtection parameter to both infra/main.bicep and infra/main.json, allowing users to optionally enable purge protection for applicable resources. The parameter is now passed through to the app configuration module, ensuring consistent behavior. [1] [2] [3] [4]
  • Changed the output variable name for the resource group from resourceGroupName to AZURE_RESOURCE_GROUP in both Bicep and JSON templates for clarity and consistency. [1] [2]

Module Refactoring

  • Refactored the AI services module reference from modules/account/main.bicep to modules/account/aiservice.bicep and explicitly set the deployment scope to resourceGroup() to improve modularity and deployment control. [1] [2]

Environment Variable and Value Handling

  • Updated the assignment of the APP_AI_PROJECT_ENDPOINT environment variable to safely handle missing values using optional chaining and fallback defaults in both Bicep and JSON templates. [1] [2]

Deployment Script and Hook Updates

  • Changed the deployment hook in azure.yaml from postdeploy to postprovision and refactored the shell commands to invoke dedicated post-deployment scripts for both POSIX and Windows environments, improving maintainability and cross-platform compatibility.

These updates collectively enhance the deployment process by making it more configurable, robust, and maintainable.

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

…ust dependency scope in Cognitive Services module
@Harsh-Microsoft Harsh-Microsoft changed the title refactor: updated the output variable for the resource group name from resourceGroupName to AZURE_RESOURCE_GROUP refactor: refactoring infra for template validation Oct 17, 2025
@Roopan-Microsoft Roopan-Microsoft merged commit 690b765 into dev Oct 23, 2025
7 checks passed
@github-actions
Copy link

🎉 This PR is included in version 1.10.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants