Skip to content

Conversation

@Vamshi-Microsoft
Copy link
Contributor

Purpose

This pull request introduces several updates to enhance AI model deployment capabilities, improve configuration flexibility, and update authentication mechanisms in deployment scripts. The changes primarily focus on adding support for AI model deployments, updating environment variables, and replacing the credential type in Python scripts.

AI Deployment Enhancements:

  • Added support for specifying AI model deployments through a new aiModelDeployments parameter in infra/deploy_foundry_role_assignment.bicep and infra/main.bicep. This includes defining deployment properties such as model name, format, and SKU. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-801321770c4260aea129a24ab905704034ec515f2811ee5d93a6fc7c2d29c626R242), [[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-14e63a7cd6462bdb2d4ca3a194ccf9b80e4a49512ede9eddd720dd0316d72809R6), [[3]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-14e63a7cd6462bdb2d4ca3a194ccf9b80e4a49512ede9eddd720dd0316d72809R17-R34), [[4]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-0504f5a35afecd5c8c2a1dc8cac5bb558cc1456c557d8edcb7f9bac1c0dc36e4R1465-R1494), [[5]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-0504f5a35afecd5c8c2a1dc8cac5bb558cc1456c557d8edcb7f9bac1c0dc36e4R2421-R2450))

Configuration Updates:

  • Introduced new parameters, including azureAiAgentApiVersion and APP_ENV, to support additional environment configurations and API versions in infra/deploy_app_service.bicep and infra/main.bicep. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-37c8b5694d17291d641a19fb8a562e30642066b4bf8b8657f2636f50567cf4ebR34), [[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-37c8b5694d17291d641a19fb8a562e30642066b4bf8b8657f2636f50567cf4ebL270-R275), [[3]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-37c8b5694d17291d641a19fb8a562e30642066b4bf8b8657f2636f50567cf4ebR301-R304), [[4]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-7ef659fc9cf6968e718894d300490b14ea7a52091e7d4bcffae3a5029ac721d4R66-R68), [[5]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-0504f5a35afecd5c8c2a1dc8cac5bb558cc1456c557d8edcb7f9bac1c0dc36e4L2228-R2294), [[6]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-0504f5a35afecd5c8c2a1dc8cac5bb558cc1456c557d8edcb7f9bac1c0dc36e4R2331-R2334))
  • Expanded allowed values for AI deployment locations to include multiple Azure regions in infra/main.bicep and infra/main.json. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-7ef659fc9cf6968e718894d300490b14ea7a52091e7d4bcffae3a5029ac721d4R17-R36), [[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-0504f5a35afecd5c8c2a1dc8cac5bb558cc1456c557d8edcb7f9bac1c0dc36e4R37-R56))

Authentication Mechanism Updates:

  • Replaced DefaultAzureCredential with AzureCliCredential in Python scripts for accessing Azure resources, improving compatibility with local development environments. ([[1]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-114b4ad9068b197a6e38361b5e9f53963126cfe2452a59ec1b2e7235444f456aL1-R1), [[2]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-114b4ad9068b197a6e38361b5e9f53963126cfe2452a59ec1b2e7235444f456aL30-R34), [[3]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-114b4ad9068b197a6e38361b5e9f53963126cfe2452a59ec1b2e7235444f456aL46-R46), [[4]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-fbe3aac5bf15aad7b48d6fbf6058d433d343bdf35344cbcd2bfc1830048d248cL10-R10), [[5]](https://github.com/microsoft/document-generation-solution-accelerator/pull/527/files#diff-fbe3aac5bf15aad7b48d6fbf6058d433d343bdf35344cbcd2bfc1830048d248cL25-R29))

These changes collectively enhance the deployment pipeline's flexibility, scalability, and ease of use, particularly for AI-related resources.

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

  • I have built and tested the code locally and in a deployed app
  • For frontend changes, I have pulled the latest code from main, built the frontend, and committed all static files.
  • This is a change for all users of this app. No code or asset is specific to my use case or my organization.

Other Information

Prasanjeet-Microsoft and others added 25 commits July 23, 2025 13:14
fix: Model Deployment When Reusing Existing Foundry Service/Projects
feat: Agent and thread management
feat: replacing DefaultAzureCredential with ManagedIdentityCredential
fix: Added Validation for Supported regions for AI deployment location
feat: Added unit tests for Azure credential utilities
refactor: Changed Async and Sync Azure credential retrieval
@Prajwal-Microsoft Prajwal-Microsoft merged commit c9ad408 into main Jul 31, 2025
11 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.6.1 🎉

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.

7 participants