You are on a platform team, and the request has landed on your desk: developers want Claude Code, and the people who sign off on it want one answer to a single question. How do you hand it out while keeping identity, model access, budgets and private networking under enterprise control? You do not want to pass around a shared Foundry key, and you do not want a config file on a laptop deciding who gets to spend what.
Then you find an engineering guide on the Microsoft Foundry blog. Naveen Gopalakrishna wrote it, and it is built around exactly that question. His answer, which he calls CCOF, puts Azure API Management in front of the Claude deployments on Microsoft Foundry.
Here is how it works for the developers you support. They sign in with Entra and receive a short-lived gateway token instead of a shared key. The gateway checks the tenant, the audience, the client and the scope. It then asks a resolver function which group the caller belongs to and which models that group is entitled to. It applies token limits per person and per group, and only then forwards the request to a private Foundry backend. The rule you would want to write on a whiteboard is his: "Access comes from group membership. A client configuration file does not grant access by itself."
Before you copy any of it, there are two labels to read. First, CCOF "is my implementation" in the author's GitHub repository, "not a Microsoft product," even though it appears on a Microsoft blog. Second, the numbers are lab numbers, and the guide says so. It describes a 2 to 3 hour deployment window. It reports about 2 hours 12 minutes to reach the priced API goal and 2 hours 28 minutes to the first real Claude Code reply. The allow cache is a configurable 120 seconds. Treat those as what one person saw in a lab, not as a promise for your tenant.
What does carry over is the networking advice, which is the kind you only learn by getting it wrong. Private IPs belong in DNS, not in the backend URL, because putting them in the URL breaks TLS validation.
Now the part that matters if you keep a catalog of the APIs your agents touch. The gateway in this design is itself a provider in the APIs.io catalog. The Microsoft Azure API Management provider page lists 133 API pages, and its record already describes an AI gateway governing Anthropic Messages and Microsoft Foundry models with token controls. The guide's moving parts map onto specific pages. The approved Foundry endpoints are registered through the Backend API. Admission and token limits are enforced through the Policy API. The person, group and model attribution behind chargeback rides on the Logger API.
The catalog scores API Management well. It has 80.3 on the Kin Score, rated exemplar, with access clarity at 92.1, developer ergonomics at 91.1 and operational transparency at 86.8.
Then comes the turn, and it is about the catalog's own record. The Agent Readiness score for the same provider is 31.8, rated agent-ready, with auth clarity, error semantics and idempotency lit. Delegated identity is unlit. So are consent identity and protected resource metadata.
That gap is the one you just read about. The whole design is a developer's identity delegated to an agent through a gateway. It took a resolver, a sync function and a reconciler, built by hand, to say who may act. The gateway can enforce delegation, but its own contract does not yet describe it.
So here is what you take away. If you adopt this pattern, you are adopting one author's implementation with lab-tested timings, and you should plan your own measurements. The design rule travels well: tie access to group membership and give developers short-lived tokens. The DNS lesson will save you an afternoon. And when you document the result, expect to write down the delegation yourself, because the provider's published record does not yet carry it.
Read the original: https://apis.io/2026/11/18/claude-code-on-foundry-runs-through-azure-api-management/