ai agents
140 TopicsBuild a multi-model video generation workflow with fal on Microsoft Foundry
Building a compelling video experience rarely comes down to finding one model that does everything. Early in the creative process, you may want fast text-to-video generation to explore several directions. Once a composition is established, image-to-video can preserve the starting visual while adding motion. For more directed work, reference inputs can provide additional context from images, video, or audio. Fal on Microsoft Foundry brings these workflows together through a family of video generation models available from the Foundry model catalog. In this tutorial, we build a practical product-campaign workflow that starts with a creative brief and moves through text-to-video, image-to-video, and reference-to-video modalities. Along the way, we show how to select a model for each step, submit asynchronous generation jobs, monitor their status, retrieve the completed video, and structure the code so that it can be reused across models. The scenario: turn one creative brief into a coordinated campaign Imagine that a creative team is introducing a compact premium travel speaker called Northstar. The team needs three short assets: A concept clip to test the campaign mood and visual language quickly. A polished hero clip that animates an approved product image. A campaign variation that uses reference material to reinforce the established product and audio direction. The creative brief is intentionally specific enough to guide generation while leaving room for model interpretation: Creative brief: A matte black portable speaker sits on a weathered stone ledge above a misty alpine lake at sunrise. The camera moves slowly toward the product. Soft wind moves nearby grass. The visual style is premium, cinematic, restrained, and realistic, with cool blues and warm sunrise highlights. Avoid text, logos, extra products, distorted geometry, and abrupt camera movement. This is a useful application pattern because model choice follows the creative task instead of forcing every task through the same endpoint. Choose the model and modality for the job At the time of writing, fal on Microsoft Foundry includes five video models in public preview. All five support text-to-video and image-to-video. MiniMax H3 Max additionally supports reference-to-video. For comprehensive model details, please review the documentation. Model Modalities Best fit in the scenario Deployment offering LTX 2.5 Fast Text-to-video; image-to-video Rapid concept exploration and iteration Global Standard PayGo LTX 2.5 Pro Text-to-video; image-to-video Higher-quality hero output after direction is approved Global Standard PayGo Kling v3 Pro Text-to-video; image-to-video Cinematic or multi-shot alternatives; native audio is available US Data Zone MiniMax H3 Max Text-to-video; image-to-video; reference-to-video Reference-guided campaign variation Global Standard PayGo MiniMax H3 Max Turbo Text-to-video; image-to-video Alternative fast generation path Global Standard PayGo How the asynchronous API workflow works Video generation is asynchronous. A production-oriented client should treat submission, status polling, result retrieval, and download as distinct operations: Authenticate to the Foundry resource with a Microsoft Entra bearer token. Submit a generation request to the selected model and modality route. Capture the request_id returned by the service. Poll the status route until the job reaches a terminal state. Retrieve the completed result and extract the video URL. Download or securely process the generated asset before the result URL expires. Prerequisites An Azure subscription. A Microsoft Foundry resource and project. Subscription Owner or Subscription Contributor access to enable the preview (Fal.EnableDeploy) feature. Foundry Owner access on the project to deploy models. Azure CLI installed and authenticated with az login. Python 3.10 or later with the requests package. Model deployments for the fal models used by the walkthrough. A publicly reachable HTTPS image URL for image-to-video examples, plus reference URLs for the reference-to-video example. Enable fal and deploy the models An administrator first enables the Fal.EnableDeploy preview feature for the Azure subscription. In the Azure portal, open the subscription, select Preview features, search for Fal.EnableDeploy, review the terms and data-handling disclosure, and register the feature. Registration can take up to 30 minutes. After registration, open the Foundry model catalog, select each required fal model, choose Deploy, configure the deployment name and supported deployment offering, and wait until the deployment status is Succeeded. Data handling: fal services are operated outside Microsoft facilities. Review the fal terms, data-egress implications, privacy requirements, and your organization’s compliance obligations before sending prompts or assets. Note: All code samples in this walkthrough use Python and are intended to run in a Jupyter Notebook. Set up the notebook environment The companion notebook can be organized around a shared client so each scenario changes only the endpoint suffix and request payload. %pip install -q requests import json import os import subprocess import time from pathlib import Path from typing import Any, Dict import requests Configure the resource and model deployment names. The deployment names must match the deployments in your Foundry project. FOUNDRY_RESOURCE_NAME = os.environ.get( "FOUNDRY_RESOURCE_NAME", "your-foundry-resource" ) FOUNDRY_HOST = ( f"https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com" ) DEPLOYMENTS = { "ltx_fast": os.environ.get("LTX_FAST_DEPLOYMENT", "ltx-2-5-fast"), "ltx_pro": os.environ.get("LTX_PRO_DEPLOYMENT", "ltx-2-5-pro"), "kling_pro": os.environ.get("KLING_PRO_DEPLOYMENT", "kling-v3-pro"), "minimax_h3": os.environ.get("MINIMAX_H3_DEPLOYMENT", "minimax-h3-max"), } Authenticate for local development This Python helper invokes Azure CLI as a subprocess. It is still Python, not a Bash sample. def get_bearer_token() -> str: command = [ "az", "account", "get-access-token", "--scope", "https://cognitiveservices.azure.com/.default", "--query", "accessToken", "--output", "tsv", ] token = subprocess.check_output(command, text=True).strip() if not token: raise RuntimeError("Azure CLI did not return an access token.") return token def auth_headers() -> Dict[str, str]: return { "Authorization": f"Bearer {get_bearer_token()}", "Content-Type": "application/json", } Create the asynchronous generation client Video generation is asynchronous. The client submits a job, polls its status, retrieves the result, and downloads the completed video. FAILURE_STATES = {"FAILED", "CANCELED", "CANCELLED"} def submit_generation(route: str, payload: Dict[str, Any]) -> str: response = requests.post( f"{FOUNDRY_HOST}{route}", headers=auth_headers(), json=payload, timeout=120, ) response.raise_for_status() request_id = response.json().get("request_id") if not request_id: raise RuntimeError(f"No request_id returned: {response.text}") return request_id def wait_for_completion(request_root: str, request_id: str) -> None: started = time.monotonic() while True: response = requests.get( f"{FOUNDRY_HOST}{request_root}/requests/{request_id}/status", headers=auth_headers(), timeout=60, ) response.raise_for_status() body = response.json() status = body.get("status", "UNKNOWN") print(f"{request_id}: {status}") if status == "COMPLETED": return if status in FAILURE_STATES: raise RuntimeError(f"Generation ended with {status}: {body}") if time.monotonic() - started > 1800: raise TimeoutError(f"Timed out waiting for {request_id}") time.sleep(5) def get_result(request_root: str, request_id: str) -> Dict[str, Any]: response = requests.get( f"{FOUNDRY_HOST}{request_root}/requests/{request_id}", headers=auth_headers(), timeout=60, ) response.raise_for_status() return response.json() def download_video(video_url: str, output_path: str) -> Path: output = Path(output_path) with requests.get( video_url, headers=auth_headers(), stream=True, timeout=180 ) as response: response.raise_for_status() with output.open("wb") as file: for chunk in response.iter_content(1024 * 1024): if chunk: file.write(chunk) return output def run_generation(route, request_root, payload, output_path): request_id = submit_generation(route, payload) wait_for_completion(request_root, request_id) result = get_result(request_root, request_id) video_url = result.get("video", {}).get("url") if not video_url: raise RuntimeError(f"No video URL in result: {result}") download_video(video_url, output_path) return result Step 1: Explore the concept with LTX 2.5 Fast campaign_prompt = """ A premium matte black portable speaker on a weathered stone ledge above a misty alpine lake at sunrise. Slow cinematic push-in. Subtle wind moves the grass. Realistic premium advertising style. No text, logos, duplicate products, warped geometry, or abrupt motion. """.strip() ltx_root = "/providers/falai/lightricks/ltx-2.5" concept_result = run_generation( route=f"{ltx_root}/text-to-video/fast", request_root=ltx_root, payload={ "model": DEPLOYMENTS["ltx_fast"], "prompt": campaign_prompt, "duration": 6, "resolution": "720p", "aspect_ratio": "16:9", }, output_path="northstar_concept_ltx_fast.mp4", ) Step 2: Animate the approved hero image HERO_IMAGE_URL = "https://your-domain.example/northstar-hero.png" hero_result = run_generation( route=f"{ltx_root}/image-to-video/pro", request_root=ltx_root, payload={ "model": DEPLOYMENTS["ltx_pro"], "prompt": ( "Preserve the product design. Add a slow stable camera push, " "subtle drifting mist, and gentle grass movement. No text or cuts." ), "image_url": HERO_IMAGE_URL, "duration": 8, "resolution": "1080p", "aspect_ratio": "16:9", }, output_path="northstar_hero_ltx_pro.mp4", ) Step 3: Test a cinematic alternative with Kling v3 Pro kling_root = "/providers/falai/kling/v3/pro" kling_result = run_generation( route=f"{kling_root}/text-to-video", request_root=kling_root, payload={ "model": DEPLOYMENTS["kling_pro"], "prompt": campaign_prompt, "duration": 6, "aspect_ratio": "16:9", }, output_path="northstar_kling_v3_pro.mp4", ) Step 4: Add reference context with MiniMax H3 Max minimax_root = "/providers/falai/minimax/h3-max" reference_result = run_generation( route=f"{minimax_root}/reference-to-video", request_root=minimax_root, payload={ "model": DEPLOYMENTS["minimax_h3"], "prompt": ( "Preserve the product appearance and follow the visual pacing " "and audio mood of the supplied references. No text or logos." ), "references": [ {"type": "image", "url": "https://your-domain.example/hero.png"}, {"type": "video", "url": "https://your-domain.example/motion.mp4"}, {"type": "audio", "url": "https://your-domain.example/audio.wav"}, ], "duration": 8, "resolution": "768P", }, output_path="northstar_reference_minimax_h3.mp4", ) Display outputs in the notebook from IPython.display import Video, display for path in [ "northstar_concept_ltx_fast.mp4", "northstar_hero_ltx_pro.mp4", "northstar_kling_v3_pro.mp4", "northstar_reference_minimax_h3.mp4", ]: print(path) display(Video(path, embed=True, width=720)) Evaluate and operationalize the workflow Prompt adherence: subject, setting, camera direction, and exclusions. Identity and geometry: product consistency and physical plausibility. Temporal consistency: stable motion, lighting, reflections, and boundaries. Aesthetic fit: alignment with the intended campaign style. Operational fit: latency, supported resolution, duration, region, quota, and cost. Production considerations Use bounded retries with exponential backoff for transient failures. Persist the request ID and last-known job state so polling can resume. Do not log tokens, signed URLs, or sensitive prompts. Move completed outputs to application-controlled storage before temporary links expire. Keep payload construction in model-specific adapters because schemas differ. Managed identity for hosted applications Language: Python from azure.identity import DefaultAzureCredential credential = DefaultAzureCredential() token = credential.get_token( "https://cognitiveservices.azure.com/.default" ).token Troubleshooting 401 or 403: verify token scope, project role, and preview registration. 404: verify the provider, version, model, and modality path. 400: validate every payload field against the selected model schema. Queued job: continue bounded polling and confirm quota and capacity. Unreadable input: verify that the HTTPS asset URL is reachable and unexpired. Missing video URL: inspect the sanitized result and update model-specific parsing. Build around the creative goal The application does not need to be designed around one model. Start with fast text-to-video exploration, move to image-to-video when the composition is approved, and add references when the creative direction needs more context. The companion notebook provides a practical starting point for adapting the prompts, assets, routes, and generation parameters to your own scenario. Conclusion Generative video workflows don't need to be built around a single model or generation technique. With fal models on Microsoft Foundry, you can choose the model and modality that best fit each stage of your application, from quickly exploring ideas with text-to-video to bringing existing visuals to life with image-to-video and adding greater creative direction with reference inputs. In this walkthrough, we showed how those capabilities can come together in a practical, multi-model workflow using Python and Jupyter Notebook. Use the companion notebook to try the examples yourself, experiment with different models and prompts, and adapt the workflow to your own creative scenarios. Appendix API routes for fal video models Each fal model exposes a route for its supported video generation modalities. Replace {FOUNDRY_RESOURCE_NAME} with the name of your Microsoft Foundry resource. Model Modality API route Kling v3 Pro Text-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/kling/v3/pro/text-to-video Kling v3 Pro Image-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/kling/v3/pro/image-to-video LTX 2.5 Fast Text-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/lightricks/ltx-2.5/text-to-video/fast LTX 2.5 Fast Image-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/lightricks/ltx-2.5/image-to-video/fast LTX 2.5 Pro Text-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/lightricks/ltx-2.5/text-to-video/pro LTX 2.5 Pro Image-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/lightricks/ltx-2.5/image-to-video/pro MiniMax H3 Max Text-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/minimax/h3-max/text-to-video MiniMax H3 Max Image-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/minimax/h3-max/image-to-video MiniMax H3 Max Reference-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/minimax/h3-max/reference-to-video MiniMax H3 Max Turbo Text-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/minimax/h3-max-turbo/text-to-video MiniMax H3 Max Turbo Image-to-video https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/minimax/h3-max-turbo/image-to-video Asynchronous request routes After submitting a generation request, the service returns a request_id. Use that identifier to monitor and retrieve the generation job. Operation HTTP method Route pattern Submit a generation request POST {BASE_URL}/{MODALITY} Check request status GET {BASE_URL}/requests/{REQUEST_ID}/status Retrieve the completed result GET {BASE_URL}/requests/{REQUEST_ID} Download the generated video GET Use the URL returned in video.url For example, a MiniMax H3 Max text-to-video request uses the following URLs: Submit: {BASE_URL}/text-to-video Check status: {BASE_URL}/requests/{REQUEST_ID}/status Retrieve result: {BASE_URL}/requests/{REQUEST_ID} Where BASE_URL is: https://{FOUNDRY_RESOURCE_NAME}.services.ai.azure.com/providers/falai/minimax/h3-max Video generation is asynchronous, so the initial request does not return the completed video. Retrieve the completed result, extract the generated video location from the response, and download or process the asset using the authorization requirements returned or documented for that model. Resources Microsoft Learn: Fal models on Microsoft Foundry (preview) GitHub Samples: https://aka.ms/model-releases172Views0likes0CommentsHosted agents in your own virtual network: five checks when the Agents page times out
Over the last few weeks I have worked with several teams moving hosted agents into their own virtual network. Different industries, same five questions. This post answers each one with the commands I use to check it.116Views0likes0CommentsLet the LLM Judge, Let Code Do the Math: Using a Rubric to Size Work Consistently
Introduction Many AI workflows end with the same request: "Give this item a score." A priority, a risk level, a quality grade. The model reads something, and you need a number or a label back. Take support ticket triage. Tickets arrive all day, and each one needs an urgency level so the right ones are handled first. The obvious move is to give the ticket to a model and ask, "Rate the urgency of this ticket from 1 to 5." It works in a demo. It falls apart in production. This post covers why, what we replaced it with, and what we got out of it. The Problem: A Number From a Model Is a Number You Can't Defend When we asked a model for a score directly, we hit the same issues repeatedly: Inconsistency. The same ticket could score a 3 on one run and a 5 on the next. Two near-identical tickets could land on different urgency levels with no clear reason. No explanation. "It's a 4" is not an answer a reviewer can challenge. There was no way to see which aspect of the ticket drove the number. Hidden arithmetic. Models are not reliable calculators. Asking one to weigh several factors and apply thresholds inside a prompt is arithmetic in disguise, and small prompt edits shifted results unpredictably. Nothing to tune. If urgency ran too high for a certain kind of ticket, the only lever was to rewrite the prompt and hope. Every change risked side effects elsewhere. No way to measure improvement. A single opaque number is hard to compare against what an experienced agent would say, so we couldn't tell whether a change made things better or worse. The root cause is that we asked one component to do two jobs at once: make a judgment about the ticket and turn that judgment into a number. Models are good at the first and unreliable at the second. The Idea: Separate Judgment From Math We split the two jobs: The LLM only answers a checklist. A fixed list of binary Yes/No questions about the ticket, plus a short rationale. Code computes the score. Counting, bucketing, weighting, and mapping to a final level all happen deterministically, outside the model. The model never sees a score, a weight, or a threshold, and it must not return one. If it does, that's a contract violation. This pattern is often called a checklist evaluation (CheckEval). It sits underneath a more familiar idea, the rubric: a set of weighted dimensions that together describe what you are scoring. Where Rubrics Come From: Microsoft Foundry Rubric Evaluators We didn't invent the rubric idea. Microsoft Foundry ships rubric evaluators, which score an agent or model response against custom criteria (called dimensions) using an LLM as the judge. Their purpose is to let you define what "good" means for your use case and apply that judgment consistently. The core concepts line up closely with what we built: Foundry rubric concept How we used it Dimensions: custom criteria, each with a description and a weight Our scoring dimensions and their weights 1–5 rating per dimension, combined as a weighted average The same shape: per-dimension 1–5 scores and a weighted aggregate Pass/fail checklist mode for quality rubrics The inspiration for our binary Yes/No questions Editable, versioned rubrics: adjust descriptions, weights, and thresholds, and save changes as new versions Our versioned config, tuned without code changes Rubric health diagnostics that surface overlapping or low-coverage criteria The same concern as keeping dimensions independent Continuous evaluation against live traffic Our reference-free check on live results Foundry's quality rubrics report either a 1–5 rating per dimension, which it normalizes to 0.0–1.0, or a pass/fail checklist. We combine the two ideas: a binary checklist under each dimension whose Yes-count becomes the 1–5 score, with all arithmetic done in code. The model still acts as the judge, but only on questions a person can verify. Two ways to use this in practice: As the scoring mechanism itself. Define your dimensions and weights in a rubric and let the judge rate them. As the evaluation layer. Keep your own deterministic scoring, and use a rubric evaluator to check whether the judge's answers and final scores match your team's standards. Microsoft's guidance is also a good starting point for authoring: generate a rubric from your context to get a grounded baseline, then refine it by hand until its scores match your team's judgment. How the Rubric Works 1. Pick a few independent dimensions A rubric breaks the thing you care about into dimensions. Each should capture something different, with no overlap. For ticket urgency, we might use three: Dimension What it measures Example weight Impact How much is affected: users, revenue, data 0.40 Severity How badly it is broken: outage, data loss, workaround available or not 0.40 Time pressure How soon it matters: deadlines, SLAs, escalations 0.20 Keeping dimensions separate matters. A rare bug that corrupts data and a minor glitch that affects every user are both "urgent", for different reasons. A single "how urgent?" question blurs that distinction. 2. Ask binary questions for each dimension Each dimension gets a short list of Yes/No questions. For example: Impact: Does it affect more than one customer? Does it affect a paid or critical account? Does it block a core workflow? Severity: Is the service unavailable or failing outright? Is there data loss or corruption? Is there no workaround? Time pressure: Is an SLA about to be breached? Has the customer escalated? Is there a hard deadline mentioned? Binary questions are the key design choice. A model asked "rate the severity from 1 to 5" will drift. A model asked "is there data loss or corruption?" has a narrow, checkable job. A human can look at the answer and say right or wrong. 3. Turn answers into scores with plain arithmetic For each dimension, count the "Yes" answers and map the count to a score: dimensionScore = (number of "Yes" answers) + 1 → 1 to 5 Then combine the dimensions with a weighted average: aggregate = Σ ( weight × dimensionScore ) → 1 to 5 Because the weights add up to 1, the aggregate stays on the same scale as the dimension scores. Cutoffs then map the aggregate to a level such as Low, Normal, High, Urgent, Critical. 4. Map the level to whatever you need downstream The level is a neutral, shared currency. A final, configurable step translates it into what the consumer needs: a queue, a response-time target, or an escalation. The top level can also trigger something special, such as paging an on-call engineer or routing to a human for review, instead of being treated as just another number. Guardrails on the Model The judging model runs under strict rules: Temperature 0 and structured output. The response is a JSON object with Booleans and a short rationale per dimension, nothing else. Answer only the questions provided. It can't add, drop, or rename questions. No numbers. It must never return scores, levels, or weights. Ground every answer in the provided context. If the ticket doesn't support a "Yes", the answer is "No". Treating absence of evidence as No keeps the model from over-claiming and keeps scores reproducible. Batch where possible. Scoring several items per call, with all dimensions at once, reduces cost and helps the model answer similar items consistently. Everything Lives in Config The dimensions, questions, weights, score buckets, thresholds, and final mappings live in one versioned configuration file, not in code or in the prompt. Variants can override just the parts that differ: for example, a billing queue might add a question or weigh time pressure more heavily. That turned scoring from a prompt-engineering problem into a tuning problem. Changing how a dimension counts is a small config change that can be reviewed, versioned, and rolled back. Every Score Leaves an Audit Trail For every scored item we keep: the checklist answers and the rationale for each dimension the per-dimension scores the aggregate and the level the final output the version of the rubric that produced it When someone asks "why did this ticket get a 4?", the answer is concrete: these questions were answered Yes, here is the rationale, here is the arithmetic, and here is the rubric version. Evaluating the Judge, Not Just the Output Because the math is deterministic, the only thing that can go wrong is the judgment: a question answered incorrectly. A wrong "Yes" silently inflates a score. So that is what we evaluate: Answer correctness. Did the judge answer each question correctly for this ticket? Score correctness. Does the resulting level agree with what an experienced agent would say? This can run in two modes: a lightweight, reference-free check that grades the grader on live traffic and flags low-confidence results for human review, and a reference-based batch run against a dataset of expert-labeled examples. The batch run tracks answer accuracy, score error, level agreement, and determinism across repeated runs. When a disagreement shows up, the structure tells you which knob to turn: Symptom What to fix A checklist answer is wrong Reword the question or refine the judge's prompt Answers are right but the final score is off Adjust the buckets, weights, or thresholds in config A systematic gap Capture the case as new labeled data Every fix is a versioned config or prompt change, re-validated by the batch evaluation before release. How It Helped Consistency. The same ticket gets the same checklist answers, and the same answers always produce the same score. The variability is confined to a narrow, checkable yes/no step. Explainability. Every score traces back to specific answers and a short rationale. Reviewers can challenge a single question rather than an entire result. Tunability. Weights and thresholds are config. You can calibrate against expert judgment without redeploying code or rewriting prompts. Measurability. Structured output compares directly against labeled data, so you can tell whether a change helped. Reuse. The same approach works for other scoring problems, such as risk, quality, or lead priority. Only the questions and final mapping change. Safer failure modes. Defaulting to "No" without evidence, flagging low-confidence answers, and routing the top level to a human push errors toward visible, reviewable outcomes instead of silent ones. References Rubric evaluators in Microsoft Foundry: overview of rubric types, scoring, versioning, diagnostics, and continuous evaluation Quality rubric evaluators: weighted 1–5 dimensions and pass/fail checklists259Views7likes0CommentsMicrosoft Retriever 1 brings sub-second agentic retrieval to Foundry IQ
Microsoft Retriever 1 is an agentic search model trained by Microsoft and now in preview in Foundry IQ. It cuts typical knowledge base retrieval latency by more than 6x, raises search evidence recall by 8–11 points, and lets agents use a third fewer input tokens. It needs no provisioning or reindexing.1.2KViews1like3CommentsAutonomous AI Cyberattacks: Architecting Cyber Defense with Azure
Attackers do not need a new vulnerability to change the economics of cyber defense. They can use AI agents to compare patches, identify likely weaknesses, generate candidate exploits, test them, and repeat the loop at machine speed. A recent NDTV report highlighted Google Threat Intelligence Group’s (GTIG) November 2026 finding that threat actors were using large language model (LLM) frameworks to automate vulnerability discovery and exploitation without a human in the loop [1][2]. GTIG also identified an important limitation: many autonomous offensive frameworks currently trade stealth for velocity, producing forensic traffic and recognizable traces [1]. That combination changes the defender’s job. The patch window gets shorter, alert volume rises, and an incident can move from reconnaissance to impact before a manual queue catches up. But speed is not the same as invincibility. Noisy automation creates behavior that defenders can correlate, prioritize, and contain — if the defensive system is designed to reason and act safely at the same tempo. This article proposes an Autonomous Cyber Defense Framework (ACDF): a conceptual, human-governed architecture that combines Microsoft Sentinel, Microsoft Defender XDR, Microsoft Security Copilot, Microsoft Entra, Azure-native automation, and optional custom agents built with Microsoft Foundry Agent Service. ACDF is not a Microsoft product or an official Microsoft framework. It is a reference pattern for deciding where autonomy helps, where deterministic policy must take control, and where a human must approve the next step. Key takeaways Use agents to accelerate investigation and recommendation, not to grant open-ended production authority. Keep authorization and high-impact decisions outside the language model. Separate read, reason, decide, and act into independently governed stages. Start with simulated telemetry and measure both security value and unsafe-action risk. Why autonomous attacks require a different control loop Traditional security operations often follow a human-paced sequence: collect an alert, enrich it, assign it, investigate it, decide on containment, and execute a playbook. An autonomous attacker can run an Observe-Orient-Decide-Act loop continuously across many targets. It can branch, retry, and adapt based on tool output. The underlying techniques are often familiar: stolen credentials, exposed services, unpatched software, weak authorization, and lateral movement. The change is operational compression. GTIG describes automated patch-differential analysis and n-day exploitation pipelines that reduce the time between disclosure and weaponization. It also cautions that AI-generated exploit claims can fail, creating extra verification work for defenders [1]. A useful defensive response is therefore not “let an AI fight an AI.” It is a faster, evidence-driven control loop: Observe: collect endpoint, identity, cloud, network, application, and threat-intelligence signals. Orient: correlate events into an incident and establish asset, identity, and business context. Decide: score risk through deterministic policy, supported by agent-generated analysis and evidence. Act: execute only an allowlisted, least-privileged response appropriate to the risk tier. Learn: record the decision, approval, action, outcome, and analyst feedback for evaluation. The architecture must assume that telemetry, retrieved documents, emails, web content, and even messages from another agent can be hostile. A prompt injection hidden inside a log field should never become an instruction to isolate a device or disable an identity. ACDF: a governed autonomous-defense architecture Figure 1. Proposed ACDF reference architecture. AI can enrich and recommend, while a deterministic policy decision point and human approval gates control consequential actions. 1. Signal and context plane The first layer collects normalized security signals. Microsoft Defender XDR can contribute cross-domain endpoint, identity, email, application, and cloud-app evidence. Microsoft Sentinel can add broader SIEM data, analytics, incidents, and threat hunting. Microsoft Defender for Cloud can contribute cloud workload posture and alerts; Microsoft Entra supplies identity and access context; Azure Monitor and application telemetry add service-level evidence. Coverage matters more than model sophistication. Missing identity logs, stale asset ownership, or incomplete endpoint onboarding can cause a sophisticated agent to produce a precise answer to the wrong question. Before adding agents, validate data freshness, retention, entity mapping, and the ownership of critical assets. 2. Correlation and detection plane Use native detections, behavioral analytics, advanced hunting, and incident correlation to reduce raw events into evidence-backed cases. Microsoft Sentinel data can be used with Security Copilot, and unified incidents in the Microsoft Defender portal can bring Sentinel and Defender XDR context together [3][10]. The Microsoft Sentinel and natural-language-to-KQL plugins described in the Security Copilot integration documentation are in preview, and not all Microsoft Sentinel tables are supported. Advanced hunting with Microsoft Sentinel data also has documented limitations, so generated queries and coverage must be validated before operational use [3][10]. This layer should retain deterministic detections for conditions that must be explainable and repeatable. Agents can propose hunts, summarize evidence, and identify gaps, but a model output is not itself a detection verdict. 3. Agentic analysis plane Use the most managed capability that fits the task. Microsoft Security Copilot and its agents in Microsoft Defender support security workflows such as alert triage, threat intelligence, hunting, and risk analysis [4][5]. Check the current product documentation before deployment: the broader Security Alert Triage Agent coverage includes preview capabilities, and the Security Analyst Agent documentation contains a prerelease notice. For a custom scenario that is not covered by an existing security agent, Microsoft Foundry Agent Service can provide Microsoft Entra identity, managed tools and toolboxes, tracing, and evaluation capabilities [6]. A practical separation of duties is: Intelligence agent: summarizes public advisories and maps them to the organization’s technology inventory. Investigation agent: gathers read-only evidence for an incident and identifies competing hypotheses. Risk agent: proposes a score with citations to the evidence it used. Response planner: selects only from an allowlisted catalog of playbooks and explains prerequisites. These agents should not share a single broad identity. Give each agent the minimum data scope and tools it needs. Treat every inter-agent message as untrusted input and preserve provenance. 4. Policy decision point The policy decision point is deliberately outside the LLM. It combines stable facts — incident severity, asset criticality, identity privilege, confidence, blast radius, action reversibility, change window, and regulatory constraints — into an action tier. A simple policy can be expressed as four levels: Table 1. Proposed ACDF action tiers and execution rules Tier Example outcome Execution rule 0 - Observe Add context, open an incident, notify an analyst May run automatically 1 - Low-impact Increase logging, collect a diagnostic package, add a temporary tag Automatic only when allowlisted and reversible 2 - Contain Isolate one endpoint, revoke one session, block one indicator temporarily Named analyst approval; consider two-person approval for privileged assets 3 - High-impact Disable a privileged identity, remove production access, modify a firewall broadly, delete data No autonomous execution; follow incident command and change-control procedures Risk thresholds must be versioned configuration, not prompt text. The policy engine should fail closed when evidence is missing, conflicting, stale, or outside the evaluated operating range. 5. Controlled action plane Microsoft Sentinel automation rules and playbooks based on Azure Logic Apps can provide a governed response mechanism [7]. Each playbook should have a narrow purpose, a managed identity or other approved authentication method, an explicit resource scope, a timeout, an idempotency key, a rollback path, and structured audit output. The agent does not receive a generic “run command” tool. It can request collect_diagnostics , temporarily_block_indicator , or isolate_single_device , each with a typed schema and preconditions. The policy service reauthorizes every action at execution time. This helps reduce confused-deputy risk and prevents an old approval from being reused against a different resource. 6. Evidence, observability, and learning plane Store a tamper-evident decision record containing the incident ID, evidence references, model and prompt version, policy version, tool request, approver, action result, rollback state, and analyst feedback. Foundry Agent Service supports tracing and evaluation for custom agents [6]; native Microsoft security experiences provide their own evidence and activity views. Do not train directly on every analyst click. A rushed approval, a false positive, or attacker-poisoned telemetry can become a persistent failure pattern. Curate feedback, separate evaluation data from production memory, and require review before changing prompts, policies, or action permissions. Guardrails that matter more than the model The most important controls are architectural: Separate read from write. Investigation agents should be read-only. A distinct action service performs mutations after policy evaluation. Authorize every action. Recheck user, agent, resource, purpose, and policy at execution time — not only when a session starts. Use least privilege and just-in-time access. Use Microsoft Entra role-based access controls and Privileged Identity Management where applicable. Avoid standing administrative credentials. Allowlist tools and parameters. Block arbitrary shell, browser, query, or code execution in the response path unless it is isolated and explicitly required. Require approval for consequence. Human approval is mandatory for high-impact, irreversible, externally visible, privacy-sensitive, or legally significant actions. Limit blast radius. Set maximum affected identities, devices, subscriptions, duration, calls, tokens, and cost per run. Treat context as data, not instructions. Sanitize untrusted fields, isolate system instructions, and do not let retrieved content redefine the agent’s policy. Design for rollback. Temporary blocks should expire; device isolation should have a tested release path; repeated requests should be idempotent. Log enough to reconstruct the decision. Capture evidence and rationale without copying unnecessary secrets or personal data into prompts or long-lived memory. Provide a kill switch. Security operations must be able to suspend an agent, revoke its identity, and disable playbooks independently. These controls align with Microsoft’s AI agent shared responsibility guidance: customers remain accountable for data, identity, authorization, human oversight, and governance, even when using a managed agent platform [8]. OWASP guidance similarly emphasizes least privilege, human approval for high-impact actions, input validation, memory protection, logging, and emergency shutdown [14]. Safe proof of concept: score simulated telemetry and request approval The following Python example is intentionally benign. It does not scan systems, generate exploits, or invoke a live security API. It scores synthetic observations, selects a recommendation from an allowlist, and emits an approval request. Use it to test the control boundary before connecting any production data. from __future__ import annotations from dataclasses import asdict, dataclass from typing import Literal import json import re import uuid Action = Literal[ "no_action", "observe", "collect_diagnostics", "isolate_single_device", ] Status = Literal["evaluated", "rejected"] POLICY_VERSION = "acdf-lab-v1" @dataclass(frozen=True) class SyntheticObservation: incident_id: str device_id: str failed_signins_10m: int privileged_identity: bool unusual_process: bool outbound_spike: bool asset_criticality: int # 1=low, 2=medium, 3=high @dataclass(frozen=True) class Decision: decision_id: str policy_version: str status: Status score: int | None recommendation: Action requires_action_approval: bool requires_human_review: bool evidence: tuple[str, ...] validation_errors: tuple[str, ...] def validate(obs: SyntheticObservation) -> tuple[str, ...]: """Reject malformed or out-of-scope inputs before scoring.""" errors: list[str] = [] if not re.fullmatch(r"SIM-[0-9]{4,8}", obs.incident_id): errors.append("incident_id must be a synthetic SIM identifier") if not re.fullmatch(r"LAB-DEVICE-[0-9]{2,4}", obs.device_id): errors.append("device_id must identify an approved lab device") if type(obs.failed_signins_10m) is not int or not 0 <= obs.failed_signins_10m <= 10_000: errors.append("failed_signins_10m must be an integer from 0 to 10000") if type(obs.privileged_identity) is not bool: errors.append("privileged_identity must be boolean") if type(obs.unusual_process) is not bool: errors.append("unusual_process must be boolean") if type(obs.outbound_spike) is not bool: errors.append("outbound_spike must be boolean") if type(obs.asset_criticality) is not int or obs.asset_criticality not in {1, 2, 3}: errors.append("asset_criticality must be 1, 2, or 3") return tuple(errors) def evaluate(obs: SyntheticObservation) -> Decision: errors = validate(obs) if errors: # Fail closed: reject the record and propose no action. return Decision( decision_id=str(uuid.uuid4()), policy_version=POLICY_VERSION, status="rejected", score=None, recommendation="no_action", requires_action_approval=False, requires_human_review=True, evidence=(), validation_errors=errors, ) score = 0 evidence: list[str] = [] if obs.failed_signins_10m >= 20: score += 20 evidence.append("failed_signins_10m>=20") if obs.privileged_identity: score += 25 evidence.append("privileged_identity") if obs.unusual_process: score += 25 evidence.append("unusual_process") if obs.outbound_spike: score += 20 evidence.append("outbound_spike") score += {1: 0, 2: 5, 3: 10}[obs.asset_criticality] if score >= 70: action: Action = "isolate_single_device" elif score >= 35: action = "collect_diagnostics" else: action = "observe" consequential = action == "isolate_single_device" return Decision( decision_id=str(uuid.uuid4()), policy_version=POLICY_VERSION, status="evaluated", score=score, recommendation=action, requires_action_approval=consequential, requires_human_review=consequential, evidence=tuple(evidence), validation_errors=(), ) sample = SyntheticObservation( incident_id="SIM-0042", device_id="LAB-DEVICE-07", failed_signins_10m=24, privileged_identity=False, unusual_process=True, outbound_spike=True, asset_criticality=2, ) invalid_sample = SyntheticObservation( incident_id="PROD-0042", # Rejected: outside this synthetic lab scope. device_id="SERVER-01", failed_signins_10m=-1, privileged_identity=False, unusual_process=False, outbound_spike=False, asset_criticality=9, ) valid_decision = evaluate(sample) rejected_decision = evaluate(invalid_sample) assert valid_decision.recommendation == "isolate_single_device" assert valid_decision.requires_action_approval is True assert rejected_decision.status == "rejected" assert rejected_decision.recommendation == "no_action" print(json.dumps(asdict(valid_decision), indent=2)) print(json.dumps(asdict(rejected_decision), indent=2)) The key design choice is not the score. It is the boundary: the program creates a recommendation and evidence record, but it has no credential and no function that can isolate a device. Malformed or out-of-scope input is rejected with no_action and routed for review. A separate approval and action service would validate the request again, re-check current policy and authorization, bind the approval to the exact action and lab resource, enforce an expiry, and then invoke a narrowly scoped playbook. To extend the lab safely: Replace the single sample with version-controlled synthetic JSON Lines files. Add unit tests for thresholds, missing fields, duplicate requests, expired approvals, and rollback. Mock the playbook endpoint; return deterministic success, failure, timeout, and partial-completion responses. Add a read-only agent that explains the deterministic decision, then test whether hostile text inside a telemetry field can alter the proposed action. Never use real customer data, production credentials, malware, exploit code, or internet scanning in the experiment. Evaluate the system without inventing success Do not claim that an agent “reduces response time” or “improves accuracy” until the system has been evaluated against a documented baseline. A reproducible evaluation can compare three modes on the same labeled, synthetic scenario set: Rules only: deterministic scoring and static playbook selection. Agent assisted: an agent enriches and explains; policy still decides. Agent plus governed action: low-risk actions can run; consequential actions require approval. Record the dataset version, scenario families, label owner, product configuration, model version, prompts, policy version, run count, and randomization settings. Measure: Table 2. Reproducible evaluation metrics Metric Definition Detection precision and recall Correct suspicious classifications relative to the labeled set Alert-to-decision latency Time from final synthetic event to a complete recommendation Unsafe-action proposal rate Proposals that violate the action policy divided by all proposals Approval override rate Approved recommendations that analysts change or reject Evidence completeness Required evidence fields present and traceable to source records Idempotency pass rate Repeated requests produce no duplicate side effect Rollback success rate Reversible actions restored within the test objective Cost per evaluated incident Model, compute, and automation cost for each completed case Define gates before running the test. For example, any Tier 3 autonomous action, cross-tenant data exposure, policy bypass, or unlogged tool call should fail the release. Report confidence intervals or raw counts, not only percentages, and publish negative cases. An agent that is faster but proposes unsafe containment is not an improvement. Operational rollout: earn autonomy in stages A production journey should expand authority only after evidence supports it: Shadow: the agent reads copied or synthetic data and produces recommendations that no one acts on. Assist: analysts can inspect evidence and manually launch existing playbooks. Approve: the system creates a typed action request; an authorized analyst approves it. Bounded autonomy: only reversible Tier 0 or Tier 1 actions run automatically within strict scope and volume limits. Continuous assurance: red-team prompt injection, poisoned telemetry, permission drift, model changes, tool failures, and rollback every release cycle. Keep emergency response outside the experimental agent path. If the agent is unavailable or produces conflicting evidence, analysts must retain access to the native Microsoft Defender and Microsoft Sentinel workflows. Limitations and design boundaries ACDF does not eliminate cyber risk, replace patch management, or guarantee containment. Its effectiveness depends on telemetry quality, identity hygiene, asset context, well-tested playbooks, supported product capabilities, licensing, region, and operational maturity. Some Microsoft security agent capabilities and Security Copilot integrations are in preview and can change. Not all Microsoft Sentinel tables are supported in every Copilot or advanced-hunting path. Verify current documentation, permissions, query behavior, licensing, regional availability, and support boundaries before production use [3][4][5][10]. Language models can hallucinate, overgeneralize, follow malicious instructions embedded in context, or vary between runs. Deterministic policy reduces these risks but cannot compensate for incorrect labels, missing logs, compromised administrators, or an overly permissive action catalog. Legal, privacy, employee-monitoring, customer-contract, and regulatory obligations may also restrict what data an agent can process and which actions it may recommend or execute. Finally, autonomous defense should not become a reason to normalize autonomous disruption. The objective is controlled speed: faster evidence gathering, better prioritization, and narrowly governed response with clear accountability. Start with one bounded control loop Choose one high-volume, low-consequence security workflow. Build a synthetic scenario set, define an allowlisted action catalog, and separate the agent from the policy and action services. Connect read-only evidence first. Then run the evaluation until you can explain every decision, reproduce every result, and roll back every permitted action. If you already use Microsoft Defender XDR and Microsoft Sentinel, start by exploring their unified incidents, advanced hunting, Security Copilot integration, and documented agents. Treat preview capabilities and generated queries as inputs for validation, not as automatic authority. Use Microsoft Foundry Agent Service only when a custom agent is justified, and keep the action boundary outside the model. Autonomous attackers compress time. Defenders can respond by compressing analysis — without compressing governance. References Google Threat Intelligence Group, GTIG AI Threat Tracker: Agentic Threat Activity Crosses a Significant Threshold, November 16, 2026. NDTV, Google Warns 'Era Of Autonomous AI Attacks Has Arrived', November 18, 2026. Microsoft Learn, Security Copilot with Microsoft Sentinel. Microsoft Learn, Deploy AI agents in Microsoft Defender. Microsoft Learn, Microsoft Security Copilot Security Analyst Agent overview. Microsoft Learn, Agents in Microsoft Foundry. Microsoft Learn, Azure Logic Apps for Microsoft Sentinel playbooks. Microsoft Learn, AI agent shared responsibility model. Microsoft Learn, What is Privileged Identity Management?. Microsoft Learn, Advanced hunting with Microsoft Sentinel data in Microsoft Defender. NIST, Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, NIST AI 600-1. NIST, The NIST Cybersecurity Framework (CSF) 2.0. MITRE, ATLAS: Adversarial Threat Landscape for Artificial-Intelligence Systems. OWASP Cheat Sheet Series, AI Agent Security Cheat Sheet.404Views2likes1CommentGulf Air's Continuous Improvement Journey with Microsoft Foundry
On November 9, Gulf Air reached a milestone: two AI agents in its Falcon Eye application—a voice agent and a chat agent—went live for users. The milestone did not come from finding one perfect prompt. Gulf Air had spent weeks building a demanding pool of evaluation questions, studying traces, finding gaps, changing instructions and code, and testing again. Ahmed reported that the team generated approximately 10,000 candidate questions across different business perspectives, then ran selected questions in smaller batches to exercise real aviation and management logic. Ahmed AbdulJalil Ebrahim described the impact plainly: " What evaluation, insights, and optimize did for us was really amazing. We were able to fix business logic the agent had not understood." For us, the important part of this story is not that one tool produced one answer. It is that Gulf Air assembled a repeatable improvement practice around the hard questions its business would actually ask. The application had to do more than retrieve an answer Falcon Eye is an important Gulf Air application used for operational analysis and management decision support. Ahmed described a five-agent vision spanning UI summaries, smart search, dynamic reporting, real-time voice, and a reasoning chat experience. These agents connect to operational data through APIs and a Postgres MCP. They can analyze information, perform calculations, and help users create reports or dashboards. That makes them useful, but it also raises the quality bar. A simple factual test cannot establish whether an agent: selected the right operational field for the user's question; followed an aviation-specific rule; generated an appropriate query; performed a calculation correctly; preserved the user's data permissions; or remained reliable when the same intent appeared in a different form. For senior leaders asking operational or financial questions, a fluent answer is not enough. The reasoning path and the business result both matter. Gulf Air built an evaluation pool around the hardest business questions Ahmed described this generated question pool as covering multiple business perspectives. He emphasized that these were not only straightforward questions such as total departures or delays. They were intended to test the business logic that had been difficult to express through a system prompt alone. The team selected questions from that pool and generally ran them in batches of 100. The evaluation results separated successful answers, failures, no-answers, and errors. Gulf Air then examined the resulting traces and insights, brought the evidence into VS Code with its engineering context, implemented changes, and evaluated again. The loop looked like this: Run difficult evaluation questions -> inspect failures, no-answers, and errors -> review generated insights and supporting traces -> bring the evidence into the coding workflow -> change instructions, tools, or application logic -> test candidate improvements -> add independent human review -> run evaluation again Human review was a deliberate part of the process. Other team members approached the agent differently and documented issues that the original test design had missed. Their findings became new inputs to the next improvement cycle. Immediately before our November 9 conversation, Ahmed had completed another 400-question run and applied additional fixes. This was not a one-time benchmark. It was an operating rhythm. Evidence became useful when it entered the engineering workflow The workflow did not stop at an evaluation score or a list of traces. Gulf Air used the evidence to decide what to change. Insights from traces helped group recurring behaviors and connect them with representative executions. VS Code supplied the surrounding engineering context: code, APIs, MCP access, reports, and prior findings. The team could then investigate whether an issue came from instructions, tool behavior, application logic, or the test itself. This distinction matters. An insight can identify a pattern and point to a likely direction, but it is not automatically a validated fix. Gulf Air still reviewed the evidence, implemented the change in the appropriate system, and ran the agent again. That developer-led pattern is also central to the latest Microsoft Foundry experience: Scheduled and on-demand analysis can process new traces incrementally after the initial lookback. Linked and highlighted traces let developers inspect the evidence behind an insight. Custom categories and additional instructions help focus future analysis on business-specific concerns. A proposed change can be copied into a coding workflow when the issue belongs in code or application configuration. For eligible instruction or tool-description issues, developers can use fix insights and create an agent optimizer run. The handoff is important, but so is its boundary: a proposed fix is a starting point for validation, not an automatic production change. From a selected insight to an evaluated candidate From the Insights tab, a developer can choose Select insights, select the relevant insights, and choose Fix insights to create an optimization run. Foundry uses the selected evidence to prepare supported replay scenarios, proposes candidate changes, and compares them with the current agent version as the baseline. The goal is not to accept whichever candidate has the highest single score. Developers can inspect: which selected issues improved; the candidate's actual instruction or tool-description changes; per-scenario and overall evaluation results; quality comparisons with the baseline; token usage and estimated cost; latency; and whether independent conversations were available to check for broader regressions. Sometimes the responsible result is still the baseline. A candidate might fix one failure while regressing elsewhere, the evaluator might find the result inconclusive, or the available evidence might be too narrow. The developer reviews those trade-offs and explicitly decides whether to promote a candidate. Nothing in this workflow automatically changes the active agent. Human review, promotion, testing, and production activation remain separate decisions. Gulf Air assembled this handoff manually. The new select-insights-to-fix experience is designed to shorten part of that journey by carrying verified insight evidence into a controlled optimization run. Confidence was the business outcome The value of this work was not a single score or a one-time test. Each evaluation cycle produced reusable evidence - failure cases, traces, human-reviewed findings, and proposed changes that the team could carry into the next iteration. Validation became part of the engineering workflow rather than a final checkpoint before launch. The business outcome was confidence. Ahmed described the workflow as giving Gulf Air a level of confidence in its agents that the team had not achieved before. He also reported that Gulf Air management was impressed by the voice and chat-agent demonstration on launch day. From Gulf Air: what changed for our team “The agent refinement experience changed the way we approach agent AI development at Gulf Air. Instead of relying on individual tests or continually adjusting prompts, we can systematically challenge our agents with thousands of real business questions, understand where they struggle, and use evaluation, traces and insights to identify the underlying issues. This approach helps us refine how agents understand complex aviation business logic and gives our teams greater confidence in the agents we move into production. More importantly, it establishes a continuous development cycle where real-world usage and evaluation drive the next improvement.” Five lessons for teams moving agents into production Gulf Air's experience suggests five practical lessons. 1. Build the evaluation set around business difficulty Start with the questions your business struggles to encode, not only the questions your agent already answers well. Include ambiguity, calculations, tool use, permissions, and domain rules. 2. Use insights to find patterns beyond predefined evaluations Evaluations test the requirements a team already knows how to define. Insights can look across production traces for recurring behavior the team did not anticipate, bring related executions together, and show representative evidence. Custom categories and additional instructions can focus that analysis on business-specific concerns. Developers still review the cited traces and compare the finding with business expectations before deciding that an issue is real. 3. Turn recurring guidance into a reusable skill When a verified issue reflects guidance the agent should apply across many future interactions, repeatedly tuning prompts might not be enough. A versioned skill can capture that learning in a form the team can review, evaluate, and deliberately adopt. Not every issue belongs in a skill. Code defects, tool-description problems, data-quality issues, and platform failures still need to go to the workflow that owns the responsible layer. 4. Compare trade-offs, not only quality scores A candidate can improve one behavior while using more tokens, adding latency, or regressing on normal conversations. Compare candidates with the baseline and inspect the underlying evaluation cases. 5. Keep production changes explicit Continuous analysis can discover new patterns, and optimization can test candidates. Neither should remove the developer's responsibility to review evidence, approve changes, and test the promoted version before sending production traffic to it. The next chapter: keep learning after launch Production is not the end of the evaluation set. It is where new evidence begins. Real users ask questions in ways a development team did not anticipate. Data changes, tools evolve, and a response that works for one scenario can fail at the edge of another. The opportunity is to turn those new production behaviors into the next round of learning without losing the controls that made the launch possible. For Gulf Air and other enterprises building complex agents, that means establishing a repeatable rhythm: Observe new behavior in production traces. Verify the pattern against representative evidence and business expectations. Turn confirmed failures into evaluation coverage. Test candidate changes against the current baseline. Compare quality, latency, and cost rather than optimizing one measure in isolation. Promote a change only after human review, then watch the new version under real traffic. This is the larger promise of continuous improvement in Microsoft Foundry. Insights from production traces can help teams discover what deserves attention. Evaluation makes expected behavior testable. Agent optimizer can compare possible improvements. Developers remain responsible for deciding what is correct, what is safe, and what should reach production. The next milestone is not an agent that changes itself without oversight. It is a controlled learning system in which production evidence, business context, evaluation, and human decisions reinforce one another. For Gulf Air, the first milestone is already real: difficult questions became evidence, evidence became engineering work, and that work helped two agents reach production with greater confidence.225Views0likes0CommentsFinOps in Microsoft Foundry: see your token spend, hit your quality bar for less, and set limits
An end-to-end walkthrough of FinOps for AI in Microsoft Foundry: plan what an agent should cost, see where the spend goes, find out why it changed, hit your quality bar for less, and set limits.1.1KViews0likes0CommentsVoice agents in Microsoft Foundry Agent Service now generally available
People want to talk to AI as naturally as they talk to each other, with instant responses in their preferred language and voices that sounds Human-like. For organizations, this opens a new way to serve customers, with conversations that feel personal at any scale. Voice agents in Microsoft Foundry Agent Service, now generally available, give teams one enterprise-grade platform to build, deploy, operate and continuously improve those experiences. Over the past year, Microsoft has made significant strides in bringing this vision to life. At Ignite 2025, Voice Live API became generally available, giving developers a unified API for natural, real-time voice conversations with any AI agent. At Build 2026, we introduced Voice Live integration with Microsoft Foundry prompt agents and hosted agents, making it easier to build voice-enabled AI experiences. Today’s release brings together advanced speech capabilities and comprehensive agent lifecycle management in a unified, enterprise-grade platform. Developers can now build, deploy, operate, and continuously optimize intelligent, speech-to-speech conversational agents, accelerating the journey from prototype to production. We're also announcing significant advancements to Speech in Microsoft Foundry: more accurate speech recognition, more natural and expressive voices, and expanded choices across languages, voices, and avatars. Together, these innovations empower organizations to create richer, more human-like voice experiences for customers around the world. Voice agents in Microsoft Foundry Agent Service Voice agents in Microsoft Foundry Agent Service are now generally available. It's an enterprise-grade platform for developers to build Speech to speech conversational voice agents by providing the leading Speech capabilities and supporting the full agent's lifecycle — from building and deployment to operations and continuous optimization. The general availability of voice agents in Microsoft Foundry Agent Service introduces a comprehensive set of capabilities designed to help developers build more natural, intelligent, and reliable voice experiences, while simplifying development and operations at enterprise scale. End-to-end voice agent lifecycle management Going beyond model APIs, Voice Agent builds on the Microsoft Foundry agent platform to help developers build, deploy, and operate enterprise-ready voice agents through a unified platform. Build and connect: Developers can create voice agents in minutes, connect them to enterprise knowledge through Foundry IQ, and integrate with rich tools through server-side MCP and client-side function calling, apply guardrails to help keep conversations safe and aligned with business policies, with private-network support for supported enterprise resources and integrations—helping teams control access to sensitive systems and data. Observe, evaluate, and improve: Built-in voice-native tracing, monitoring, and evaluation make conversations inspectable and quality measurable. For example, if a customer experiences a slow response during a billing inquiry, developers can inspect the turn-by-turn trace to determine whether the delay came from speech recognition, the model, a billing-system tool call, or speech synthesis—and replay the conversation when transcript and audio capture are enabled. Connect to existing channels with easy setup: Deploy voice agents on the web using audio or text input / output or connect them to existing telephony and contact-center infrastructure—including Teams Phone, Twilio, and Genesys—without rebuilding your customer experience. Bring AI-powered conversations to the channels customers already use, while managing agents through a unified platform. More natural, expressive, and intelligent voice conversations Deliver engaging, real-time conversations with greater flexibility in speech models and voices. Expanded choice of speech-to-speech models: Alongside existing GPT Realtime models, we’re introducing new options for more natural voice conversations, giving enterprises greater flexibility to balance conversational experience, agentic capabilities, and cost. GPT Live 1: Delivers full-duplex, highly natural, fluid conversations—from follow-up questions to complex, multi-step requests. Beyond delegating to specialized models, it can route tasks to Foundry prompt agents, and hosted agents across agent platforms, bringing their specialized knowledge, tools, and workflows into the conversation without breaking its flow. This lets enterprises combine an engaging voice experience with agents that handle work behind the scenes, for experiences where conversational richness and task completion both matter. Microsoft Realtime Flash 1: Combines low-cost serving with competitive conversational quality and agentic capabilities across typical voice-agent domains, including customer support, appointment scheduling, and routine service requests. It supports experiences where agents need to understand customer intent, sustain a natural conversation, and use tools to take action—not simply answer questions. Its cost-efficient approach helps enterprises move beyond small pilots toward the economics required for millions of calls per day, keeping operating costs manageable as adoption grows. The model is now in preview with Voice Live Lite tier pricing, offering an affordable path to scaling voice automation. Below is our internal test result on τ³-Voice benchmark. Microsoft Realtime Flash 1 achieved the highest reported average score in internal testing: 70.9 versus GPT-realtime-2.1’s 63.7—a 7.2-point improvement. Gains were strongest in telecom (+16.6 points) and retail (+3.5 points), while airline performance was lower (−6.0 points). Against GPT-realtime-2.1-Mini, the average improved by 39.2 points. More expressive voices: New HD V3 voices bring natural, real-time speech with greater expressiveness, optimized for customer service scenarios. Expanded language coverage includes English, Chinese, Filipino, Indonesian, Malay, and Indic languages. Developers can also control speaking styles and expressions using simple instruction tags, without learning complex markup languages. Enhanced conversation quality: Improved noise suppression helps voice agents stay focused on the primary speaker, reducing interference from television audio and background voices. Combined with more accurate turn-taking and end-of-speech detection, azure_semantic_vad v2 helps distinguish genuine interruptions from brief acknowledgments and speech directed at others—reducing unnecessary interruptions and premature responses for smoother, more natural full-duplex conversations than previous version. Below table reports our test results on Full-Duplex-Bench v1.5, a public benchmark that tests how a voice model behaves when someone else talks while it is speaking. Each column is the share of test cases where the model did the right thing (0 to 1). The total score is the plain average of the four columns. As you can see, the total score improved from 46.3% to 72.2%, a 25.9-percentage-point gain, with the largest improvements in handling speech directed at others and background voices. Customized voice and avatar experiences Create differentiated, branded experiences through customizable voices and avatars. Organizations can use their own data to develop custom voices that reflect their brand identity. We're also introducing VASA-2 Photo Avatar, which transforms a single photo into a lifelike, upper-body talking avatar. Building on VASA-1, VASA-2 delivers more natural movements and greater control over facial expressions, enabling richer and more engaging visual conversations. Flexible multi-agent orchestration for complex voice agents experiences Voice agents can seamlessly collaborate with Foundry prompt agents and hosted agents through flexible multi-agent patterns. Developers can choose the architecture that best fits their applications: Delegation to sub-agents: Voice agents handle real-time conversations while delegating complex reasoning and specialized tasks to backend agents. This keeps voice interactions responsive and low latency without sacrificing reasoning capabilities. Inline sub-agents: Developers can orchestrate multiple specialized voice agents in a graph-based workflow, each with its own instructions, tools, and voice. Agents can seamlessly transition between tasks during a conversation, improving accuracy, controllability, and cost efficiency. Hosted agents as conversation engines: Voice agents manage real-time speech input and output while communicating with hosted agents through bidirectional text streaming. This allows developers to preserve existing agent logic while adding advanced conversational voice capabilities. Together, these patterns make it easier to build sophisticated voice experiences that combine real-time responsiveness with powerful reasoning and enterprise workflows. Simplified development and enterprise integration Accelerate voice agent development with a streamlined developer experience and ready-to-use integrations. Unified developer tooling: Azure Developer CLI (AZD) and GitHub Copilot support help developers quickly build, test, and deploy voice agents using familiar development workflows. Ready-to-use templates: More than 40 industry-specific agent templates accelerate development across customer support and other business scenarios. Native telephony integration: Built-in Session Initiation Protocol (SIP) support enables voice agents to connect directly with existing contact center and telephony infrastructure, making it easier to bring AI-powered conversations into established customer service workflows. Since the public preview launch, thousands of customers have adopted voice agents across a wide range of scenarios, including customer service, automotive, education, human resources, personal assistants, public services, and more. Hear from customers already building voice agents in Foundry: "As a leading airline, Gulf Air is proud to work with Microsoft to advance how we use AI across our business. Through our collaboration, we have migrated and enhanced our existing voice agents in Microsoft Foundry, bringing voice, enterprise knowledge and intelligent tools together in a more integrated experience. This enables us to innovate faster and deliver even better experiences for our teams and customers." Ahmed AbdulJalil Ebranhim, Manager, Digital Innovation & Process Management, Gulf Air “The Hera companion is a voice agent built on Microsoft Foundry. What began as a proof of concept is now an operational experience. Anyone can talk to Hera: she listens and answers in real time. And she doesn’t just answer, she acts. Ask for a tour, and she turns the spacecraft to show you. Switch to Italian halfway through, and she keeps going. But a great voice isn’t enough; she has to be right. With voice agents in Foundry, Foundry IQ grounding and safety controls come together in one place, so every answer is grounded in ESA’s own mission knowledge and checked against Microsoft’s safety controls and our own rules." Daniele Montemaggiori, IT Cloud Services Architect, European Space Agency (ESA) "We tested multiple AI vendors and voice pipelines, and none delivered the customer experience we wanted. Voice agents in Microsoft Foundry finally made AI calls feel like a conversation instead of a phone tree - callers can interrupt, pause to think and speak naturally, and the agent keeps up. With a regional bank customer, our AI agent now handles 30% of calls from end to end. When a caller needs a person, it hands off to a human expert in Microsoft Teams on the same call, with full context." Matt Landis, CEO & Founder, Landis Technologies What’s new in Speech in Microsoft Foundry - More accurate, natural speech models Beyond powering voice agents described above, customers use Speech in Microsoft Foundry for live captions, meeting and call transcription and translation, voiceover for videos and e-learning, and reading content aloud. At Ignite 2026, we are making it more accurate, more natural and offering more choice across three core capabilities: speech to text, text to speech and avatars, and speech translation. Speech to text: understand more languages, faster and more accurately Speech to text converts streaming and file-based audio into high-quality transcripts for voice agents, live captions, contact center analytics, and meeting transcription. These scenarios increasingly involve many languages, speakers who switch languages mid-conversation, and large volumes of recorded audio. Our latest updates, all now generally available, address these needs across real-time transcription, Fast Transcription, and containers. Real-time transcription now offers native multilingual recognition across 50+ languages, with more on the way, so you no longer have to specify the language up front. Results arrive in about 100 milliseconds, with availability in select regions. Multichannel support transcribes two audio channels, such as agent and customer, separately and detects the language on each. For single-language audio, post-stream refinement now spans all language locales. To learn more, see our latest blogs on multichannel transcription and multilingual transcription. Fast Transcription and LLM Speech are now faster than ever, processing audio at a 100+ speed factor across 100+ multilingual languages, including expanded Indic language support. Mixed-language audio can now be transcribed in a single call. LLM Speech ranks among the leaders on Hugging Face's Open ASR Leaderboard and holds the top spot on the multilingual leaderboard, underscoring its quality across languages. Read more in our latest blog post and on the public documentation. Microsoft AI's MAI-Transcribe-2 is now available as an additional model option. On-Prem Containers now support Fast Transcription, letting you transcribe audio files on-premises with GPU inference through the same API you use in the cloud. Learn more Text to speech (TTS) and TTS avatar: more natural voices, more choice, more lifelike avatars Microsoft text to speech voices and avatars power many scenarios beyond voice agents mentioned in section 1 above. In addition, natural and expressive voices are required for voiceover, e-learning and read-aloud content, and other apps need voices that sound clear and engaging. At Ignite 2026, we are delivering two updates: a better and broader set of Neural HD standard voices, and the new VASA-2 photo avatar. New update for Neural HD standard voices: Besides the Neural HD v3 voices enhancement covered in voice agent scenario, we also extend our Neural HD standard voice offering with the Partner Voices (Public Preview), which brings HD voices built by partners such as DataoceanAI and Telus into Microsoft Foundry. Partner voices give customers more choices to find the right one for both their voice agents and content creation scenarios. Locale Voice Name Sample Script Audio Link En-CA TTS-354-F1 Oh no, I completely understand how that must feel—it can be really frustrating when things don’t go the way you expect. But don’t worry, you’re not alone. I’ll be with you every step of the way and make sure we get this sorted out quickly. Let’s take it one step at a time, okay? Ko-KR TTS-038 모두 50대 이상 중년층 고객이 가장 많이 증가한 것으로 나타 났다. Zh-CN TTS-373-F231 哎呀,我不是故意让你失望的!这样吧:如果你想要古怪又有趣、充满笑声的体验,就去看蓝人乐团。如果你想要令人惊叹又充满魔力的表演,太阳马戏团是最佳选择。两者都会让你的第一次约会难忘,所以无论选择哪一个都不会错。 New VASA-2 photo avatar (Public Preview): Avatar brings a face to voice agent and empowers content creation scenarios such as marketing video or training materials. VASA-2 photo avatar is specially designed to enrich the voice agent experience to be more engaged and personal. In Ignite 2026, we bring VASA-2 turns a single photo into a lifelike, upper-body talking avatar, an important upgrade from the talking head of VASA-1. It also moves more naturally and gives you more control over facial expressions to fit your scenario. Learn more. Speech translation: talk across languages in your own voice Language should not stand between people. Live Interpreter API, our real-time speech-to-speech translation service, now runs on a new LLM-based model that translates speech while people are still talking. Breakthrough translation quality: 30% fewer translation errors than the previous production model. Fast response: Translates end to end in under 3 seconds, on par with professional human interpreters. Your voice in every language: With Personal Voice, Live Interpreter API keeps the speaker's voice, style and tone in each language, so conversations feel natural and personal. Learn more Customers are already using Live Interpreter for contact center agent assist, on phones and smart devices such as earbuds and AI glasses, and in international meetings. Get started today Build voice agents: Getting started only takes a few steps: Open the Microsoft Foundry portal go to Build, Agents and New agent, select “Voice”. Choose a voice-optimized model and configure your agent's instructions. Connect knowledge sources and tools as needed for your scenario. Test conversations directly in the built-in voice playground. Deploy to your desired channels and monitor performance using built-in observability and evaluation capabilities. Explore Speech in Microsoft Foundry. Use the Speech playgrounds in Microsoft Foundry Portal to try Speech transcription, voices, avatars and Speech translation. When you’re ready to integrate speech into an application, start with the Speech SDK and Speech in Microsoft Foundry documentation.1.1KViews0likes0CommentsFoundry IQ: now managed for you in every Foundry project
Foundry IQ: Now managed for you in every Foundry project Building AI agents that can answer questions from your documents just got simpler. Today we're announcing that every Microsoft Foundry project will include a managed Foundry IQ resource. Create knowledge bases and ground agents directly from your project, with no separate Foundry IQ (Azure AI Search) service to provision or manage. With a managed Foundry IQ resource, it's easier to connect your agent to a knowledge base and activate market-leading agentic retrieval, ingestion, content security, indexing, and source connections within your Foundry agent-building experience. You choose the content; Foundry IQ manages the underlying grounding infrastructure. Request access to the Foundry Managed Knowledge preview. We're starting with limited preview access and plan to roll out managed Foundry IQ to all Microsoft Foundry projects in December 2026. How it works Start with an eligible project and permissions to create a knowledge base and access the content you want to use. Step 1: Open Knowledge in your Foundry project and select Create a knowledge base. In the configuration pane, use the Managed by Foundry resource and enter a name for your knowledge base. Step 2: Select Upload files to add your files as a knowledge source. Foundry IQ processes the uploaded content and prepares it for retrieval through a searchable index. Once the knowledge source status changes to Active, save the knowledge base. You can also connect a knowledge source supported by the managed preview. For supported file formats, upload limits, and processing details, see Create a file knowledge source. Find evidence across documents with agentic retrieval With model-based query planning enabled, Foundry IQ can break a complex question into focused searches, run them in parallel, and bring the relevant passages together for the agent. For example, asking "How do our Q3 sales in Europe compare with our Q2 forecast?" may require retrieving actual sales results, forecast assumptions, and regional performance data from different documents. Foundry IQ can plan and execute focused searches across those sources to gather the evidence needed for a grounded response. Source references let users check where the answer came from. Learn how agentic retrieval works. Use microsoft-retriever-1 out of the box for fast, low-cost retrieval, or bring your own supported model to tune the trade-off between latency, cost, and answer quality. Different workloads may benefit from different models depending on query complexity, retrieval requirements, and performance goals. Ground your agent and test its answers From the saved knowledge base, select Add to an agent. In the agent playground, ask a question that draws on multiple files and open a citation to check that the source supports the answer. Then try a question answered by one document and another the documents can't answer. For the latter, check that the agent acknowledges the gap. Choose how to run Foundry IQ Use a managed Foundry IQ resource when you want to create a knowledge base in your project and have Foundry manage the search infrastructure. Bring your own Foundry IQ (Azure AI Search) resource when you want to reuse existing search indexes or indexing pipelines, define custom index schemas, or control the search resource configuration directly. Supported knowledge sources and configuration options vary by setup. Get started Request access to private preview and try grounding an agent with a set of documents you know well. Additional resources: Open Microsoft Foundry Explore Azure AI Search knowledge sources Connect a knowledge base backed by your own Azure AI Search resource to Foundry Agent Service Use the Foundry IQ skill with an AI coding agent See Azure AI Search pricing for bring-your-own resources573Views0likes0Comments