/azure-ai-foundry:apim-ai-gateway what to front, for example token-limited load balancing across two model deployments with semantic cachefrom azure-ai-foundry
Designs Azure API Management as a runtime AI gateway for model and tool traffic with token limits, quotas, load balancing, circuit breakers, semantic caching, token metrics, managed identity, and content safety.
Ships in azure-ai-foundry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Design Azure API Management as the runtime gateway between agents, applications, model deployments, and tool APIs so traffic is governed, resilient, cached, metered, and secured without changing every caller.
Use $ARGUMENTS as the runtime gateway scenario: what callers invoke, which model or tool backends exist, tenant or feature dimensions, token budget goals, cache needs, and network/security constraints. If details are missing, state assumptions before designing.
publicNetworkAccess=Disabled; create it enabled and harden later if that tier is required.apim-ai-gateway skill for deep policy examples when available; this skill defines the primitive design shape.| Capability | Policy area | Why it matters |
|---|---|---|
| Token rate limiting | token limit per key or subscription | Protect budgets and prevent runaway spend. |
| Token quotas | renewable token quota | Enforce per-tenant, per-user, or per-feature ceilings. |
| Load balancing | backend pool with weights and priority | Spread traffic across model deployments, models, and regions. |
| Resilience | circuit breaker on backends | Bypass throttled, unhealthy, or down deployments. |
| Semantic caching | semantic cache lookup and store | Reuse answers for similar prompts through a cache backend such as Azure Managed Redis. |
| Cost attribution | emit token metric | Track usage by model, tenant, feature, and caller in Azure Monitor. |
| Identity | managed identity to backend | Remove backend keys from application code and use AAD where supported. |
| Safety | content safety integration | Screen requests and responses at the edge. |
Agents / GitHub Copilot / apps
|
Azure API Management (AI gateway)
- authN (managed identity, subscription keys for callers)
- token limit + quota
- semantic cache lookup --> hit returns cached response
- load balance + circuit breaker
| |
Model deployment A Model deployment B (multi-region, multi-model)
|
emit token metric --> Azure Monitor (cost attribution)
| Boundary | Decision rule |
|---|---|
| Governance vs runtime | azure-api-center catalogs APIs, tools, and MCP servers; APIM enforces and routes calls at runtime. |
| Caching | Gateway semantic caching is the lowest-change option; app-level caching belongs in azure-managed-redis-cache. |
| Routing | Centralizing model calls behind APIM makes routing tiers from azure-agentic-architecture-patterns enforceable in one place. |
| Tool calls | Treat governed tool APIs like any other backend: authenticate callers, enforce quotas, monitor errors, and document ownership. |
| Name | Type | Use it when |
|---|---|---|
apim-ai-gateway | skill | You need exact APIM AI policy syntax or current Microsoft Learn examples. |
azure-api-center | skill | You need catalog, governance, discovery, or linter rules rather than runtime enforcement. |
azure-managed-redis-cache | skill | You need the cache backend design behind semantic caching. |
azure-agentic-architecture-patterns | skill | You need agent routing and tool-use architecture decisions. |
## APIM AI gateway design
**Scenario:** <what is fronted>
**Gateway role:** runtime enforcement for model traffic | tool traffic | both
| Concern | Design decision | Policy or service area | Validation |
| --- | --- | --- | --- |
| Token budget | <limit/quota dimensions> | token limit, token quota | <test> |
| Routing | <backend pool, weights, priority> | backends | <failover test> |
| Cache | <lookup/store and threshold> | semantic cache | <hit/miss test> |
| Identity | <caller and backend auth> | managed identity, subscription keys, AAD | <auth test> |
| Cost | <dimensions> | emit token metric, Azure Monitor | <dashboard or query> |
### Risks and mitigations
- <risk>: <mitigation>
publicNetworkAccess=Disabled limitation is considered when relevant.references/auth-best-practices.md (opens in a new tab)references/patterns.md (opens in a new tab)references/policies.md (opens in a new tab)references/sdk/azure-ai-contentsafety-py.md (opens in a new tab)references/sdk/azure-ai-contentsafety-ts.md (opens in a new tab)references/sdk/azure-mgmt-apimanagement-dotnet.md (opens in a new tab)references/sdk/azure-mgmt-apimanagement-py.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/agentic-evalDesign evaluator-optimizer, reflection, rubric, LLM-as-judge, and test-driven refinement loops for AI agent outputs. Use when implementing self-critique, iterative improvement, quality gates, agent response evaluation, code refinement, or rubric-based scoring for generated code, reports, or analysis./azure-agentic-architecture-patternsProvides a decision framework for production multi-agent and AI-native systems on GitHub and Azure AI Foundry. Use this skill when designing model routing, prompt caching, semantic caching, memory, context curation, RAG, tools, MCP, identity, guardrails, evaluation, observability, or cost controls./azure-aiBuild on Azure AI services including AI Search, Speech, Azure OpenAI, and Document Intelligence, covering keyword, vector, hybrid, and semantic search, speech-to-text, text-to-speech, transcription, and OCR. Use when the user asks about AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcription, OCR, or converting text to speech./azure-api-centerDesign Azure API Center as the enterprise inventory and governance plane for APIs, agent tools, OpenAPI definitions, environments, deployments, metadata, linting, and MCP server discovery. Use when building an API or tool catalog, enforcing API standards, registering MCP servers, or making approved tools discoverable to agent builders./azure-managed-redis-cacheUse when designing or provisioning Azure Managed Redis for cache, semantic cache, vector memory, session store, or agent memory in AI-native systems; produces SKU guidance, network and identity controls, Bicep deployment steps, and integration recommendations. DO NOT USE FOR: general agent architecture (use agentic-architecture-patterns), Foundry agent runtime design (use foundry-agent-blueprint), or general Azure infrastructure (use azure-infrastructure). Triggers include "design Redis semantic cache", "provision Azure Managed Redis", "add vector memory"./entra-agent-userCreate Agent Users in Microsoft Entra ID from Agent Identities, enabling AI agents to act as digital workers with user identity capabilities in Microsoft 365 and Azure environments. Use this skill when the user asks for skill: creating agent users in microsoft entra agent id.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin azure-ai-foundryOther plugins' skills for the same job