

Agents built with the Microsoft Agent Framework in .NET or Python run as hosted agents on Microsoft Foundry. They call your tools, MCP servers and existing APIs on the model provider you choose. Workflows connect them into one process, step by step or as a graph. The harness agent brings planning, context compaction, file access, memory and tool approval.

Orchestration
Agents coordinate in five orchestration patterns: Sequential, Concurrent, Handoff, Group Chat and Magentic. They work one after another or in parallel, hand off to the next agent based on context, align in a shared conversation or follow a manager agent. Through A2A they reach agents from other vendors. Each process gets the pattern that fits it.

Human-in-the-Loop
Workflows save their progress with a checkpoint after every step. Approval-required tools pause the workflow until a person reviews the call, and a session can wait weeks for it. A person can add information mid-run. Long-running hosted agents resume through checkpoint and restore after the approval. Foundry tracing records every step.
Progress Stays Saved
a run that outlasts your session picks up exactly where it paused
Cost Visible Live
each pipeline stage shows its own spend, streamed live while the run is still going
Your API as a Tool
the REST API you run today becomes the tool an agent calls, unchanged
Microsoft Agent Framework on Microsoft Foundry
Agents and Workflows 2 steps
01
Agents, Harness and Workflows
Agents in the Microsoft Agent Framework call tools and MCP servers, reach other agents through A2A and support multiple model providers. The Harness Agent brings planning, todo tracking, context compaction, file access, memory and tool approval. Workflows connect them as functional or graph-based flows.
02
Memory and Middleware
Agent sessions hold the state of each conversation, with context providers as the agents' memory. Middleware intercepts every agent action. MCP clients wire in your tools, bundled on Microsoft Foundry in one toolbox per business domain. All of it runs on .NET, Python and, in preview, Go.
Orchestration 2 steps
03
Sequential, Concurrent and Handoff
In Sequential, agents run one after another in a fixed order. In Concurrent, they work on the same task in parallel. In Handoff, they transfer control to the next agent based on context, with no central manager steering every step.
04
Group Chat and Magentic
In Group Chat, agents coordinate in a shared conversation. In Magentic, a manager agent coordinates specialized agents dynamically. Both patterns support human-in-the-loop through tool approval.
Human-in-the-Loop 2 steps
05
Saved Progress
Workflows branch into parallel steps and join their results again, with conditions deciding the path. A checkpoint after every step saves the progress, so a run resumes where it paused. Events report every step as it happens.
06
Tool Approval
Approval-required tools pause the workflow until a person reviews the call, for example before an invoice is created. When the workflow needs more information, it asks a person mid-run and continues with the answer.
Microsoft Foundry 2 steps
07
Hosted Agents on Microsoft Foundry
A Dockerfile and an Azure CLI command or azd bring an agent to Microsoft Foundry as a hosted agent. Each session runs in its own sandbox, with scaling, session storage and its own agent identity. After an approval, hosted agents resume through checkpoint and restore.
08
Tracing and Evaluations
Foundry traces every run of a hosted agent by default. Agents outside Foundry send their traces through the OpenTelemetry distro. Evaluations measure quality across multiple turns, and in production they run hourly as live evaluations on a sample.
Frequently Asked Questions
What is an agentic business process?
It is a process where the agent does the reading, the matching and the drafting, and a person owns the approval. One delivered example takes the monthly Excel worklist the office produces, matches the buildings, and proposes a full month of technician routes grouped by location with real driving times from Google Maps. Every record waits for a person to review the proposal before it is saved, and every run keeps a history entry that explains the result later.
How do agents reach business data without rebuilding the system?
Through Model Context Protocol on top of the existing API. One planning platform exposes seven schedule tools over its live database, with tool descriptions written in the office's own German vocabulary so fuzzy employee and building names resolve correctly, connected to Claude as a custom connector. Staff ask in the chat who has an appointment on a given date. The connector runs against the staging slot before it is pointed at production.
How does a person approve what an agent writes?
The write path stays with the person. In the delivered pattern the agent drafts and returns an interactive form inside the chat client. That form calls the single save tool behind it. Document intake works the same way: an extracted record carries a review flag. The source document stays archived in blob storage until a person confirms it. Approval is built into the system as a step.
Who decides which model runs, and what does a run cost?
An administrator does, in a model registry with a default per use case and AI credits granted per user. The effect is measurable: on one drafting feature a model change made suggestions roughly ten times faster and four times cheaper without touching the feature. Cost stays visible at the run level, because each pipeline stage writes one JSON line with its token cost, and the same trace streams to the screen as a live readout.
