feat: Foundry SDK changes, FDP changes#461
Merged
Roopan-Microsoft merged 13 commits intodevfrom Jun 18, 2025
Merged
Conversation
…n-solution-accelerator into PSL-17061-AIFoundry-dev
…n-solution-accelerator into PSL-17061-AIFoundry-dev
…t/document-generation-solution-accelerator into PSL-17061-AIFoundry-dev
Collaborator
Author
|
@microsoft-github-policy-service agree company="Persistent" |
3878c41 to
4ffbdd6
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for Azure AI Foundry alongside Azure OpenAI, updates SDK dependencies and API versions, and extends infrastructure templates to configure Foundry resources.
- Bump Azure Identity/OpenAI SDK versions and include Foundry-specific packages
- Introduce
_AzureAISettings,init_ai_foundry_client, anduse_ai_foundry_sdktoggle - Update Bicep modules and
.env.sample/documentation for Azure AI Foundry configuration
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/requirements.txt | Updated SDK versions and added azure-ai-projects/azure-ai-inference packages |
| src/backend/settings.py | Added _AzureAISettings, use_ai_foundry_sdk flag and bumped OpenAI preview version |
| src/app.py | Implemented init_ai_foundry_client, toggled Foundry vs OpenAI usage, JSON parsing for titles |
| src/.env.sample | Added AZURE_AI_AGENT_* variables and USE_AI_FOUNDRY_SDK |
| scripts/SAMPLE_DATA.md | Adjusted env variable instructions |
| infra/scripts/index_scripts/02_process_data.py | Switched embeddings to Azure AD auth; removed API key usage |
| infra/main.bicepparam | Updated default OpenAI API version |
| infra/main.bicep | Cleaned up legacy comments, added Foundry resource modules |
| infra/deploy_app_service.bicep | Exposed AI Foundry env vars, removed OpenAI key param |
| infra/deploy_ai_foundry.bicep | Defined AI Foundry account/project resources and role assignments |
| infra/abbreviations.json | Renamed aiHub* keys to aiFoundry* |
| docs/README_LOCAL.md | Documented new Azure AI agent environment settings |
Comments suppressed due to low confidence (2)
infra/deploy_app_service.bicep:39
- [nitpick] The parameter
azureOpenaiResourcemixes casing in the acronym. Consider renaming toazureOpenAIResourcefor clearer consistency with other camelCase parameters.
param azureOpenaiResource string = ''
infra/scripts/index_scripts/02_process_data.py:42
- The variable
credentialis not defined in this scope. You should instantiate a credential (e.g.,credential = DefaultAzureCredential()) before using it inget_bearer_token_provider.
)
Roopan-Microsoft
approved these changes
Jun 18, 2025
Contributor
|
🎉 This PR is included in version 1.4.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Documentation Updates:
AZURE_OPENAI_KEYfrom required environment variables and added new settings for "AI Foundry" configurations, includingAZURE_AI_AGENT_API_VERSION,AZURE_AI_AGENT_ENDPOINT, andAZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME. [1] [2] [3]USE_AI_FOUNDRY_SDKas an optional flag to enable the AI Foundry SDK.Infrastructure Transition to AI Foundry:
infra/abbreviations.jsonto replace "AI Hub" abbreviations (aih-,aihp-) with "AI Foundry" abbreviations (aif-,aifp-).infra/deploy_ai_foundry.bicep, including new definitions foraiFoundryandaiFoundryProject. Removed legacy resources such asstorage,aiHub, andaiServices. [1] [2] [3] [4]App Service Deployment Updates:
AzureOpenAIKeyparameter and related environment variable settings. Added parameters and environment variables for "AI Foundry," includingaiFoundryName,aiFoundryProjectName, andaiFoundryProjectEndpoint. [1] [2] [3]USE_AI_FOUNDRY_SDKenvironment variable to enable the AI Foundry SDK in the app service. [1] [2]Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information