From b720c3c8914cac977dc7d3266d23c400bd4db84f Mon Sep 17 00:00:00 2001 From: "aspire-repo-bot[bot]" <268009190+aspire-repo-bot[bot]@users.noreply.github.com> Date: Sat, 30 May 2026 02:24:54 +0000 Subject: [PATCH 1/2] docs: clarify Foundry project connection injection in publish mode for hosted agents Documents that in publish mode, Aspire automatically injects Foundry project connection environment variables into the deployment container (the actual workload). Previously the docs only mentioned container registry publishing; this adds the connection injection behavior fixed by microsoft/aspire#17704. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx b/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx index 371340207..25da20a2c 100644 --- a/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx +++ b/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx @@ -460,7 +460,7 @@ In run mode, Aspire also adds dashboard URLs for `/responses`, `/liveness`, and For .NET hosted agents, add your Service Defaults project reference and call `builder.AddServiceDefaults()` in the hosted-agent app so logs, metrics, traces, HTTP instrumentation, and OTLP export flow into the Aspire dashboard. Then enable telemetry on the Foundry Responses chat client that backs the Microsoft Agent Framework (MAF) agent. -In publish mode, Aspire creates an `AzureHostedAgentResource` and publishes the container to the project-associated registry. +In publish mode, Aspire creates an `AzureHostedAgentResource` and publishes the container to the project-associated registry. Aspire also automatically injects the Foundry project connection environment variables — including `ConnectionStrings__` and the project endpoint — into the deployment container so the hosted agent has access to the Foundry project at runtime. If you omit the `project` argument, Aspire uses an existing Foundry project from the app model or creates one automatically. From 3511f284506c0d028b3fbdadab4596009861e2a0 Mon Sep 17 00:00:00 2001 From: David Pine <7679720+IEvangelist@users.noreply.github.com> Date: Sat, 30 May 2026 06:44:00 -0500 Subject: [PATCH 2/2] Address review feedback (1 thread) - Clarify that publish-time Foundry project connection injection is part of the hosted-agent publishing step (PRRT_kwDOQK_VN86F1ivG). Verified against microsoft/aspire@11bea2eb9fbb655614bcf9814c55c88a3fdd1126 on branch release/13.4. Edited per the doc-writer skill. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx b/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx index 25da20a2c..18e9eab24 100644 --- a/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx +++ b/src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdx @@ -460,7 +460,7 @@ In run mode, Aspire also adds dashboard URLs for `/responses`, `/liveness`, and For .NET hosted agents, add your Service Defaults project reference and call `builder.AddServiceDefaults()` in the hosted-agent app so logs, metrics, traces, HTTP instrumentation, and OTLP export flow into the Aspire dashboard. Then enable telemetry on the Foundry Responses chat client that backs the Microsoft Agent Framework (MAF) agent. -In publish mode, Aspire creates an `AzureHostedAgentResource` and publishes the container to the project-associated registry. Aspire also automatically injects the Foundry project connection environment variables — including `ConnectionStrings__` and the project endpoint — into the deployment container so the hosted agent has access to the Foundry project at runtime. +In publish mode, Aspire creates an `AzureHostedAgentResource` and publishes the container to the project-associated registry. Aspire also automatically injects the Foundry project connection environment variables — including `ConnectionStrings__` and the project endpoint — into the deployment container so the hosted agent has access to the Foundry project at runtime. This publish-time injection is part of the hosted-agent publishing step, so it still applies even if the hosted-agent resource doesn't otherwise reference the Foundry project. If you omit the `project` argument, Aspire uses an existing Foundry project from the app model or creates one automatically.