From dotnet run to Foundry Hosted Agent in 3 lines of C#
Microsoft Agent Framework .NET console apps can now be deployed as Foundry Hosted Agents via the new Microsoft.Agents.AI.Foundry.Hosting package, still published as a prerelease, using AgentHost.CreateBuilder(), AddFoundryResponses() and RegisterProtocol(). Foundry supplies managed compute and scaling, session state persistence across turns and idle periods, a dedicated Entra ID identity per agent, an OpenAI-compatible /responses endpoint, automatic OpenTelemetry and Application Insights tracing, agent versioning and rollback, and Foundry Toolbox access. Hosted Agents itself is generally available.
Why it matters: Removes hosting, identity and telemetry plumbing from custom agent builds, so a .NET agent prototype can move to managed infrastructure without a bespoke runtime.
devblogs.microsoft.com