6 min read
Microsoft Foundry closes the optimization loop for agents in production

- Reading
- 6 min
- Tables
- 1
- Code
- 1
At Ignite, Microsoft combined real-world usage traces, annotations, and evaluation scores into an optimizer that suggests changes to instructions, tools, and models for the developer to approve before publishing.
What changed in Foundry after Ignite
At this month's Microsoft Ignite, Tina Schuchman, corporate vice president of Microsoft Foundry, presented a set of features that closes the loop between agents in production and continuous improvement. The core idea: instead of the team rewriting prompts and tools in the dark, Foundry now observes the agent's real traffic, identifies where it fails, and proposes concrete changes for a developer to approve. Microsoft describes this as a four-stage loop, according to the announcement on the Azure blog.
The four stages are: establishing what counts as a good outcome, identifying where the agent fails, optimizing, and validating before releasing the new version. In practice, this means tying together three things that previously lived separately in the workflow of those who operate agents: execution traces, expert annotations on those traces, and automated evaluation scores. The optimizer consumes this material and returns configuration candidates ready for comparison.

What's already available and what's still in preview
Not every feature in the announcement has the same availability status, which matters for anyone deciding to put this into production now.
| Feature | What it does | Status |
|---|---|---|
| Production insights | Groups recurring failures and ranks possible fixes | General availability |
| Multi-turn evaluation and tracing | Covers agents built outside Foundry with LangGraph, LangChain, and CrewAI | General availability |
| Agent optimizer | Generates and ranks configuration candidates | Preview |
| Direct insight-to-optimizer submission | Shortcut between the identified failure and optimization | Preview |
| Trace annotations, golden datasets, rubric evaluators with safety coverage | Data foundation and criteria for evaluating the agent | Preview |
| Programmed Training | Fine-tuning with the customer's own driver | Preview |
Support for LangGraph, LangChain, and CrewAI stands out because it extends Foundry's evaluation reach beyond the platform's native agents: teams that already built their agent stack with these frameworks gain tracing without having to migrate their implementation.
How the optimizer works under the hood
The agent optimizer first appeared in private preview at Build, in June of this year. It evaluates a hosted agent against criteria defined by the team, generates candidate configurations covering system instructions, skills, tool descriptions, and model choice, and ranks these options so the developer can choose which one to deploy.
According to the Microsoft Learn documentation, the optimizer works with hosted agents that use the Responses protocol, runs in every region that offers hosted agents (except Norway East), and requires two models deployed in the Foundry project for each run. Microsoft also states, based on its own testing, that its model router can save up to 65% compared to sending every request to a frontier model, when used by the optimizer for model selection.
A technical post from the team that built the loop brings a somewhat unintuitive detail: the reflector, a separate model that reads the traces that failed and diagnoses why the agent scored poorly, influenced the final result more than the agent's own model. Switching the agent between gpt-4o and gpt-4.1-mini mattered less than switching to a stronger reflector, according to the same post.
Those who want to run the full cycle do so through the Azure Developer CLI, with five commands covering everything from dataset generation to deployment:
azd ai agent eval init # generates dataset and evaluator from a paragraph
azd ai agent eval run # scores the current version (baseline)
azd ai agent optimize # searches for candidates
azd ai agent optimize apply --candidate <id> # applies the winner locally
azd deploy # publishes as the next versionWhen adjusting instructions isn't enough
For failures that require more than rewriting instructions, skills, or tool descriptions, Foundry offers two paths that change the model's weights: Managed Training, which Microsoft used to call managed fine-tuning, and Programmed Training. In the latter, the customer writes a Python driver that runs supervised fine-tuning or reinforcement learning on an open-weight model, while Foundry handles the GPU steps underneath.
Harri Jaakkonen, a security architect and Microsoft MVP, detailed this workflow and pointed out a relevant restriction: access to Programmed Training requires explicit approval, and Foundry does not run arbitrary training code submitted by the customer. His practical recommendation is to exhaust the cheaper changes first, in instructions, tools, and skills, before moving on to weight adjustment.
Gulf Air describes the workflow in production
Gulf Air is one of the first companies to publicly document how it used this cycle. In a joint post with Microsoft, the airline described how it prepared a voice agent and a chat agent for its operational analytics application, Falcon Eye, which went live on November 9 and queries operational data through APIs and a Postgres MCP server.
Gulf Air's team generated about 10,000 candidate evaluation questions, ran selected batches of 100 questions, and completed a round of 400 questions shortly before launch, using Foundry's insights to send the instruction and tool-description issues that fit the automated flow to the optimizer. The post does not publish accuracy, latency, or cost figures, which limits what can be compared with other cases.
What developers are pushing back on
The reaction from people who already deal with this kind of tool day to day centered on one point: where the human fits in the loop. Hector Flores, writing on DEV Community, asked for the model router's 65% savings figure to be treated as a ceiling, not a forecast, and praised the existence of an approval step before an optimized agent goes live:
Self-modifying agents with no review gate are an incident waiting to happen.
Hector Flores, DEV Community
Jaakkonen made a similar point about separating evaluation from release: review the diff, inspect which examples improved and which got worse, and roll out in stages with a rollback path.
A trace can inform a candidate, but only a human-approved release should change production.
Harri Jaakkonen, security architect and Microsoft MVP
He also suggested keeping a small golden dataset for high-risk actions, a broader regression set for common requests, and separate safety tests for prompt injection and unauthorized tool use.
What changes for those building agents
For teams in Brazil that already have agents in production, what's new isn't the concept of continuous evaluation, that already existed in LLM observability tools. What changes is having, inside the same Foundry where the agent runs, a short path between "this failure showed up in real traffic" and "here's a candidate configuration to fix it," without having to build that pipeline by hand.
This doesn't do away with engineering judgment. Support for LangGraph, LangChain, and CrewAI extends the reach to those who don't use Foundry's native agents, but the optimizer itself still requires two deployed models per run and is limited to agents on the Responses protocol, which leaves more heterogeneous stacks out. And as the two developers quoted in reaction to the announcement warn, the 65% savings figure comes from Microsoft itself about its own model router, not a guarantee that repeats across every workload.
Translated from the Brazilian Portuguese original · Read the original
Ant Group releases weights for Ming-Image-0.2-Design, AI model for commercial design
The inclusionAI team at Ant Group released the weights for Ming-Image-0.2-Design under an MIT license, a 6-billion-parameter model built for interface mockups, e-commerce images, and spatial renderings.






