Scaling AI Agents with Microsoft Foundry: From Build to Production at Build 2026
Scaling AI Agents with Microsoft Foundry: From Build to Production at Build 2026
Date: 2026-06-02
Discover how Microsoft Foundry empowers developers to build, deploy, and operate AI agents at enterprise scale with a unified platform, runtime isolation, and continuous optimization.
Tags: ["Microsoft Foundry", "AI Agents", "Agent Framework", "Observability", "Build 2026"]
Agents powered by AI have gone from experimental prototypes to integral components within enterprise workflows. While early coding agents like GitHub Copilot make prototyping straightforward, the real challenge lies beyond the laptop—running those agents reliably and securely under production conditions. Custom integrations, authentication complexities, maintaining state, and achieving observability can quickly overwhelm teams. This is the exact inflection point reminiscent of microservices adoption a decade ago: foundational infrastructure and operational discipline become paramount.
Microsoft Foundry tackles this complexity by offering a tightly integrated platform designed expressly to build, deploy, and operate production-ready agents with ease. Announced at Build 2026, Foundry introduces enhanced frameworks for agent orchestration, robust runtime isolation in hosted agent services, seamless distribution into Microsoft Teams and Microsoft 365 Copilot, plus deep observability and closed-loop optimization capabilities. This post dives into how Foundry layers these capabilities, enabling developers to scale AI agents confidently and efficiently across enterprises.
We’ll walk through the architecture overview, dissect key technical insights, explore the agent build and deployment workflows, share practical tips, and conclude with thoughts on the evolving agent landscape fueled by Microsoft Foundry.
Architecture Overview
┌─────────────────────────────────────────────┐
│ Enterprise Data │
├─────────────────────────────────────────────┤
│ • Databases │
│ • Documents & Knowledge Base │
│ • Operational Systems │
└─────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────┐
│ Microsoft Foundry Platform │
├─────────────────────────────────────────────┤
│ • Model Access & Management │
│ • Agent Factory & Toolboxes │
│ • Hosted Agent Runtime & Isolation │
│ • Observability & Optimization │
└─────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────┐
│ Applications │
├─────────────────────────────────────────────┤
│ • Internal AI Assistants │
│ • Automation Agents & Routines │
│ • Customer-Facing AI Apps (Teams, Copilot) │
└─────────────────────────────────────────────┘
Foundry sits at the heart of enterprise AI agent lifecycle, bridging raw data and operational systems with scalable agent runtimes and user-facing applications.

