azure ai
149 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-releases177Views0likes0CommentsAutonomous 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.414Views2likes1CommentGulf 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.225Views0likes0CommentsClaude Code on Microsoft Foundry with Claude apps gateway and UI Console
Deploy Anthropic's Claude apps gateway on Azure Container Apps in front of Claude models in Microsoft Foundry: Entra sign-in for developers, no model keys on laptops, and an admin console for spend caps, access and chargeback.569Views0likes0CommentsFoundry IQ SharePoint (indexed) knowledge source is now generally available
At Ignite, the SharePoint (indexed) knowledge source in Foundry IQ is generally available. It brings SharePoint document libraries, lists, and pages into agent grounding, with SharePoint permissions applied at retrieval time. Semantic chunking, image descriptions, document-level access controls, private ingestion, and cross-tenant customer-managed keys are also now GA.1KViews0likes0CommentsKnowledge graphs in Foundry IQ improve evidence recall with fewer tokens
Knowledge graphs in Foundry IQ, now in public preview, add two capabilities. Entities answered 93.5% of structured queries correctly versus 26.1% for RAG, using 64% fewer tokens. Topics improved evidence recall on thematic questions by up to 13.2 points over vector search.3.2KViews3likes0CommentsFoundry IQ: Introducing knowledge graphs, engineered for agents
Your applications already help people find business information by keyword, field and facet. Agents use that same information to get work done: checking a policy in SharePoint, finding a supplier contract, or working out which products a new regulation affects. Retrieving the right information from your business data takes expertise and the right building blocks. Without them, agents repeatedly search for and piece together the same facts and relationships, adding time and cost. Foundry IQ helps developers connect unstructured business content to agents. Today we’re announcing grounding in SharePoint documents with permissions enforced, knowledge graphs that connect facts across those documents, and a specialized retrieval model that plans each search. Together, they are built to get an agent to the right answer in fewer searches. Foundry IQ is part of Microsoft IQ Platform, the enterprise context management system that captures, governs and reuses the business context your apps and agents need. Microsoft IQ brings together four sources of context: Work IQ for how people work, Fabric IQ for governed business data, Web IQ for the web, and Foundry IQ for your unstructured data. What’s new Today we’re announcing the following capabilities in Foundry IQ: Knowledge graphs, public preview: Map entities during indexing using your ontology, or bring an existing graph, then query connections in natural language or GQL with source citations. Get started with the Foundry IQ plugin. SharePoint knowledge source with permissions, generally available: Index your SharePoint content into Foundry IQ, and each agent sees only what the person using it can see with user Entra group and SharePoint site group permissions. Foundry IQ Serverless, generally available in December 2026: Usage-based pricing that scales to zero when idle, with nothing to size up front and no commitments. General availability adds a production SLA, higher limits and more regions. Microsoft Retriever 1, public preview: A specialized retrieval model inside Foundry IQ, built to plan each search at lower cost, with no frontier model to deploy for the retrieval plan. Knowledge graphs: connect the dots across your documents Knowledge graphs in Foundry IQ give agents two ways to understand your business: entities connect the facts across your documents, and topics organize your content by theme. As it indexes your documents, Foundry IQ uses your ontology to map how your documents, contacts and information relate. It records the source of every connection. Entities connect facts that sit in different documents, and each connection keeps its source. Topics organize the same content by theme for broad questions. Topics answer the broad questions, such as which themes run across every contract. Flag a question as broad, and retrieval draws on the whole collection. Knowledge graphs are available in public preview: Entities: Add a graph configuration with your ontology to a knowledge source you already use, or bring a graph you already have. Query through the knowledge base in natural language, or the graph directly in GQL. There’s no graph database to build and no second pipeline to run. Topics: Topics and subtopics identified automatically from your existing embeddings, with no ontology required, and organized into a sitemap of your corpus. Topics can also propose a candidate ontology for you to review. Install the Foundry IQ plugin to get started with knowledge graphs. Microsoft Discovery grounds R&D workflows with Foundry IQ Knowledge graphs in Foundry IQ are a key component of Bookshelf, the knowledge experience in Microsoft Discovery. With Foundry IQ integration, Discovery customers can now leverage a wider variety of data sources, such as SharePoint and Work IQ, to ground their R&D workflows with high-quality scientific reasoning. John Link, Partner Product Manager, Microsoft Discovery & Quantum Find the answer in fewer steps Every search an agent runs is a tool call you pay for in tokens. An agent without your knowledge in reach searches, then searches again. Foundry IQ plans each search for the agent, and it’s built to get agents to the right answer in fewer searches. Grounding your agents is simpler, too. Foundry IQ is built into every new Foundry project, powered by serverless, so you can connect your enterprise knowledge and start building grounded agents without provisioning or managing a separate resource. Microsoft Retriever 1, public preview: Built to plan each search at lower cost. It runs on your existing index, with no frontier model to deploy for the retrieval plan. Foundry IQ built into every new Foundry project, public preview in December 2026: It’s now easier to ground agents with your documents, using a managed Foundry IQ resource provided in every Foundry project. Foundry IQ handles retrieval and indexing, while Foundry sets up and manages the underlying service for you. Foundry IQ Serverless, generally available in December 2026: Usage-based pricing that scales to zero when idle, with nothing to size up front and no commitments. General availability adds a production SLA, higher limits and more regions. Sign up to get started with a managed Foundry IQ resource. Connect to your enterprise content ecosystem Your knowledge is distributed across various source in different formats. Foundry IQ brings it to your agents in Foundry, Microsoft IQ and third party agents, while honoring document and access permissions. Your sources Work IQ SharePoint knowledge source, generally available: Index your SharePoint content through the Microsoft 365 indexer, with its permissions enforced at query time. More knowledge sources, generally available: Azure SQL Database and file upload knowledge sources are generally available, Fabric IQ semantic models and OneLake shortcuts and mirrored items are public preview. Semantic chunking and image descriptions, generally available: Azure Document Intelligence and Content Understanding in Foundry split documents by meaning and make the images in them searchable. Your permissions Source permissions, generally available: Foundry IQ enforces SharePoint user, Entra group and site group permissions, ADLS Gen2 ACLs and RBAC, and Azure Blob container-level RBAC under the caller’s identity, for supported and configured sources. The same controls apply when the knowledge base is reached over MCP. OneLake item-level permissions, public preview: Results from OneLake respect each item’s permissions under the caller’s identity. Purview sensitivity-label enforcement, public preview: Label policy is evaluated when the agent reads, and the call fails closed when policy can’t be verified. OneStream empowers finance teams with better work context and Foundry IQ Frontier Finance teams are rethinking their decisioning and workflows around AI, and they need to work in Excel, Copilot, and other tools of choice to do that, without giving up governance or auditability. Our integration with Foundry IQ means Finance teams have greater work context to their AI answers, while still being grounded in the financial intelligence from OneStream that make those answers auditable and contextualized. Together with Microsoft, we’re unlocking powerful, purpose-built AI that works where Finance teams work, and that creates answers a CFO can stand behind. Tom Shea, Founder and CEO, OneStream Innovating with Microsoft Foundry Here’s how customers are using Foundry IQ to ground their agents in their own business knowledge. McKinsey & Company grounds their AI operating system with Foundry IQ and Fabric IQ AI needs more than access to data. AI needs to understand how a business works. McKinsey’s EcliptOS platform brings together Microsoft Fabric IQ and Microsoft Foundry IQ to connect business data with enterprise knowledge. We build on that foundation with McKinsey’s industry expertise, codified into impact recipes, and our transformation capabilities to turn business context into persistent business value. Brian Elliott, McKinsey Senior Partner and Co-Lead of EcliptOS, McKinsey & Company Rockwell Automation powers troubleshooting assistant with Foundry IQ When a machine goes down on the night shift, our technicians can’t always reach an expert, so the answer they get has to be one they can trust. With Foundry IQ, our troubleshooting assistant draws on each plant’s own manuals, historical downtime records and expert insights, and links every step to its source. When the evidence isn’t there, it says so instead of guessing. That’s what gives our people the confidence to act. Simon Lee, Senior Manufacturing Engineer, Rockwell Automation Get started today The easiest way to explore is through the Microsoft Foundry portal. Read the documentation and get started with the Foundry IQ plugin. Watch Foundry IQ's Microsoft Ignite 2026 sessions in person or on-demand: BRK297 - The shift from RAG to context: Grounding agents with Foundry IQ BRK307 - Foundry IQ: Knowledge graphs for better enterprise context BRK300 - Building agentic retrieval: From DIY to Foundry IQ INV641 - Harnessing your IQ with a continuously improving agent platform3.8KViews3likes0CommentsBring Your Own Telephony to Voice Agents via SIP
Voice agents in Microsoft Foundry give developers an integrated way to build intelligent, natural voice experiences, bringing together models, agent capabilities, tools, and the platform capabilities needed to move from experimentation to production. Foundry continuously expands channel integration options to serve different organizational needs. Voice agents in Microsoft Foundry and Voice Live API now support Session Initiation Protocol (SIP), allowing phone calls to reach AI voice agents directly through SIP trunks. This enables low-latency voice interactions while letting you continue using your existing contact center telephony infrastructure. What is SIP - SIP (Session Initiation Protocol) is an industry-standard signaling protocol for establishing, managing, and terminating real-time communication sessions. It is widely used in IP telephony, including enterprise and contact center environments. Why voice agents need SIP for contact center telephony - Enterprise telephony and contact center environments commonly use SIP-based PBXs, session border controllers (SBCs), and carrier trunks. SIP enables voice agents to integrate with this existing telephony infrastructure for call signaling, routing, and media negotiation. Direct SIP vs. Customer-managed Audio Bridge - Direct SIP connects voice agents with existing telephony and contact center infrastructure through standard SIP interfaces. In comparison, a customer-managed audio bridge requires customers to build and operate an intermediary layer to relay real-time audio between their telephony infrastructure and the voice agent, typically over WebSocket or WebRTC. This adds integration complexity, potential latency, and operational overhead. Direct SIP significantly simplifies the architecture by eliminating the need for this intermediary audio layer. Understand the call flow: Caller (inbound) -> telephony provider or enterprise telephony system -> SIP trunk or SBC -> Foundry SIP endpoint -> telephony binding -> voice agent Get started with voice agents in Microsoft Foundry Getting started only takes a few steps: Open the Microsoft Foundry portal and create a new agent, select Voice as the agent type. Choose a voice-optimized model and configure your agent's instructions. Connect knowledge sources and tools as needed for your scenario. Test your agent directly in the built-in voice playground. Go to Channels tab -> Phone numbers -> Direct SIP. Add your SIP trunk connection using the same credentials provided by your SIP trunk provider, then bind the connection to the voice agent for inbound calls. (For outbound calls, no binding is required; configure the SIP connection through the SDK or REST API when placing a call). Copy the SIP binding URL and configure it with your SIP trunk provider to route calls to your voice agent. Make a test call, then monitor performance using built-in observability and evaluation capabilities. Learn More Introducing voice agents in Microsoft Foundry | Microsoft Community Hub Quickstart: Create a voice-based prompt agent - Microsoft Foundry | Microsoft Learn How-to: Connect a voice agent to telephony via SIP - Microsoft Foundry | Microsoft Learn How-to: Connect voice live API to telephony via SIP - Foundry Tools | Microsoft Learn599Views0likes0CommentsWhen the Answer Isn’t in the Document: Metadata-Aware Agentic RAG with Foundry IQ
The problem SharePoint libraries often contain years of carefully curated metadata, including root cause, severity, business unit, document type, owner and classification. If that metadata never reaches the retrieval pipeline, however, a RAG system cannot use it. This creates a common blind spot: the information that explains what a document is about may exist in its metadata rather than its text. Consider an incident review containing this statement: “Investigation found that a DNS record was repointed during a migration while the old target was still serving writes.” The associated Root Cause Category is Configuration change, but those words do not appear in the document. Another review might mention that a configuration change was suspected and ruled out. Text-only retrieval can therefore favour the wrong document. In the sample dataset used for this project, none of the 19 reviews classified as configuration-change incidents contained the word “configuration”, while six reviews with other root causes did. Metadata does not improve every search. It helps when the information that determines what a document is lives outside the document text. Why tuning alone cannot fix it With a native SharePoint knowledge source, document text is extracted, chunked and embedded, while standard properties are retained. Custom SharePoint columns are not part of that ingestion path. Fields such as Root Cause Category, Contributing Factors, Detection Method and Severity therefore never become structured fields available to retrieval. If the metadata is absent from the index, search tuning cannot make it count. Flattening all metadata into a single text string is also problematic: Notification Service | Sev2 | Configuration change | Missing runbook This preserves the words but loses their meaning. A root cause, severity and contributing factor represent different concepts and should remain separate fields. Bring a custom Azure AI Search index The approach is to create and control a custom Azure AI Search index, then expose it to Foundry IQ as a searchIndex knowledge source. This combines metadata control with agentic query planning and a governed retrieval surface. Approach Metadata control Agentic planning Native SharePoint knowledge source No Yes Custom index queried directly Yes No Custom index as a knowledge source Yes Yes Architecture The key design principle is simple: every chunk carries its parent document's metadata. Figure 1. Metadata-aware retrieval architecture with Azure AI Search and Foundry IQ. The ingestion pipeline extracts a document, creates chunks, attaches document-level metadata to every chunk, generates embeddings and writes the records to Azure AI Search. Foundry IQ then uses the index as a knowledge source. Azure AI Search holds the metadata. Foundry IQ decides when to use it. Figure 2. Detailed implementation view, including the baseline and metadata-aware retrieval paths. At query time, the search service calls the configured models for vectorisation and query planning. Where key authentication is disabled, the search service's managed identity needs the required access. In the tested implementation, the Cognitive Services User role resolved HTTP 401 responses from retrieve requests. Put metadata on every chunk A chunk can only be retrieved and ranked using information available on that chunk. Each metadata property should therefore remain in its own field: { "id": "doc1035-000", "parentId": "doc1035", "title": "Notification Service: failed sign-ins", "content": "<extracted review text>", "rootCauseCategory": "Configuration change", "contributingFactors": "Missing runbook; Change outside window", "detectionMethod": "Customer report", "severity": "Sev2" } A separate metadata index does not solve the same problem because a match against metadata in one index cannot raise the ranking of a content chunk in another. What influences retrieval Four areas matter in this design: Search fields: searchFields determine which fields generated subqueries search. Semantic configuration: prioritised fields give the semantic reranker access to important metadata. Query hints: hints help the planner connect natural-language requests to known metadata values. Filters: a baseFilter or request-level filterAddOn can enforce constraints. Boost hints influence ranking without excluding documents. Filter hints can narrow the result set when the planner determines that a filter is appropriate. "queryHints": { "boosts": [{ "kind": "fieldValue", "field": "rootCauseCategory", "fieldValues": ["Configuration change", "Capacity", "Software defect", "Dependency failure", "Certificate expiry"], "boost": 3.0, "boostInstructions": "Boost when the user describes what caused an incident." }] } Hints are best effort. Hard requirements should use a base filter or document-level access control rather than relying on the planner to select a hint. The tested configuration used the 2026-08-01-preview API. Current documentation should be checked for supported models, limits and behaviour before implementation. Why can't vector search or semantic ranking solve this? This is probably the most obvious question: if embeddings understand meaning, and semantic ranking understands context, why do we need metadata at all? The answer is that vector search and semantic ranking solve a different problem. This approach complements them rather than replacing them. Vector search finds similarity, not recorded facts In a typical RAG pipeline, document chunks are converted into embeddings, numerical representations of their meaning. The user's question is embedded as well, and vector search finds chunks that are close to it in vector space. For example, a passage saying: “The gateway routing rule was updated shortly before the incident.” might rank highly for: “Find incidents caused by configuration changes.” That's useful. But it doesn't necessarily mean Configuration change was the confirmed root cause. The passage could describe an investigation path, a contributing factor, or even something that was later ruled out. Vector similarity is essentially asking: “Does this content mean something similar to what the user is asking about?” Metadata lets us ask a different question: “What was this incident actually classified as?” If the incident review already contains a curated rootCauseCategory = Configuration change field, we should not require an embedding model to rediscover that fact from the prose every time somebody searches. What about semantic ranking? Semantic ranking helps, but at a different stage. In Azure AI Search, semantic ranker applies secondary ranking to an initial result set, using language understanding to promote results that are more semantically relevant to the query. That can help distinguish between: a configuration change that caused an incident a configuration change that was merely investigated a configuration change that was explicitly ruled out But semantic ranking still works with the information supplied to the retrieval pipeline. It cannot make use of a classification stored in a separate metadata field if that field was never supplied to retrieval or ranking in the first place. The difference becomes clearer with a real query Consider: “Show me configuration change incidents that customers reported.” A content-first approach primarily asks: “Does this passage sound relevant to configuration changes and customer reports?” A metadata-aware approach can additionally ask: “Is the recorded root cause Configuration change , and is the recorded detection method Customer report ?” Those signals can influence retrieval in different ways: Boost: favour incidents with those metadata values while still allowing other relevant results. Filter: restrict the candidate set when those classifications represent hard constraints. Retrieval layer Typical content-first RAG Metadata-aware approach Vector search Finds chunks with similar meaning using content embeddings Keeps content embeddings for narrative similarity Searchable fields Primarily searches document content and other configured fields Makes classifications such as root cause and detection method explicit searchable or filterable fields Semantic ranking Reranks the supplied candidate content for relevance Can also benefit from curated text fields when those fields are included and prioritised in the semantic configuration Query planning Translates the question into retrieval over content, optionally with application-defined filters Uses the metadata taxonomy to generate field-specific boosts or filters where appropriate There is an important nuance here: traditional RAG can absolutely use metadata filters and hybrid search. So the contribution here isn't a new embedding algorithm, nor is metadata an alternative to vector search. It is about making structured knowledge a first-class retrieval signal, and wiring that information into candidate retrieval, ranking and Foundry IQ's agentic query planning rather than asking the system to infer every classification from document text. And importantly, in the comparison below, both approaches use the same Azure AI Search index. So the comparison isn't: vector search vs. metadata. It's: content-first retrieval vs. retrieval that can also use the structured information the organisation already knows. Measuring the impact Two knowledge bases were created over the same Azure AI Search index. The baseline searched title and content. The metadata-aware configuration used the same content plus structured metadata, semantic configuration and query hints. Ten questions were run through both configurations. Correctness was determined directly from the metadata attached to returned reviews, rather than by asking an LLM whether a result appeared relevant. For the question “What can be learned from outages caused by configuration changes?”, the planner generated: rootCauseCategory eq 'Configuration change' Matching reports in top 5 Score Baseline 0 Metadata-aware 3 Best possible 5 Across ten questions and four runs using gpt-5.4-mini for query planning, the baseline returned 26 matching reviews in the top five. The metadata-aware configuration returned 39 to 41, against a best possible score of 50. The gains appeared where metadata carried the missing meaning: Configuration changes: 0 → 3 Configuration changes reported by customers: 0 → 3 Capacity in production: 1 → 5 Alert fatigue: 3 → 5 Queries whose important terms already appeared in the document text scored 5/5 in both configurations. The result is therefore more specific than “metadata improves search”: metadata closes a retrieval gap when document text does not fully describe what the document represents. A failure mode worth handling Because query planning uses an LLM, the planner can occasionally generate a filter that the search index rejects. Two invalid examples observed during testing were: severity eq Sev1 changeRelated eq true The first omitted quotes around a string. The second treated an Edm.String field containing Yes and No as a Boolean. The latter caused the retrieve request to fail with HTTP 502. The fix was to make the schema and allowed values explicit: This is a text field, not a Boolean. The only valid values are 'Yes' and 'No'. Never compare the field with true or false. Application code should also handle retrieval failures rather than assuming every generated filter will be valid. Production considerations A custom index provides control, but the solution now owns ingestion. Options include the SharePoint indexer with custom columns, an Azure Function using Microsoft Graph, or an existing pipeline built with Logic Apps, Azure Data Factory or Microsoft Fabric. A custom Azure AI Search index does not automatically inherit the SharePoint permissions model. Where users have different document permissions, ACLs must be carried into ingestion and retrieval. Query hints should also be regenerated when taxonomy values change. Key takeaways Confirm that the required metadata reaches the index. Keep metadata structured rather than flattening it into one text field. Attach parent-document metadata to every chunk. Use search fields, semantic configuration, query hints and filters deliberately. Describe field types and valid values clearly in filter instructions. Evaluate against a baseline using objective correctness rules. Metadata-aware retrieval is not about making every search better. It gives the retrieval system access to context that does not exist in the document text. Try the proof of concept The complete proof of concept, synthetic dataset, index scripts, knowledge-base configurations and A/B evaluation harness are available in the GitHub - shikha-msft/foundryiq-metadata-agentic-rag. References Create a search index knowledge source Create a knowledge base Query a knowledge base via API or MCP What is Foundry IQ?651Views0likes0Comments