BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Microsoft Foundry Adds an Optimization Loop for Production Agents

Microsoft Foundry Adds an Optimization Loop for Production Agents

Listen to this article -  0:00

Agents built on Microsoft Foundry can now learn from their own production traffic. At Ignite, Microsoft added continuous improvement to the platform, routing traces, expert annotations, and evaluation scores into an agent optimizer that proposes changes for a developer to approve.

Tina Schuchman, corporate vice president for Microsoft Foundry, announced the capabilities at Ignite as a four-stage loop: establish what good looks like, identify where the agent falls short, optimize, and validate before release. The availability differs per capability. Production insights, which group recurring failures and rank possible fixes, are generally available, as is multi-turn evaluation and tracing for agents built outside Foundry with LangGraph, LangChain, and CrewAI. The agent optimizer, the option to send an insight straight to the optimizer, annotations on traces, golden datasets, rubric evaluators with safety coverage, and Programmed Training are in preview.

Graphic showing four-step continuous improvement cycle in Microsoft Foundry.

(Source: Microsoft Azure blog)

The optimizer first appeared in private preview at Build in June. It evaluates a hosted agent against criteria the team defines, generates candidate configurations covering system instructions, skills, tool descriptions, and model choice, and ranks them so a developer can deploy the best one. According to Microsoft Learn, it supports hosted agents that use the Responses protocol, runs in every region that offers hosted agents except Norway East, and needs two models deployed in the Foundry project for each run. Microsoft also claims that its model router, which the optimizer can use for model selection, saves up to 65% compared with sending every request to a frontier model, based on its own testing.

In a separate engineering post, the team behind the optimizer described how they built the loop. They found that the reflector, a separate model that reads failing traces and diagnoses why the agent scored poorly, influenced results more than the agent's own model, and that a stronger reflector helped more than switching the agent between gpt-4o and gpt-4.1-mini. Developers run the loop from the Azure Developer CLI:

azd ai agent eval init                         # generate dataset & evaluator from a one-paragraph description
azd ai agent eval run                          # score the current version (baseline)
azd ai agent optimize                          # search over candidates
azd ai agent optimize apply --candidate <id>   # apply the winner locally
azd deploy                                     # ship as the next version

When a fix needs more than new instructions, teams can turn to Managed Training, which Microsoft previously called managed fine-tuning, or to Programmed Training, both of which change model weights. Programmed Training divides the work, with the customer writing a Python driver that runs supervised fine-tuning or reinforcement learning on an open-weight model while Foundry executes the GPU steps underneath. In his walkthrough, security architect and Microsoft MVP Harri Jaakkonen pointed out that access requires explicit approval and that Foundry won't run arbitrary uploaded training code. He advises exhausting cheaper changes to instructions, tools, and skills first.

Gulf Air is one of the first customers to describe the workflow in production. In a joint post with Microsoft, the airline explained how it prepared a voice agent and a chat agent for its Falcon Eye operational analysis application, which went live on November 9 and queries operational data through APIs and a Postgres MCP server. The team generated about 10,000 candidate evaluation questions, ran selected questions in batches of 100, and completed a 400-question run shortly before launch, using insights to send eligible instruction and tool-description issues to the optimizer. The post does not publish accuracy, latency, or cost improvements.

Practitioners responding to the announcement focused on where the human sits in the loop. Writing on DEV Community, Hector Flores advised treating the 65% router savings as a ceiling rather than a forecast and welcomed the approval step before an optimized agent ships:

Self-modifying agents with no review gate are an incident waiting to happen.

Jaakkonen made the same point about separating evaluation from release, advising teams to review the diff, inspect which examples improved and regressed, and deploy in stages with a rollback path:

A trace can inform a candidate, but only a human-approved release should change production.

He also suggested keeping a small golden dataset for high-risk actions, a broader regression set for ordinary requests, and separate safety tests for prompt injection and unauthorized tool use.

Microsoft documents insights, the agent optimizer, and rubric evaluators on Microsoft Learn, and the optimizer quickstart walks through optimizing a sample hosted agent.

About the Author

Rate this Article

Adoption
Style

BT