Microsoft Foundry Hosted Agents with .NET Move Closer to “Real Production”
TL;DR: In late May 2026, Microsoft doubled down on a very specific message: agent demos are cheap; production agents are not. The most concrete, engineer-facing signal is the continued push around Microsoft Foundry Hosted Agents with .NET, including a reference architecture and hands-on labs that show what “production-ready” actually means—identity, cost controls, deployment, and latency included. If you’re shipping AI features on Azure with .NET, this is the clearest blueprint Microsoft has published so far.
What actually changed (and when)
While there wasn’t a brand‑new GA button flipped on May 27, the most relevant update for .NET/Azure engineers landed earlier this week on May 21, 2026, when Microsoft emphasized moving from AI pilots to repeatable, enterprise execution. This wasn’t just messaging—it aligns directly with the Foundry Hosted Agents guidance Microsoft has been publishing and refining. (blogs.microsoft.com)
The most concrete developer artifact is the “From Demo to Production: Building Microsoft Foundry Hosted Agents with .NET” walkthrough, which lays out a full production path using .NET 10, Azure, and Foundry’s managed agent runtime. (techcommunity.microsoft.com)
In short: Microsoft is standardizing how they want you to build agents on Azure—and they want you off bespoke containers as fast as possible.
Why Foundry Hosted Agents matter (beyond marketing)
If you’ve already built a “DIY agent” with:
- Azure OpenAI / Azure AI models
- A custom Web API
- Some background workers
- And a prayer
…you already know where things get painful.
Foundry Hosted Agents directly target those pain points:
| Concern | DIY Agent | Foundry Hosted Agent |
|---|---|---|
| Runtime | You manage containers | Microsoft-managed |
| Auth | Roll your own | Entra ID–native |
| Scaling | Manual / AKS tuning | Built-in |
| Cost visibility | Postmortem math | First-class |
| Deployment | CI/CD duct tape | Opinionated, repeatable |
This is Microsoft quietly saying: “Stop reinventing the agent platform layer.”
Cost and latency: the unsexy but critical bits
The Foundry guidance is refreshingly explicit about cost control:
- Prompt-only agents are cheaper and should be your default.
- Code-backed agents are for cases where tools, state, or policy enforcement are required.
- The managed runtime is optimized for inference-heavy workloads, aligning with Microsoft’s broader push around inference economics in Azure.
This lines up with Azure’s recent infrastructure focus on inference efficiency, not just bigger models. While Microsoft doesn’t publish per-token discounts here, the architectural intent is clear: shorter prompts, fewer round trips, predictable scaling.
Latency-wise:
- Agents run closer to the model deployment.
- Tool invocation is optimized inside the runtime boundary.
- You avoid cold-start penalties common in ad‑hoc container setups.
In practice, this means fewer “why is my chat response taking 9 seconds?” postmortems.
What .NET engineers should actually do this week
Here’s the practical checklist if you’re shipping on Azure:
-
Baseline with prompt agents first
If your scenario is Q&A, summarization, or classification—don’t write code yet. -
Adopt the Foundry agent project structure
Even if you’re not all-in on Foundry, the structure is a solid reference. (techcommunity.microsoft.com) -
Target .NET 10 early
The labs and samples assume it. Waiting buys you nothing. -
Budget before you optimize
Foundry makes cost observable—use that before shaving tokens. -
Resist custom orchestration
If you find yourself writing your own agent scheduler, you’re probably doing extra work.

How this fits with Copilot and the wider ecosystem
It’s not an accident that this push coincides with:
- The Copilot SDK moving through preview phases (github.blog)
- Microsoft positioning agents as infrastructure, not features
Copilot is for augmenting developers.
Foundry agents are for shipping products.
Different tools. Different stakes.
The cautious takeaway
No hype cycle here—just a slow, deliberate narrowing of the “blessed path” for AI agents on Azure. Microsoft isn’t saying Foundry Hosted Agents are mandatory. They’re saying:
If your agent needs to survive compliance reviews, traffic spikes, and budget scrutiny… this is the path with the least regret.
For once, that’s a claim that maps cleanly to the tooling.
Further reading
- https://techcommunity.microsoft.com/blog/educatordeveloperblog/from-demo-to-production-building-microsoft-foundry-hosted-agents-with-net/4513718
- https://blogs.microsoft.com/blog/2026/05/21/from-ai-pilots-to-enterprise-impact-why-execution-is-the-new-differentiator/
- https://github.blog/changelog/2026-04-02-copilot-sdk-in-public-preview/