· AI dev tools
Microsoft Foundry adds optimization loop for production agents, features generally available, optimizer in preview
The airline Gulf Air is among the initial clients to detail how this new workflow functions within a live environment, having prepared both a chat and voice agent for its Falcon Eye operational…
The airline Gulf Air is among the initial clients to detail how this new workflow functions within a live environment, having prepared both a chat and voice agent for its Falcon Eye operational analysis application, which became active on November 9, querying operational data via APIs and a Postgres MCP server.
Microsoft has integrated a mechanism for ongoing refinement into Microsoft Foundry, connecting production data traces, expert annotations, and evaluation scores to an agent optimizer. This optimizer is designed to suggest and rank modifications to an agent's model, skills, and instructions. While the optimizer and the training capabilities are currently in preview, the platform offers generally available production insights, which categorize recurring failures and rank potential solutions.
At the Ignite event, Tina Schuchman, corporate vice president for Microsoft Foundry, unveiled this functionality, describing it as a four-stage cycle: first, defining what constitutes successful performance; second, pinpointing areas where the agent underperforms; third, optimizing the agent; and finally, validating the changes before they are deployed.
The agent optimizer, alongside the ability to direct an insight straight to the optimizer, annotations on traces, golden datasets, rubric evaluators that include safety coverage, and Programmed Training, remains in preview status. The optimizer first appeared in a private preview setting during Build back in June. Its function involves assessing a deployed agent against criteria established by the development team, producing potential configurations that encompass system instructions, tool descriptions, model selection, and skills, and then ranking these options so a developer can select the superior one for deployment.
According to documentation on Microsoft Learn, this feature supports hosted agents utilizing the Responses protocol, operates across every geographic region offering hosted agents except for Norway East, and requires two models to be present in the Foundry project for each execution. Furthermore, Microsoft asserts that its model router, which the optimizer can utilize for model selection, achieves savings of up to 65% when compared to routing every single request through a frontier model, based on internal testing.
In a separate technical publication, the team responsible for the optimizer detailed the construction of this continuous improvement loop. They discovered that the reflector, which is a distinct model tasked with interpreting failing traces to diagnose poor agent scores, exerted a greater influence on outcomes than the agent's own model. Moreover, they observed that enhancing the reflector yielded greater benefits than simply switching the agent between gpt-4o and gpt-4.1-mini.
Developers can initiate this loop using the Azure Developer CLI through several commands: `azd ai agent eval init` to generate a dataset and evaluator from a brief description; `azd ai agent eval run` to score the current iteration (the baseline); `azd ai agent optimize` to search through potential candidates; `azd ai agent optimize apply --candidate <id>` to implement the winning configuration locally; and finally, `azd deploy` to push it as the next official version.
When necessary adjustments extend beyond merely updating instructions, teams have the option of utilizing Managed Training, formerly known as managed fine-tuning, or Programmed Training, both of which involve altering the model's weights. Programmed Training delegates the task, requiring the client to create a Python driver that executes supervised fine-tuning or reinforcement learning on an open-weight model, while Foundry manages the underlying GPU operations.
Harri Jaakkonen, a security architect and Microsoft MVP, noted in his presentation that gaining access demands explicit authorization and that Foundry will not execute any arbitrary training code that is uploaded. He strongly recommends that teams first exhaust all possibilities involving less intensive modifications to tools, skills, and instructions.
The airline's experience involved generating roughly 10,000 potential evaluation questions, testing selected ones in batches of 100, and concluding a 400-question evaluation shortly prior to the launch, using the insights to direct eligible instruction and tool-description issues toward the optimizer. The published account did not provide figures regarding latency, cost, or accuracy improvements.
Practitioners reacting to the announcement centered their discussion on the role of human oversight within this automated cycle. Hector Flores, writing on DEV Community, suggested viewing the 65% savings from the router as an upper limit rather than a guaranteed projection and welcomed the mandatory approval step before an optimized agent goes live, stating that "Self-modifying agents with no review gate are an incident waiting to happen." Jaakkonen echoed this sentiment regarding the separation between evaluation and release, advising that teams should examine the differences, scrutinize which examples saw improvement or decline, and implement staged rollouts with a means to revert changes: "A trace can inform a candidate, but only a human-approved release should change production." He also proposed maintaining a small golden dataset for highly sensitive actions, a wider regression set for routine requests, and distinct safety tests to guard against unauthorized tool utilization and prompt injection.
Microsoft provides documentation on the insights, the agent optimizer, and the rubric evaluators on Microsoft Learn, and a quickstart guide for the optimizer demonstrates how to optimize a sample hosted agent.
Why it matters
This tooling advancement allows developers to build agents that continuously improve based on real-world usage data. For working developers, this means a pathway to deploy more robust and efficient agents with less manual iteration. Teams should watch how the developer CLI integrates these new evaluation and optimization steps.





