BlogInfrastructure
Azure API Management or LiteLLM for companies on Azure
If your models, your identity and your platform team are all on Azure, the AI gateway features in Azure API Management are probably enough, and they spare you a component you would have to patch yourself. LiteLLM is the better fit when you use several model providers, want coding agents such as Claude Code behind the gateway, or want each team to manage its own keys and budget. Running both is also an option. As of 27 November 2026.
What Azure offers
Microsoft describes the AI gateway in API Management as a set of capabilities, not a product of its own. You put policies in front of your model endpoints: a token limit per consumer, token metrics, semantic caching, load balancing across backends with a circuit breaker, and content safety checks. It also handles MCP servers and agent APIs. Which of these you get depends on the service tier you run.
Next to it there is now a separate product called AI Gateway. Microsoft announced it in July 2026 as a preview tier of API Management, and its documentation today presents it as a dedicated service for model and MCP traffic with its own catalogue for developers. It is young, and names and scope have moved within a few months. We would not build a rollout on it yet without checking region and preview status on the day you decide.
What LiteLLM offers
LiteLLM is an open-source gateway you run yourself, in Azure or anywhere else. It speaks one OpenAI-compatible API towards applications and translates to more than a hundred providers behind it. Its strength is the part around the request: virtual keys that people create themselves, teams with a budget in money, spend per team and key, an MCP gateway and guardrails. Anthropic and LiteLLM both document how to put Claude Code behind it.
The price is that you operate it. LiteLLM had four serious security incidents in 2026, and each one meant work for whoever runs the gateway.
Side by side
| Question | Azure API Management | LiteLLM |
|---|---|---|
| Who operates it | Microsoft runs the service, you write the policies | You run it, or a provider does |
| How limits work | Token limits per consumer, set in policies | Budgets in money and rate limits per team and key |
| Where usage data goes | Azure Monitor and Application Insights | Its own database and interface, with exports to your tools |
| Models outside Azure | Possible as backends, configured by you | The core use case |
| Coding agents | Check Anthropic's gateway requirements against your policies first | Documented by Anthropic and by LiteLLM |
| If you leave Azure | The policies stay behind | The gateway moves with you |
How to decide
- Everything on Azure, a handful of applications, a platform team that already runs API Management: stay with API Management.
- Developers with coding agents, several providers, or teams that should see and manage their own spend: use LiteLLM.
- A firm requirement that nothing self-operated holds provider keys: API Management, and accept its limits.
- A plan to add your own models on your own servers later: LiteLLM, because it does not care where a model runs.
Running both
The two are not rivals in every setup. One arrangement keeps API Management at the edge, where your network rules, certificates and existing API policies already live, and puts LiteLLM behind it for keys, budgets and model routing. It costs one more hop and one more thing to explain. Do it when you need what each does. Otherwise pick one.
No vendor pays us. We set up gateways on Azure with either product and say so when the simpler one is enough.
Questions
Is Azure API Management an LLM gateway?
It can act as one. Microsoft offers AI gateway capabilities inside API Management, such as token limits, token metrics and semantic caching, and their availability depends on the service tier.
Can LiteLLM run inside our Azure subscription?
Yes. It is a container with a Postgres database and Redis, so it runs on the Azure services you already use for containers and databases. Sign-in can come from Entra ID.
Should we wait for Microsoft's AI Gateway product?
Not if you have a need today. It was announced as a preview in July 2026 and is still changing. Choose from what is generally available now and plan a review in a year.
Related services
LiteLLM gateway
Budgets and access rules for every team's AI use, through a LiteLLM gateway that is hardened, connected to your identity provider and kept up to date.
Azure OpenAI and Bedrock
GPT and Claude on company data, under the cloud contracts you already have: Azure OpenAI and Amazon Bedrock in your own account, with EU processing and one gateway.
More from the blog
What an LLM gateway does
What an LLM gateway (also called an AI gateway or LLM proxy) takes off your applications and what it leaves to the rest of the platform, with the main options compared as of 7 November 2026.
Where to host LiteLLM
Three ways to host a LiteLLM gateway: your own cloud account, a hosting provider in Germany, or a partner who runs it and hands it over. What each costs you in control, and how to move it in-house later.
LiteLLM with Microsoft Entra ID
How to connect LiteLLM to Microsoft Entra ID: what single sign-on covers and what it does not, how groups become teams, which roles exist, and why offboarding needs a test of its own.
EU data residency on Azure OpenAI and Bedrock
Which Azure OpenAI deployment types and Amazon Bedrock inference profiles keep model requests in the EU, who can still read prompts, and how one gateway holds every team to EU endpoints. An EU region does not take the provider out of CLOUD Act scope.
Talk to an engineer
Bring one piece of work you would like to improve. The call takes 30 minutes and needs no access to your systems or your data.
Booking runs on Google Calendar.

Mickey Graf
Founder and CEO of Cloudsail
Prefer to write first? Leave your email and a few lines. Mickey reads every message himself and replies by email with times for a call.
Look for the draft in your email program
Send it from there, and Mickey replies in person with times for a 30-minute call. If no draft has opened, write to us at miki@cloudsail.com.