Breaking change: Update Foundry agent dependencies - #20051
Breaking change: Update Foundry agent dependencies#20051Jose Perez Rodriguez (joperezr) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20051Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20051" |
Tests selectorSelects the full PR test matrix + all PR-gated jobs (ALL) — a rule matching 'Directory.Packages.props' selects ALL Advisory workflow impact (4)
Selection computed for commit |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Required direct and transitive package versions remain unavailable from approved feeds, preventing clean restores.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 3
New issues introduced by this change (3)
| Severity | Finding |
|---|---|
Directory.Packages.props — Central package version is not restorable |
|
playground/FoundryAgents/DotNetHostedAgent/DotNetHostedAgent.csproj — Hosted-agent dependency graph is unavailable |
|
tests/Aspire.Deployment.EndToEnd.Tests/FoundryHostedAgentDeploymentTests.cs — Deployment test project cannot restore |
What changed in this PR
Updates Foundry dependencies as an independently rollbackable breaking change.
Changes:
- Upgrades Azure AI Projects and Azure Core.
- Aligns hosted-agent playground and deployment-test dependencies.
| File | Description |
|---|---|
Directory.Packages.props |
Updates central Foundry prerequisites. |
playground/FoundryAgents/DotNetHostedAgent/DotNetHostedAgent.csproj |
Updates hosted-agent packages. |
tests/Aspire.Deployment.EndToEnd.Tests/FoundryHostedAgentDeploymentTests.cs |
Aligns the generated deployment-test project. |
| <PackageVersion Include="Azure.AI.Inference" Version="1.0.0-beta.5" /> | ||
| <PackageVersion Include="Azure.AI.OpenAI" Version="2.9.0-beta.1" /> | ||
| <PackageVersion Include="Azure.AI.Projects" Version="2.1.0-beta.1" /> | ||
| <PackageVersion Include="Azure.AI.Projects" Version="3.0.0-beta.2" /> |
| <PackageReference Include="Microsoft.Extensions.AI" VersionOverride="10.7.0" /> | ||
| <PackageReference Include="ModelContextProtocol" VersionOverride="1.1.0" /> | ||
| <PackageReference Include="Azure.Core" VersionOverride="1.59.0" /> | ||
| <PackageReference Include="Microsoft.Agents.AI.Foundry.Hosting" VersionOverride="1.20.0-preview.260831.1" /> |
| <PackageReference Include="Microsoft.Extensions.AI" Version="10.7.0" /> | ||
| <PackageReference Include="ModelContextProtocol" Version="1.1.0" /> | ||
| <PackageReference Include="Azure.Core" Version="1.59.0" /> | ||
| <PackageReference Include="Microsoft.Agents.AI.Foundry.Hosting" Version="1.20.0-preview.260831.1" /> |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |

Description
Updates the Microsoft Foundry dependency set independently from the bulk dependency refresh so the customer-facing Azure AI Projects major-version change can be reviewed and rolled back on its own.
Azure.AI.Projectsfrom2.1.0-beta.1(with a2.1.0-beta.3playground override) to3.0.0-beta.2.Microsoft.Agents.AI.Foundry.Hosting1.12.0-preview.260629.1to1.20.0-preview.260831.1.FoundryHostedAgentDeploymentTestson the same explicit package set.No Aspire source migration is required. Aspire does not call the Projects 3 APIs whose signatures changed, does not use the renamed Agent optimization types, and its hosted-agent sample already uses
ResponseContext.PlatformContext,HostedSessionContext(UserId), and Responses protocol2.0.0.Breaking changes
Affected users: Applications that reference
Aspire.Hosting.Foundryand also compile directly against Azure AI Projects APIs changed in 3.0, plus developers who copy or extend the hosted-agent playground with APIs removed by Foundry Hosting 1.20.Old behavior:
Aspire.Hosting.Foundryrestored Azure AI Projects 2.1.AIProjectConnectionsOperations.GetConnection[Async]returnedAIProjectConnectiondirectly.beforeparameter, and routine-run listing usedname.OptimizationJobandOptimizationOptions.New behavior:
Aspire.Hosting.Foundryrestores Azure AI Projects 3.0.GetConnectionreturnsClientResult<AIProjectConnection>andGetConnectionAsyncreturnsTask<ClientResult<AIProjectConnection>>.before; routine-run listing usesroutineName.Agent, for exampleAgentOptimizationJobandAgentOptimizationOptions.2.0.HostedSessionContext.ChatIdand thePerChat/PerUserAndChatmemory scopes are removed.Migration:
Remove the
beforeargument from routine-list calls, rename the routine-runnameargument toroutineName, and use the newAgentOptimization*type names. Hosted-agent customizations should target Responses protocol2.0, partition byHostedSessionContext.UserId, and use thePerUsermemory scope instead of chat-scoped values.Rollback: Revert this PR. That restores
Azure.AI.Projects2.1 andMicrosoft.Agents.AI.Foundry.Hosting1.12 without reverting unrelated dependency updates.Coordination and validation
Azure.AI.Projects3.0.0-beta.2(nearest:2.1.0-beta.3)Azure.AI.AgentServer.Core1.0.0-beta.28(nearest:1.0.0-beta.26)Azure.AI.AgentServer.Responses1.0.0-beta.8(nearest:1.0.0-beta.6)Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?