Architecture image courtesy Microsoft Foundry Blog
Key Technical Observations
-
Framework-agnostic Agent Harness — Microsoft Foundry's agent runtime removes lock-in by supporting multiple SDKs like Microsoft Agent Framework, GitHub Copilot SDK, LangGraph, and Claude Agent SDK. This flexibility lets developers leverage existing investments and choose orchestration patterns such as Magnetic-One for multi-agent workflows.
-
Unified Tool Integration via Toolboxes — Agents access APIs, documents, and other tools through Toolboxes, a single managed endpoint that handles authentication, governance, and lifecycle internally. Tool search intelligently selects relevant tools per task, lifting integration and security burdens from developers.
-
Multimodal Capabilities with Azure Content Understanding and Voice Live — Agents are no longer limited to text. ACU enables parsing and classification of documents and images with token efficiency optimizations, while Voice Live offers a consolidated API for real-time voice interactions, including speech recognition and text-to-speech, enhancing customer-facing agents.
-
Long-term Procedural Memory — Beyond session and user memory, procedural memory lets agents learn workflows and operational sequences across runs, significantly increasing success rates with minimal retraining.
-
Hosted Agent Runtime with Sandbox Isolation — Foundry Agent Service runs each agent session in isolated sandboxes with dedicated compute, memory, and filesystem, supporting long-running autonomous agents and routines to meet real-world enterprise performance and security needs.
-
End-to-End Observability & Closed-Loop Optimization — Integrated tracing with OpenTelemetry collects every model call, tool invocation, and agent handoff, linking evaluation metrics directly to traces. The Agent Optimizer closes the loop by proposing, validating, and deploying improvements programmatically, revolutionizing how production failures transform into actionable enhancements.
How It Works
Building Agents: Harness, Tools, and Memory
Development begins in the IDE with the Foundry Toolkit for VS Code, enabling developers to create agents from templates or GitHub Copilot suggestions, debug locally with full trace visualization, and deploy directly to Foundry Agent Service. The agent harness merges stable capabilities including skills, memory, and middleware.
from microsoft_agent_framework import AgentHarness, Toolboxes, Memory
agent = AgentHarness(skills=['code_review', 'data_fetch'])
agent.memory = Memory(procedural=True, session=True, user=True)
agent.tools = Toolboxes.load_config('default_toolbox.json')
agent.run()
The agent accesses tools via Toolboxes, which unify API calls, document searches, and other integrations. Tool search ensures the agent uses only the most relevant tools for each task, improving efficiency and reducing erroneous calls. For example, connecting to Foundry IQ abstracts away complexities of underlying data sources like Work IQ or Fabric IQ.
Multimodal enhancements come from Azure Content Understanding (ACU), which parses documents and images with optimized analyzers, reducing token costs by over 80%. Meanwhile, Voice Live integrates low-latency speech capabilities for conversational agents, enabling natural voice-based interactions directly connected to hosted agents.
Foundry Toolkit for VS Code enables seamless agent building and debugging. Image courtesy Microsoft Foundry Blog
Deploying Agents: Runtime and Distribution
Once built, agents need a production-grade runtime with strict isolation and scale. Foundry Agent Service is the managed, sandboxed runtime where each agent session gets dedicated compute and filesystem isolation. This ensures security and stability even under heavy load. The runtime is SDK-agnostic, allowing various frameworks to deploy without rewriting.
Two protocols power interactions:
- Responses API: OpenAI-compatible stateful request/response model for chat-oriented communication.
- Invocations Protocol: Schema-free, flexible protocol for custom request/response forms, letting developers control the conversation flow.
Hosted agents also support long-running autonomous agents which maintain state and can act on scheduled routines, such as monitoring repositories overnight and posting daily reports automatically.
For user reach, agents can be published directly into Microsoft Teams and Microsoft 365 Copilot, embedding into tools employees already use. The new Autopilot agents act on their own behalf with identity and presence in Microsoft’s ecosystem, engaging conversations and collaborating with humans transparently and securely.
Operating Agents: Observability and Optimization
Operational excellence is critical for agent reliability. Foundry incorporates:
- End-to-end tracing with OpenTelemetry, covering all model calls, tools, and sub-agent interactions for comprehensive visibility.
- Evaluation pipelines with Rubrics that score every run against business criteria like success, safety, cost, and latency.
- Agent Optimizer automates improvement cycles by consuming trace data, generating candidate fixes, validating them, and recommending the best deployment with audit trails and rollback options.
This transforms the traditional guesswork into a rigorous, data-driven continuous improvement process, making production AI agents trustworthy and performant.
Production trace and evaluation dashboard in Foundry Agent Service, enabling actionable insights. Image courtesy Microsoft Foundry Blog
Quick Tips & Tricks
-
Leverage Framework-agnostic Deployment — Build your agents with preferred SDKs like GitHub Copilot SDK or Microsoft Agent Framework and deploy on Foundry Agent Service without needing refactoring.
-
Use Toolboxes for Secure API Integrations — Centralize authentication and governance for all APIs your agents call by configuring tools in Toolboxes, reducing complexity and security risk.
-
Implement Procedural Memory Early — Incorporate procedural memory to enable agents to remember workflows, boosting task success rates notably without increasing operational cost.
-
Integrate Azure Content Understanding for Unstructured Data — Use ACU’s prebuilt analyzers and agentic mode to streamline document processing and reduce token usage, especially for multimodal scenarios.
-
Deploy Agents as Autopilots in Microsoft 365 — Empower agents to act independently with identities and presence inside Microsoft Teams and Copilot, enabling rich, autonomous collaboration with users.
-
Adopt Agent Optimizer for Continuous Improvement — Close the gap between production monitoring and development by using Agent Optimizer’s evidence-backed enhancements pipeline to keep agent performance sharp and safe.
Conclusion
Microsoft Foundry represents a comprehensive leap in the AI agent landscape by tackling the full agent lifecycle: from flexible development frameworks and rich tooling to runtime isolation, seamless enterprise distribution, and next-level observability with automated optimization. It addresses the operational challenges that have traditionally held back AI agents from production-scale adoption.
As organizations push AI agents deeper into workflows with increasing complexity and autonomy, Foundry’s open, managed platform will be critical for delivering scalable, trustworthy agent solutions. The closed-loop agent optimizer and multimodal capabilities also signal a maturing AI ecosystem ready to meet stringent enterprise demands while accelerating innovation.
The future of AI agents is operational, continuous, and multi-agent — and Microsoft Foundry is positioned to be the backbone of that transformation.
References
-
Build and run agents at scale with Microsoft Foundry at Build 2026 — Microsoft Foundry official blog post on the 2026 Build announcements.
-
Microsoft Agent Framework — Insights into the foundational open-source agent framework.
-
Azure Content Understanding (ACU) — Microsoft’s documentation on content parsing and extraction.
-
Foundry Toolkit for VS Code — Developer experience for building and deploying agents.
-
Microsoft Foundry Agent Optimizer — Preview Sign-up — Details on optimization pipeline announced at Build 2026.
-
Microsoft 365 Copilot Integration — Info on embedding AI agents into Microsoft 365 tools.