Home / Blog / Microsoft Foundry Adds an Optimization Loop for Production…
Tech News

Microsoft Foundry Adds an Optimization Loop for Production Agents

Microsoft Foundry added an automated optimization loop that refines agent instructions and routes model traffic to reduce production expenses by up to 65%.

By Dillip Chowdary • Nov 30, 2026 • Source: InfoQ

Microsoft Foundry Adds an Optimization Loop for Production Agents
Image: InfoQ

At a glance

Product
Microsoft Foundry
Preview date
June 2026 at Build
Launch event
Ignite 2026
Regional limits
Hosted regions except Norway East
Router savings
Up to 65% versus frontier models
General availability
Production insights and multi-turn tracing

Microsoft launched continuous improvement capabilities for its Microsoft Foundry platform, allowing production agents to learn from real-world conversational traffic and developer feedback. The update routes live execution traces, expert annotations, and evaluation scores into an automated agent optimizer that generates and ranks configuration adjustments for engineering approval, as detailed in InfoQ's report. By analyzing recurring execution failures directly within the hosting environment, the system presents actionable refinements to instructions, skills, tool definitions, and model selections.

This release analysis breaks down the technical mechanics of the Foundry optimization loop, regional deployment prerequisites, command-line tooling, and governance safeguards for AI platform engineers. It details how development teams can move beyond manual prompt debugging, balance model routing costs against performance goals, and enforce human review gates before updated agents reach production endpoints.

01Four stages from traces to candidate prompts

At Ignite, Microsoft introduced continuous improvement capabilities to Microsoft Foundry, linking runtime traces, expert annotations, and evaluation scores directly to an agent optimizer. Tina Schuchman, corporate vice president for Microsoft Foundry, announced the architecture as a closed feedback cycle designed to keep enterprise agents aligned with production requirements. The system collects failure signals from live endpoints and generates ranked configuration candidates for human review.

  1. Establish standards Define target criteria and golden datasets representing baseline operational behavior.
  2. Identify failures Isolate recurring errors and pinpoint where the agent falls short.
  3. Generate optimizations Propose candidate updates across system instructions, skills, and tool descriptions.
  4. Validate candidates Benchmark candidate configurations against rubric evaluators before triggering deployment.

Feature availability splits between broad release and active preview. Production insights that cluster recurring errors and multi-turn tracing for external agents built with LangGraph, LangChain, or CrewAI are generally available. The agent optimizer, golden datasets, trace annotations, rubric evaluators with safety coverage, and Programmed Training remain in preview.

02Regional limits and model routing efficiency

The agent optimizer originated in private preview during Build in June before expanding its hosted footprint across Azure infrastructure. It evaluates hosted agents against team-defined criteria, producing candidate configurations that adjust system instructions, skills, tool descriptions, and model selection. Teams can automatically direct insights into the optimizer to generate fixes for identified weaknesses.

Note: Hosted agent optimization requires the Responses protocol and two deployed models in the project, running in all hosted agent regions except Norway East. Teams cannot execute the optimization loop in unsupported regional zones or without redundant project models.

Microsoft testing indicates that using the platform model router within the optimization loop delivers significant resource efficiency compared to uniform frontier model allocation. The router dynamically assigns incoming requests across deployed project endpoints based on task complexity rather than sending every transaction to high-cost models.

Deployment ArchitectureRelative Execution ExpenseWorkload Routing Allocation
Frontier Model Direct100% baseline expenseEvery production request sent to frontier model
Model Router EnabledUp to 65% cost savingsDynamic endpoint selection across project models

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

03Diagnostic reflectors and developer terminal commands

Engineering teams analyzed internal agent performance and discovered that diagnostic reflectors dictate evaluation quality more than the agent model itself. The reflector operates as an independent model that inspects failing traces and diagnoses why a workflow underperformed. Findings revealed that deploying a stronger reflector improved evaluation accuracy more than upgrading an agent between gpt-4o and gpt-4.1-mini.

Developers interact with the evaluation and optimization engine directly through the Azure Developer CLI without opening administrative web portals. The command line interface automates initial evaluation generation, baseline scoring, candidate exploration, local patch application, and production releases through standard terminal execution paths.

Command
azd ai agent eval init
azd ai agent eval run
azd ai agent optimize
azd ai agent optimize apply --candidate <id>
azd deploy

04Weight updates through managed and programmed training

When adjusting instructions and tool schemas fails to correct agent behavior, teams can modify underlying model weights directly within Foundry. Microsoft provides Managed Training, previously known as managed fine-tuning, alongside Programmed Training for complex architectural adjustments. Both options permit deep customization when prompt modifications and skill adjustments reach their structural limits.

Programmed Training splits execution responsibilities between the customer and Azure infrastructure during model adaptation runs. The developer writes a custom Python driver to run supervised fine-tuning or reinforcement learning against an open-weight model, while Foundry orchestrates GPU compute underneath. Security architect and Microsoft MVP Harri Jaakkonen reported that access requires explicit approval because Foundry will not execute arbitrary uploaded training code.

Jaakkonen advises engineering organizations to exhaust cheaper adjustments to prompts, tool definitions, and skill configurations before committing engineering resources to model weight changes. Fine-tuning open models introduces substantial compute overhead, whereas prompt refinement and tool modifications frequently resolve task failures without altering underlying weights.

05Human approval gates and production safety suites

Gulf Air implemented the optimization workflow ahead of the November 9 production launch of its Falcon Eye operational analytics system. The voice and chat application queries airline databases through custom APIs and a Postgres MCP server. The team generated approximately 10,000 evaluation questions, tested batches of 100, and finalized validation with a 400-question run to optimize prompt instructions and tool descriptions.

Practitioners emphasize that autonomous optimization requires rigorous human oversight prior to production deployment. Writing on DEV Community, Hector Flores warned that the reported 65% router savings represents a ceiling rather than an everyday forecast, arguing that self-modifying agents without review gates create severe operational vulnerabilities. Jaakkonen reinforced that traces should inform candidate configurations, but human verification must precede any production release.

Deploying an updated configuration requires inspecting candidate diffs to observe which edge cases improved and which regressed. Jaakkonen recommends maintaining a small golden dataset for high-risk transactions, an expansive regression suite for routine requests, and isolated safety tests for prompt injection and unauthorized tool invocation. Staged rollouts with explicit rollback pathways ensure failing configurations never compromise operational stability.

Frequently asked questions

What does the Microsoft Foundry agent optimizer do?

It evaluates hosted agents against team criteria, analyzes failing traces with a reflector model, and proposes ranked updates to instructions, skills, tools, and models.

Which features are generally available in Microsoft Foundry?

Production insights for grouping recurring failures and multi-turn tracing for external frameworks like LangGraph, LangChain, and CrewAI are generally available.

What infrastructure is required to run the optimizer?

Hosted agents must implement the Responses protocol, run outside Norway East, and deploy two active models within the Foundry project.

How does Gulf Air use the optimization loop?

Gulf Air prepared chat and voice agents for Falcon Eye by generating 10,000 evaluation questions and routing tool issues to the optimizer before launch.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →