NEWS

5 min read

Azure AI Gateway leaves preview and reaches general availability

Azure AI Gateway leaves preview and reaches general availability
Image: Redação iMasters
News
Reading
5 min
Code
1
In short

After three months as a tier within Azure API Management, the gateway becomes an independent product with routing between providers, MCP server federation, and per-user spend budgets. Billing begins in January 2027.

Microsoft announced on November 28, 2026 the general availability of Azure AI Gateway as an independent Azure service, dedicated to governing how applications and agents access AI models and MCP tools. The service entered public preview in August 2026 as a tier within Azure API Management, according to InfoQ's coverage at the time. At that point it ran only in East US 2 and Sweden Central, with no SLA and no published pricing.

With GA, the gateway stops being a tier of API Management and gains its own roadmap, focused solely on AI. According to the Microsoft Learn overview, both services continue to use the same resource provider, Microsoft.ApiManagement, but as different resource types. AI workloads on other API Management SKUs remain supported, and Microsoft documents a migration path from the old AIGateway SKU.

What changes in the architecture

Microsoft's own recommendation is to separate responsibilities: keep business APIs in API Management and route model and tool traffic through AI Gateway. This positions the gateway as a hub in a hub-and-spoke model, with Microsoft Foundry projects acting as spokes that share deployments, including provisioned throughput, and fail over to other Foundry resources or other providers.

On the model side, the gateway sits in front of Microsoft Foundry, Azure OpenAI, OpenAI, Anthropic, Amazon Bedrock, Google Vertex AI, and any OpenAI-compatible endpoint behind custom aliases. Routing accepts priority, weight, or custom conditions, with failover between backends. Applications call the gateway through an OpenAI-compatible API or the Anthropic Messages API, while a cost-and-quality Model Router remains in preview.

For tools, the gateway federates MCP servers and turns OpenAPI specifications, connectors, and API Management's own APIs into MCP tools. Microsoft Agent 365 can discover these servers and apply tool policies that the gateway enforces.

What calling code looks like

In practice, applications keep using the standard SDKs, only swapping the base URL for the gateway endpoint. The first-call lab in the Azure/aigateway repository shows the pattern: the model alias goes into the model field, and a gateway runtime key replaces the direct Foundry credential.

python
import os
from openai import OpenAI

gateway_url = os.environ["AI_GATEWAY_URL"].rstrip("/")
model = os.environ["AI_GATEWAY_MODEL"]

client = OpenAI(
 base_url=f"{gateway_url}/default/models/openai/v1",
 api_key=os.environ["AI_GATEWAY_API_KEY"],
)

response = client.responses.create(model=model, input="Write a one-sentence status update.")
print(f"Responses API: {response.output_text}")

The gateway applies token limits, cost limits, and content safety checks before forwarding the call, and only then swaps the caller's key for a managed identity token toward Foundry.

Public pricing and billing date

Each gateway gets 10,000 free requests per month. Paid billing starts on January 1, 2027, at US$500 per gateway per month for up to 10 million requests, plus US$20 per additional million. The service currently runs in 17 regions, and Microsoft will still publish regional pricing once billing takes effect.

For cost control, the gateway tracks tokens and estimated cost per user, team, application, agent, and provider. Enforced budgets stop new requests once estimated spend reaches the defined limit.

The differentiator, according to those who have tested it

Dan Rios, principal architect at Howden Insurance and Microsoft MVP, deployed the gateway with Bicep against a Foundry model and the Microsoft Learn MCP server. He pointed to the per-caller spend policy as the service's biggest differentiator, noting that API Management's documented policy catalog has no equivalent for monetary budgets.

Rios also found that linking a gateway to a Foundry doesn't block direct calls to Foundry: teams need private endpoints and RBAC to force traffic through the gateway. In the discussion around his Reddit post, he raised the deployment flow as his main reservation:

My only gripe is I use APIOps as my gitops approach and it seems like with AI Gateway I am more limited in that approach to just a bit of IaC and then mostly ClickOps.

Dan Rios, principal architect at Howden Insurance

Other commenters questioned whether a second gateway is really necessary, since Foundry already covers much of the same ground with Azure Policy, RBAC, token quotas, and its own model router:

Why have one gateway (Foundry) when you can have two at much more than twice the price?

Rios replied that a single AI Gateway can serve multiple Foundry accounts, the same way API Management already does today, while acknowledging that the service isn't cheap.

The open question: real-time enforcement

A third commenter focused on a detail that's critical for anyone operating agents that call models in loops:

the per-caller spend policy is the part i'd want to see. does it actually cut a caller off when they pass the limit, or does it only show up in the logs? with agents calling models in loops, a report after the fact is kinda late

Microsoft's announcement and lab describe the budget as enforced before the request reaches the model, although the limit is based on estimated spend, not billed spend. In his analysis of the launch, Darthick Somu recommended starting with a pilot, warning that the gateway doesn't eliminate the need for application-level security checks, downstream authorization, or model evaluation.

What's still left for later

Private Link for inbound calls, VNet integration for private backends, and threat protection via Defender and Purview for tool calls remain in preview and didn't make it into GA. The Azure/aigateway repository gathers 26 labs, an Azure CLI extension, a plugin for coding agents, and a migration tool, with full documentation published on Microsoft Learn.

For those already orchestrating multiple LLM providers in production, the practical takeaway is to separate what's model routing (already solved today by several tools, including Foundry itself) from what's per-caller budget and observability, which is the point Rios and the Reddit commenters flag as still without a direct equivalent in the Azure ecosystem. The decision to adopt it or not comes down to measuring whether the US$500-per-gateway-per-month cost is worth this specific gain, not the package as a whole.

Translated from the Brazilian Portuguese original · Read the original