BRK425 · Breakout
Secure and manage AI workloads at enterprise scale with AI Gateway
Speakers: Mike Budzynski, Facundo Santiago, Raghu Balam
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Microsoft announced that Azure AI Gateway is generally available in 16 Azure regions, with automatic scaling, private connectivity and a dedicated portal; it mediates calls to models from Microsoft Foundry, AWS Bedrock, Google Vertex and self-hosted models, as well as to MCP servers and SaaS connectors. Demos cover importing Foundry models with Entra RBAC, a GitHub Copilot plugin that discovers gateway assets, registering an MCP server, and diagnosing a 429 error from gateway traces. The session then covers alias-based routing with priorities, session affinity and failover, auto model selection (preview), the policy engine with agent hooks and Agent 365 tool threat protection, and federated MCP servers with Entra on-behalf-of. It closes with the monitoring dashboard, OpenTelemetry, Foundry hub-and-spoke support and Komatsu's results: faster onboarding, self-service quotas and chargeback.
Best for: Platform and security architects who govern model, MCP and agent traffic across providers, including Agent 365 policy enforcement and cost control.
New material starts at 03:56. After the speaker introductions and Komatsu's motivation for a shared AI platform, the GA announcement of Azure AI Gateway starts at 03:56.
Where to skip: Skip to 03:56 for the GA scope. The core is 13:46–35:34: MCP registration with 429 tracing, routing and failover aliases (18:36–25:33), the policy engine with Agent 365 tool threat protection (25:33–31:09) and federated MCP with Entra OBO (31:09). Monitoring at 39:02 is short and useful. The Komatsu segments (02:06, 40:59) and the wrap-up from 44:36 can be skipped.
Chapters (15)
- 00:05 Recap Depth 100 · Novelty 0/3
Session opening, speakers and enterprise risks of fragmented AI adoption
Mike Budzynski opens with a show of hands on AI Gateway familiarity and introduces himself and Facundo Santiago (both product managers on Azure AI Gateway) and Raghu Balam from Komatsu. He describes grassroots AI adoption across fragmented models, tools, agent harnesses and agents as getting out of control. Risks named are security (including AI-led cyberattacks), cost, compliance, data residency, privacy and governance.
- 02:06 Customer story Depth 100 · Novelty 1/3
Komatsu: why a shared enterprise AI platform with AI Gateway at its center
Raghu Balam explains that every Komatsu application team asked the same questions about connecting to models, security, access control and monitoring usage and cost, which did not scale one team at a time. Komatsu therefore built a shared enterprise AI platform with AI Gateway at its center, so every team connects through one governed path with quotas and usage visibility built in. He stresses it is a reusable foundation, not an AI application.
- 03:56 New Depth 200 · Novelty 3/3
Azure AI Gateway GA: scope, automatic scaling, 16 regions, private connectivity
Mike announces Azure AI Gateway is generally available as of the day before. The gateway mediates calls from agents, harnesses, users and apps to AI backends: models from OpenAI/Microsoft Foundry, AWS Bedrock, Google Vertex and self-hosted models, plus MCP servers, REST APIs converted to MCP and SaaS connectors, enabling observability, policies and authentication. It now scales automatically, GA is in 16 Azure regions, and it supports private connectivity (Private Link inbound, VNet integration outbound); a dedicated portal serves platform teams and developers.
- 06:37 Demo Depth 200 · Novelty 2/3
Demo: importing Microsoft Foundry models, aliases, testing and Entra RBAC
In the gateway portal Mike imports Foundry models from several regions (East US, Sweden Central, West US 3), authenticated via managed identity, with aliases created automatically as client-facing model names. He tests GPT 6.1 in the catalog test experience (chat completions, Responses API) with an API key. He then enables Microsoft Entra authentication by assigning himself a data-plane role for all models and tools on the access page and repeats the call successfully with an Entra token.
- 10:25 Demo Depth 200 · Novelty 2/3
Demo: GitHub Copilot plugin discovers gateway assets and builds an on-call agent
Facundo shows a plugin shipped with AI Gateway that lets a coding agent discover gateway assets and manage the gateway. From the portal catalog he copies a suggested prompt into GitHub Copilot that adds the marketplace plugin from the Azure repository and installs it; with an Azure login the agent lists the available models and no MCP servers. He asks Copilot to build an on-call support agent using a GPT-6 model, runs it, and notes it needs tools to be useful.
- 13:46 Demo Depth 300 · Novelty 2/3
Demo: registering an MCP server, testing tools and tracing a 429 error
Facundo adds an incident-commander MCP server to the gateway, noting support for multiple MCP specification versions and backends such as existing MCP servers, OpenAPI specs, APIM/API Center APIs and SaaS connectors. He tests it in the playground (tools like correlate feature flags, get active incidents, get audit logs) and has GitHub Copilot wire it into the agent. When the agent hits a 429, gateway traces show the token rate limit policy passed and the error came from the backend model's quota, exhausted by large tool context.
- 18:36 New Depth 300 · Novelty 2/3
Model routing: aliases, auto model selection preview, priorities, affinity, failover
Mike explains aliases decouple client-facing names from backend models and can front a pool of backends. He announces auto model selection in preview, choosing a model per request based on the prompt and objectives across providers, powered by the Microsoft Foundry router. Further options are priorities and weights (e.g. provisioned vs. global capacity, A/B testing), session affinity for cache reuse, conditional inclusion by request parameters (e.g. European-only deployments) and failover rules.
- 21:18 Demo Depth 300 · Novelty 2/3
Demo: building an advanced alias with priorities, session affinity and failover
Mike creates the alias 'OpenAI latest' pooling GPT 6.1 deployments in Sweden Central, East US and West US 3, with GPT 6 Luna in priority group 1 as failover. He shows the CEL expression for the session affinity key, equal weights in priority group 0, and a failover rule treating 400-600 responses as failures, retrying twice then excluding the backend for 20 seconds. Facundo switches the agent to the alias and the previously failing multi-tool query now completes.
- 25:33 Deep dive Depth 300 · Novelty 2/3
Policy engine: secrets in tool output, policy types, hierarchy and Agent 365
Testing the tail logs tool reveals GitHub tokens and PII in logs reachable by the agent, motivating the gateway as a central policy enforcement point. Facundo lists consumption policies (cost, token, request limits), security and safety policies (API filters, content safety, tool threat protection) and extensibility via agent hooks that run custom code before or after tool calls. Policies apply at gateway, alias or backend level (e.g. a $2,000 cap on GPT 6.1), and with Agent 365 deployed the gateway enforces Agent 365-authored policies such as routing tool calls through Defender or outputs through Purview.
- 29:43 Demo Depth 200 · Novelty 2/3
Demo: Agent 365 tool threat protection blocks leaked secrets
Facundo adds the Agent 365 tool threat protection policy to the MCP server to inherit the checks set by the administrator. He applies it at the intervention point after the tool is invoked and before the result reaches the agent. Rerunning the agent with a question about the latest checkout API logs, the gateway withholds the result, so the agent gets an error and the secret never reaches it.
- 31:09 Demo Depth 300 · Novelty 2/3
Federated MCP servers, tool namespaces and Entra on-behalf-of to backends
Facundo explains that adding many MCP servers consumes context and increases wrong tool selection, so AI Gateway implements federated MCP servers combining multiple backends with per-backend configuration and tool selection. He creates an 'on-call responder' server with the incident backend (with a namespace prefix) and a CRM backend using OAuth with Entra on-behalf-of. He covers three OBO scenarios (users, agents on behalf of users, agents on behalf of themselves) and selects all CRM tools plus only get active incidents and get audit logs.
- 35:34 Demo Depth 300 · Novelty 2/3
Cost controls overview and demo of auto model selection alias
Mike outlines cost control in three steps: monitor and attribute, enforce access and budgets, optimize mainly via model routing, and points to a theater session the next day at 5:30 PM. He creates a customer support alias with auto model selection (objectives balance, quality or cost; callers allowed to override objective and eligible models) over GPT Sol, Luna and DeepSeek, choosing to narrow to the highest priority group before selecting. A simple sentiment prompt is routed to the cheaper Luna model; DeepSeek is also supported.
- 39:02 Deep dive Depth 300 · Novelty 2/3
Monitoring dashboard, OpenTelemetry and Foundry hub-and-spoke integration
Mike shows the monitoring dashboard with estimated spend in dollars, token consumption and cost attribution by alias, backend model, key or Entra user, plus traces detailing backend resolution and auto model selection. The gateway emits metrics, logs and traces via OpenTelemetry to any destination, with the dashboard built in when using Application Insights. For Microsoft Foundry, the recommended hub-and-spoke architecture (hub resource, import to gateway, selective use in team spoke resources) has been extended to support the new Azure AI Gateway.
- 40:59 Customer story Depth 200 · Novelty 1/3
Komatsu results: onboarding, secure access, self-service quotas, chargeback
Raghu compares the gateway to airport security: every app, API or agent goes through one governed path with identity checks, policies, quotas, logging and routing, while model connections stay private and new models are added without rebuilding or lock-in. He lists four benefits: faster onboarding (a team provides app identity, required model and expected usage and gets one endpoint), secure access via one governed API without key sprawl, self-service quota management with alerts and a standard request process, and token-based cost transparency with chargeback to business units.
- 44:36 Closing Depth 100 · Novelty 0/3
Wrap-up: key takeaways and follow-up sessions
Facundo summarizes that AI can scale without losing control: one way for developers to reach models and tools across providers, one place for governance and observability, and visibility into AI spend. He shares a QR code to get started with Azure AI Gateway for free and points to sessions on advanced routing and cost, and on scaling MCP server operationalization.
Announcements (8)
-
Azure AI Gateway
Centralized gateway mediating traffic from agents and applications to models and MCP servers across providers, with policies, observability and authentication.
Speaker’s quote (at 03:56)
„I have an announcement today to make that Azure AI Gateway is now generally available as of yesterday.“
-
Azure AI Gateway automatic scaling
The gateway scales automatically to meet workload demand, removing manual scale-unit management.
Speaker’s quote (at 05:38)
„Azure AI Gateway now supports automated scaling. So gone are the days where you have to manually outscale units.“
-
AI Gateway plugin for coding agents
A plugin that lets a coding agent such as GitHub Copilot discover gateway models and MCP servers and manage the gateway.
Speaker’s quote (at 10:58)
„one of the simplest ways that you have to actually work with AI gateway is by using a plugin that will ship with the product.“
-
Auto model selection in AI Gateway
Automatically selects the model for each request based on the prompt and objectives across providers, powered by the Microsoft Foundry router; stated as being in preview.
Speaker’s quote (at 19:01)
„I'm very happy to announce that currently we support in preview auto model selection in the gateway.“
-
Agent hooks
Extensibility policy that runs custom code at intervention points before or after a tool call and decides whether the gateway lets the request proceed.
Speaker’s quote (at 27:50)
„we have extensive policies, for example, agent hooks, that allow you to specify intervention points, for example, before a tool gets called“
-
Agent 365 policy enforcement in AI Gateway
AI Gateway acts as the enforcement point for policies authored in Agent 365, e.g. checking tool calls with Defender and tool outputs with Purview.
Speaker’s quote (at 28:44)
„if your organization has Agent 365, deploy, the gateway can also act as the policy enforcement point for those policies that are authored in Agent 365.“
-
Federated MCP servers
A single gateway MCP server that aggregates multiple backends, each with its own configuration, exposing only selected tools to agents.
Speaker’s quote (at 31:37)
„This is precisely the reason why in the Azure AI Gateway we implemented federated MCP servers, that allow you to actually create one MCP server“
-
Foundry hub-and-spoke support for Azure AI Gateway
The Microsoft Foundry hub-and-spoke pattern lets teams add gateway models selectively to spoke Foundry resources to build agents.
Speaker’s quote (at 40:23)
„So that functionality has already been extended to support the new Azure AI Gateway.“
Demos (7)
-
A platform team adds Microsoft Foundry models to the gateway and secures invocation with Microsoft Entra instead of API keys.
Steps (7)
- Open the AI Gateway portal and go to the models page.
- Import models from Microsoft Foundry resources in a selected subscription (resources in East US, Sweden Central, West US 3); aliases are created automatically.
- Select a model (GPT 6.1, East US) and open it in the catalog to view details and usage instructions.
- Test the model in the test experience using an API key.
- Go to the access page and add a role assignment for your own identity.
- Choose the data plane permissions preset and grant access to all models and all tools.
- Re-run the test using Microsoft Entra ID authentication and confirm a successful response.
Prerequisites: Azure AI Gateway resource with owner (control plane) permissions; Microsoft Foundry resources with deployed models in a subscription.
-
A developer uses GitHub Copilot with the AI Gateway plugin to discover gateway assets and generate an agent for on-call support engineers.
Steps (6)
- In the gateway portal, open the catalog and copy the suggested 'use your AI coding agent' prompt.
- Paste the prompt into GitHub Copilot; it adds the marketplace plugin from the Azure repository and runs the installation.
- Sign in with your Azure account so the agent can retrieve the gateway assets.
- Review the discovered models (frontier, cost-effective and embedding models) and MCP servers.
- Ask Copilot to build an on-call support agent that uses a GPT-6 model from the gateway.
- Run the generated prompt agent and ask it what it can do.
Prerequisites: GitHub Copilot, an Azure account signed in, and access to the AI Gateway.
-
Give the on-call agent tools by exposing an incident MCP server through the gateway and diagnose a runtime error using gateway traces.
Steps (7)
- In the gateway portal add a new MCP server, give it a name and select the MCP specification version.
- Choose the backend type (existing MCP server URL) and provide API key authentication, then create it.
- Open the MCP server detail page, start the test, connect and list the tools.
- Run the get active incidents tool in the playground.
- Ask GitHub Copilot to update the agent to use the new MCP server and run it in the terminal.
- Ask the agent about active incidents and the source of latency; observe a 429 error.
- Open gateway traces to see that the token rate limit policy passed and the 429 came from the backend model.
Prerequisites: An existing MCP server reachable by URL with an API key; the agent from the previous step.
-
Fix backend quota exhaustion by routing the agent through a multi-region alias with failover.
Steps (6)
- On the models page add an alias named 'OpenAI latest' with auto model selection disabled.
- Select GPT 6.1 deployments in Sweden Central, East US and West US 3 and add GPT 6 Luna.
- Keep the default CEL expression for the session affinity key or customize it.
- Leave the GPT 6.1 models at priority 0, weight 1 and set GPT 6 Luna to priority 1.
- Keep routing options at default and add a failover rule: status 400-600 is a failure, retry twice, exclude the backend for 20 seconds.
- Create the alias, ask GitHub Copilot to switch the agent to 'OpenAI latest' and rerun the latency question.
Prerequisites: Models deployed in multiple regions and imported into the gateway.
-
Prevent secrets in tool output from reaching an agent by enforcing an Agent 365 policy at the gateway.
Steps (4)
- Open the MCP server in the gateway portal and choose add policies.
- Select the Agent 365 tool threat protection policy.
- Set the intervention point to after tool invocation, before the result reaches the agent, and save.
- Rerun the agent asking for the latest checkout API logs and confirm the result is blocked.
Prerequisites: Agent 365 deployed in the organization with tool threat protection checks configured by an administrator.
-
Build a curated MCP server for on-call engineers combining operational and CRM tools, with user identity passed to the CRM.
Steps (4)
- Create a new MCP server named 'on-call responder'.
- Add the incident MCP backend and enable a namespace prefix for its tools.
- Add the CRM MCP backend with OAuth authentication using Entra on-behalf-of and fill in its configuration.
- Configure tools: include all tools from the CRM backend and only get active incidents and get audit logs from the incident backend.
Prerequisites: Two MCP backends; Entra configuration for on-behalf-of access to the CRM MCP server.
-
Reduce cost by letting the gateway pick the most suitable model per prompt for a customer support agent.
Steps (6)
- Add an alias for the customer support agent and enable auto model selection.
- Choose the objective (balance, quality or cost) and allow callers to override the objective and the list of eligible models.
- Select GPT Sol, GPT Luna and DeepSeek models.
- Keep default session affinity and all models in priority group 0.
- In routing options choose to narrow to the highest priority group first, then select the best model; keep failover and create the alias.
- Test with a review sentiment classification prompt and verify the cheaper Luna model answered.
Prerequisites: Models supported by the model selection algorithm imported into the gateway.