Automation & Ops ✓ Microsoft · Official azure-api-managementai-gatewaysemantic-cachingtoken-limitscontent-safetymcp-rate-limitingazure-openai

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

FollowSkills review · FSRS-2.0
Not recommended
55/ 100 5-point scale 2.8 / 5
Trust16 / 25 · 3.2/5

The documentation recommends managed identities, Azure RBAC, and scoped authorization, and distinguishes local from production credentials. However, examples perform external changes such as backend creation, role assignment, API import, and gateway calls without explicit confirmation, rollback guidance, or clear data-flow/logging sensitivity disclosure. It also exposes subscription-key and built-in all-access tracing procedures, so points are deducted.

Reliability8 / 20 · 2.0/5

Structured patterns, troubleshooting, and health checks cover common paths and provide some failure feedback. However, the skill depends on Azure CLI, APIM/Azure resources, and specific API or policy versions; it contains no skill-specific executable tests, and command or compatibility correctness cannot be confirmed statically. The score therefore remains below the static-review ceiling.

Adaptability9 / 15 · 3.0/5

Triggers, model/tool/agent governance scenarios, and several prerequisites are reasonably clear. Non-fit boundaries, input/output contracts, trigger exclusions, and environment limits are incomplete. There is no Chinese-language guidance or explicit assessment of mainland-China reachability for Azure, Microsoft Learn, or GitHub raw-spec dependencies, so points are deducted.

Convention10 / 15 · 3.3/5

The documentation is layered into quick reference, common tasks, troubleshooting, and references, and includes MIT licensing plus author and version 3.1.1 metadata. It lacks a changelog, explicit maintenance owner/update path, dependency version pinning, and a complete FAQ, while risks from changing external references are not managed, so points are deducted.

Effectiveness7 / 15 · 2.3/5

The skill covers APIM AI-gateway backends, policies, caching, rate limiting, content safety, metrics, streaming, and multi-tenancy, with reusable CLI, XML, and curl examples. Placeholder values, deployment prerequisites, and unverified service compatibility still require environment-specific adaptation and review; static calibration limits the score.

Verifiability5 / 10 · 2.5/5

It supplies traceable Microsoft Learn, Azure Samples, SDK, and API-spec references, along with diagnostic commands and health-check examples. However, there are no skill-specific committed tests, execution results, or independent corroboration, so the score is limited to the static-evidence ceiling.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Obtain explicit user confirmation before running az commands, assigning roles, importing APIs, or changing gateway policies, and prepare an auditable rollback plan.
  • Do not expose subscription keys in logs, prompts, or shared output; restrict built-in all-access subscriptions to tightly isolated diagnostic use.
  • Validate policy elements, CLI arguments, streaming compatibility, retry behavior, APIM SKU, and API versions in the target Azure environment.
  • Core operation depends on Azure CLI, Azure resources, and external Microsoft/GitHub services; mainland-China reachability and offline alternatives are not documented.
See the full review method →

What it does & when to use it

The Azure AI Gateway skill guides users in configuring Azure API Management as a gateway for AI models, MCP tools, and agents. It covers semantic caching, token limits, load balancing, content safety, jailbreak detection, token metrics, and backend authentication. The skill includes Azure CLI commands, a curl-based endpoint test, and a recommended APIM policy order. It is a good fit for Azure teams that already have, or plan to provision, APIM; it does not deploy APIM itself.

It uses Azure CLI to retrieve the APIM gateway URL, list AI backends, and obtain subscription keys. It shows how to create an Azure OpenAI backend and grant APIM's managed identity the Cognitive Services User role. It provides a curl example for calling an OpenAI chat completions endpoint through the gateway and explains how to combine authentication, semantic cache lookup, token limits, content safety, backend selection, and metrics policies. It also covers MCP or tool rate limiting, API-to-MCP conversion, and troubleshooting for token-limit 429 responses, cache misses, content false positives, and backend 401 errors.

  1. An Azure platform engineer needs to add an Azure OpenAI or AI Foundry model as an APIM backend.
  2. A cost-conscious AI team wants token limits, semantic caching, and token metrics for model usage control.
  3. An MCP tool developer needs per-key rate limiting to protect tool endpoints.
  4. An agent operations team needs content-safety filtering and jailbreak detection at the gateway.
  5. An engineer needs to validate that APIM correctly forwards OpenAI requests and wants a CLI-plus-curl test path.

Pros & cons

Pros
  • Addresses governance for models, tools, and agents in one skill.
  • Includes copyable Azure CLI, curl, and policy-order examples.
  • Covers concrete controls for token usage, caching, safety, rate limiting, and observability.
  • Provides troubleshooting guidance for several common gateway failures.
Limitations
  • Requires Azure CLI and access to appropriately configured Azure resources and permissions.
  • Does not deploy APIM; deployment is handled by the separate azure-prepare skill.
  • The source provides no evidence of an independent test suite, support for other cloud platforms, or a non-Azure-CLI configuration path.
  • The stated 60%–80% semantic-cache cost saving is a documentation claim, not a guarantee for every workload.

How to install

To install the collection, run: npx skills add microsoft/skills, then select the required skills in the wizard. With Copilot CLI, the README also documents: /plugin marketplace add microsoft/skills and /plugin install azure-skills@skills. The source does not document a standalone installation procedure for .github/plugins/azure-skills/skills/azure-aigateway.

How to use

After installing the skill in an Agent Skills-compatible client, use prompts such as “add an Azure OpenAI backend to my APIM,” “configure rate limiting for my MCP tool,” “enable semantic caching and token metrics,” or “test my AI gateway.” Azure CLI is required for the configuration and testing examples. APIM deployment is delegated to the azure-prepare skill. A documented starting command is: az apim show --name <apim-name> --resource-group <rg> --query "gatewayUrl" -o tsv, followed by the supplied curl POST request using the gateway URL and subscription key.

FAQ

Does this skill deploy APIM?
No. It directs users to the azure-prepare skill for APIM deployment and focuses on gateway configuration and testing.
What permissions are needed to add an Azure OpenAI backend?
The example assigns APIM's managed identity the Cognitive Services User role. The user must supply the relevant principal and resource identifiers.
How should I address token-limit 429 errors?
The documented options are to increase tokens-per-minute or add load balancing.
Can it govern MCP tools?
Yes. Its stated tool-governance scenarios include rate limiting MCP tools and converting an API to MCP.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Rust

A focused guide for building secure Azure Queue Storage messaging workflows in Rust.

Related skills