# API Management

Azure API Management is a managed platform for publishing, securing, governing, and monitoring APIs through an API gateway.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/api-management

> Azure API Management provides a gateway, management plane, and developer portal for exposing APIs to internal teams, partners, and external developers. It applies authentication, traffic controls, transformations, and observability to APIs hosted in Azure, other clouds, or on-premises environments, with capabilities that vary by service tier.

## 9 key features of API Management

1. **Policy-based API gateway**: Apply request and response policies for URL rewriting, header changes, payload transformation, conditional routing, and error handling. Use shared policy fragments and deliberate scope inheritance to keep behavior consistent across APIs.
2. **Authentication and backend credentials**: Validate JWTs, enforce required claims, and use certificate-based controls where supported. Authenticate separately to backends, using managed identity when the backend supports Microsoft Entra authentication.
3. **Traffic limits and response caching**: Configure rate limits and quotas to allocate consumer usage and reduce backend overload. Cache eligible responses with appropriate cache keys and expiration settings; avoid sharing personalized responses across consumers.
4. **API products and developer onboarding**: Package APIs into products with subscription requirements and approval workflows. The developer portal provides API documentation and interactive testing in supported tiers, reducing manual onboarding work.
5. **API versions and revisions**: Publish versions when consumers must explicitly adopt a different API contract. Use revisions to prepare and test updates to an existing version before making the revision current.
6. **Private connectivity and gateway placement**: Select supported virtual network integration, injection, or private endpoint options to match inbound and outbound connectivity requirements. A self-hosted gateway can place API runtime processing near on-premises or other-cloud backends in supported tiers, with the operator responsible for its hosting and availability.
7. **Federated management with workspaces**: Delegate API management to individual teams using workspace-scoped resources and Azure RBAC. Platform teams retain central oversight, while runtime deployment options and workspace capabilities depend on the service tier.
8. **Monitoring and diagnostics**: Export gateway logs and metrics to Azure Monitor and connect Application Insights for request diagnostics. Analyze failures, latency, consumer activity, and backend behavior while controlling sampling and sensitive data collection.
9. **AI API governance**: Apply supported policies to language model APIs for token usage controls, routing, and telemetry. The Unified Model API translates a common client-facing API format to supported model providers, reducing provider-specific client integration work.

## Where API Management is used

1. **Partner API publishing**: Expose selected business APIs through documented products with subscription approval, token validation, and usage controls. For example, give logistics partners access to shipment status without exposing internal service endpoints directly.
2. **Legacy service modernization**: Place a stable API contract in front of existing services and use policies for URL, header, or payload adaptation. Backend teams can then replace implementations incrementally while preserving consumer-facing interfaces.
3. **Shared gateway for application backends**: Present a consistent API entry point for services running on Azure Functions, App Service, or Kubernetes. Centralize common authentication and throttling while leaving business authorization and processing in the appropriate backend.
4. **Private enterprise APIs**: Expose APIs to authorized enterprise clients using supported private gateway connectivity and private backend access. Design DNS, identity, and routing together so that both API discovery and runtime access work from the intended networks.
5. **Federated API platform**: Use workspaces to let business units manage their own APIs within a shared platform. Define platform-wide security expectations, delegated permissions, deployment standards, and monitoring responsibilities.
6. **Governed model access**: Route application calls to supported language model backends through a controlled API surface. Apply token limits and usage telemetry per trusted consumer identity, and configure backend routing without embedding provider credentials in client applications.

## How API Management is priced

- **Consumption: execution-based billing**: The serverless Consumption tier scales with demand and bills by API executions under its published pricing terms. Evaluate its feature and networking constraints before choosing it for variable traffic, and include rejected gateway requests when assessing applicable billing limits.
- **Developer: nonproduction provisioned service**: The classic Developer tier provides an economical environment for development and evaluation, with no production SLA. It incurs provisioned service charges even when APIs receive no traffic.
- **Classic production tiers: provisioned capacity**: Basic, Standard, and Premium use tier- and capacity-based charges rather than purely execution-based billing. Budget for configured units and, where supported, additional regional gateway capacity; Premium provides capabilities such as multi-region deployment that are not shared by every tier.
- **V2 tiers: provisioned capacity**: Basic v2, Standard v2, and Premium v2 provide provisioned service options with different capacity and feature sets. Basic v2 targets development and testing, while Standard v2 and Premium v2 support production scenarios; compare networking, scaling, and regional availability before selecting a tier.
- **Additional deployment and operating costs**: Depending on the architecture, budget for separately priced gateway resources, self-hosted gateway infrastructure, private connectivity, outbound data transfer, monitoring ingestion, and log retention. Backend compute, model tokens, external caches, and other connected services are charged independently of API Management.

## Services API Management works with

A common architecture places API Management between application clients and backends hosted on Azure Functions, App Service, or Azure Kubernetes Service. Microsoft Entra ID authenticates callers, while gateway policies validate token audiences and claims before routing requests. Backend access uses a separate trust relationship, such as managed identity, and backend network restrictions prevent callers from bypassing gateway enforcement.

For public APIs, Azure Front Door can provide edge routing and web application firewall inspection ahead of the gateway. Private API architectures instead require deliberate inbound gateway access, outbound connectivity to private backends, and working private DNS. Choose these options against the selected tier rather than assuming that outbound virtual network integration also isolates inbound traffic.

Key Vault stores supported secrets and certificates, while Azure Monitor and Application Insights provide complementary operational visibility. Correlate requests across the gateway and backend, and avoid recording credentials or sensitive payloads unnecessarily. For Azure OpenAI workloads, apply supported token controls and usage telemetry at the gateway, but manage model quotas, backend resilience, and model consumption charges separately. Across these patterns, deploy configuration through source-controlled pipelines and test identity, networking, and failure paths together.

- **[Azure Functions](https://blowstack.com/tools/cloud-services-hub/azure-functions)**: Import HTTP-triggered functions and expose them through stable API routes with shared policies. For example, publish an order-processing function through an API that validates tokens and limits calls per consumer. Secure the function endpoint as well, because gateway policies do not protect clients that can bypass the gateway.
- **[Azure Kubernetes Service (AKS)](https://blowstack.com/tools/cloud-services-hub/azure-kubernetes-service-(aks))**: Route gateway requests to services exposed through an AKS ingress or another reachable backend endpoint. For example, map customer and inventory API paths to separate Kubernetes services while applying a common authentication policy. For private clusters and internal ingress, use a supported network configuration and verify private DNS resolution.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: Reference supported Key Vault secrets from named values and retrieve supported certificates using the API Management managed identity. For example, keep a backend API credential in Key Vault instead of embedding it in policy XML. Grant only the required secret permissions and account for refresh behavior when planning credential rotation.
- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Send gateway resource logs to a Log Analytics workspace and use Azure Monitor metrics, alerts, and dashboards for operations. For example, alert on increasing gateway failures and query logs to distinguish policy rejections from backend errors. Set retention and payload logging rules to control cost and protect sensitive data.
- **[Azure Front Door](https://blowstack.com/tools/cloud-services-hub/azure-front-door)**: Place Azure Front Door in front of a compatible API Management deployment for edge routing and web application firewall inspection. For example, route a public API hostname to regional gateways and evaluate regional gateway health at the edge. Restrict direct origin access using supported network controls and validated edge identifiers so callers cannot bypass the intended path.
- **[Azure OpenAI in Foundry Models](https://blowstack.com/tools/cloud-services-hub/azure-openai-in-foundry-models)**: Expose Azure OpenAI endpoints through API Management to apply supported authentication, token usage controls, and telemetry policies. For example, identify internal applications using validated token claims and allocate token usage limits to each application. Gateway scaling does not increase model deployment quota, so plan backend capacity and retry behavior independently.
- **[App Service](https://blowstack.com/tools/cloud-services-hub/app-service)**: API Management can import an API hosted in an App Service web app and publish it through its gateway. The gateway can enforce authentication, rate limits, and request validation without moving the API's business logic out of the web app.
- **[Azure Advisor](https://blowstack.com/tools/cloud-services-hub/azure-advisor)**: API Management instances receive resource-specific recommendations from Azure Advisor. For example, Advisor can flag an eligible Premium instance that does not use availability zones and recommend enabling zone redundancy.
- **[Azure Application Gateway](https://blowstack.com/tools/cloud-services-hub/azure-application-gateway)**: API Management can use Application Gateway as the public entry point for a gateway deployed in an internal virtual network. Application Gateway can expose selected APIs while leaving other APIs reachable only from the private network.
- **[Azure Arc](https://blowstack.com/tools/cloud-services-hub/azure-arc)**: API Management can deploy its self-hosted gateway as an extension on an Azure Arc-enabled Kubernetes cluster. The gateway handles API traffic close to the backend while API definitions and policies remain managed in Azure.
- **[Azure Blob Storage](https://blowstack.com/tools/cloud-services-hub/azure-blob-storage)**: API Management can write a supported instance backup to a blob container and restore an instance from that backup. It can also archive gateway resource logs to Blob Storage through diagnostic settings.
- **[Azure Cache for Redis](https://blowstack.com/tools/cloud-services-hub/azure-cache-for-redis)**: API Management can use Azure Cache for Redis as an external cache for its gateway policies. For example, it can serve repeated requests from cached responses instead of calling the backend each time.
- **[Azure Container Apps](https://blowstack.com/tools/cloud-services-hub/azure-container-apps)**: API Management can import an HTTP API hosted in Azure Container Apps and publish it through its gateway. This lets the container app serve the backend while API Management handles client-facing access and throttling policies.
- **[Azure Container Instances](https://blowstack.com/tools/cloud-services-hub/azure-container-instances)**: API Management can run its self-hosted gateway in Azure Container Instances without requiring a Kubernetes cluster. The container processes API requests using the configuration of its associated API Management instance.
- **[Azure Cosmos DB](https://blowstack.com/tools/cloud-services-hub/azure-cosmos-db)**: API Management can use Azure Cosmos DB as a direct data source for synthetic GraphQL resolvers. A resolver can read or modify items in a container without an intermediary application.
- **[Azure DDoS Protection](https://blowstack.com/tools/cloud-services-hub/azure-ddos-protection)**: API Management can use Azure DDoS Protection to protect eligible public IP addresses associated with a virtual network deployment. This adds network-layer mitigation upstream of the gateway's API policies.
- **[Azure DevOps](https://blowstack.com/tools/cloud-services-hub/azure-devops)**: API Management can use Azure Pipelines for APIOps workflows that keep API definitions and policies in source control. A publishing pipeline can apply reviewed changes to development and production API Management instances.
- **[Azure DNS](https://blowstack.com/tools/cloud-services-hub/azure-dns)**: API Management can use Azure DNS to resolve custom gateway and developer portal hostnames. An Azure Private DNS zone can also resolve the gateway hostname to a private endpoint address for clients in linked virtual networks.
- **[Azure Firewall](https://blowstack.com/tools/cloud-services-hub/azure-firewall)**: A virtual-network-injected API Management instance can route outbound traffic through Azure Firewall. Firewall rules can restrict backend access while allowing the service dependencies required by API Management.
- **[Azure Load Balancer](https://blowstack.com/tools/cloud-services-hub/azure-load-balancer)**: Classic API Management instances injected into a virtual network rely on Azure infrastructure load balancer probes to check service health. An internal deployment exposes the gateway through a private virtual IP, and its subnet rules must permit the required probe traffic.
- **[Azure Managed Redis](https://blowstack.com/tools/cloud-services-hub/azure-managed-redis)**: API Management can use Azure Managed Redis as an external gateway cache. Cache policies can reuse stored responses or policy values across requests to reduce backend calls.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: API Management supports built-in Azure Policy definitions that audit or enforce settings on instances and APIs. For example, a policy can audit HTTPS requirements or deploy missing diagnostic settings.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: API Management provides dedicated Azure portal screens to import APIs, edit gateway policies, and manage products and subscriptions. Its built-in test console can send a request to a selected API operation and display the response.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: API Management can expose its managed gateway through an inbound private endpoint. Clients can reach the gateway over a private IP address, and public network access can be disabled on supported configurations.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: API Management exposes its instances, APIs, backends, products, and policies as Azure Resource Manager resource types. Resource Manager deployments can create an instance and apply the same API configuration consistently across environments.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: API Management uses Azure RBAC to control who can administer an instance or its resources. Built-in roles can grant read-only or service administration access independently of the credentials clients use to invoke APIs.
- **[Azure Service Fabric](https://blowstack.com/tools/cloud-services-hub/azure-service-fabric)**: API Management can configure a Service Fabric cluster as a native backend. Its gateway can resolve service instances and partitions, select replicas, and re-resolve a service when its address changes.
- **[Azure SQL Database](https://blowstack.com/tools/cloud-services-hub/azure-sql-database)**: API Management can use an Azure SQL database as a data source for a synthetic GraphQL resolver. The resolver can execute a database query for a field without forwarding the operation to a separate GraphQL application.
- **[Azure Traffic Manager](https://blowstack.com/tools/cloud-services-hub/azure-traffic-manager)**: In supported multi-region deployments with publicly reachable gateways, API Management uses Azure Traffic Manager to route requests to a healthy regional gateway based on latency. Traffic can shift to another region if a regional gateway becomes unavailable.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: API Management supports virtual network injection or outbound virtual network integration, depending on the tier. These options can make the gateway reachable privately or let it call backends that have no public endpoint.
- **[Azure Web Application Firewall](https://blowstack.com/tools/cloud-services-hub/azure-web-application-firewall)**: API Management can receive traffic through a Web Application Firewall on Application Gateway or Front Door. The firewall inspects incoming requests before API Management applies API-specific controls such as token validation and rate limits.
- **[Content Safety in Foundry Control Plane](https://blowstack.com/tools/cloud-services-hub/content-safety-in-foundry-control-plane)**: API Management can use its `llm-content-safety` policy to check model inputs and completions against configured safety thresholds. The gateway can block content that violates those thresholds before forwarding a prompt or returning a completion.
- **[Event Grid](https://blowstack.com/tools/cloud-services-hub/event-grid)**: API Management publishes lifecycle events for resources such as APIs, products, users, and subscriptions to Event Grid. An event subscription can trigger a workflow when a new API subscription is created.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: API Management can stream resource logs to Event Hubs through diagnostic settings. A gateway policy can also use an Event Hubs logger to emit custom events with selected request details.
- **[Foundry Agent Service](https://blowstack.com/tools/cloud-services-hub/foundry-agent-service)**: API Management can serve as a bring-your-own AI gateway for supported Foundry Agent Service model connections. This lets an agent use an approved inference endpoint while the gateway applies centralized access and usage policies.
- **[Foundry Models](https://blowstack.com/tools/cloud-services-hub/foundry-models)**: API Management can publish supported Foundry Models inference endpoints behind a governed API. The gateway can authenticate callers, manage backend credentials, and enforce per-consumer token limits.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: API Management can import operations from an eligible HTTP-triggered logic app and publish them as an API. A workflow such as order submission can then use the gateway's authentication and throttling policies without implementing them in the workflow.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: API Management APIs can be onboarded to the Defender for APIs plan in Microsoft Defender for Cloud. The plan assesses API security posture, analyzes runtime traffic, and raises alerts about suspicious activity.
- **[Microsoft Entra External ID](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-external-id)**: API Management can use the external tenant's OpenID Connect configuration to validate access tokens issued by Microsoft Entra External ID. A gateway policy can require the intended audience and a specific scope before forwarding a customer request.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: API Management can use Microsoft Entra ID to sign developers into the developer portal and validate access tokens at the gateway. It can also use a managed identity to obtain tokens for backends that accept Microsoft Entra authentication.
- **[Microsoft Entra ID B2C](https://blowstack.com/tools/cloud-services-hub/azure-active-directory-b2c)**: API Management supports Microsoft Entra ID B2C as a developer portal identity provider. Gateway policies can also validate API access tokens against the OpenID Connect configuration for the appropriate B2C user flow or custom policy.
- **[Microsoft Fabric](https://blowstack.com/tools/cloud-services-hub/microsoft-fabric)**: API Management can front Microsoft Fabric's API for GraphQL and authenticate to it with a managed identity. It can apply client-facing rate limits and caching policies without changing the Fabric API.
- **[Microsoft Foundry](https://blowstack.com/tools/cloud-services-hub/microsoft-foundry)**: API Management can import supported model deployments from Microsoft Foundry and expose them through a managed AI gateway. This gives applications a governed endpoint with centralized authentication, usage controls, and monitoring.
- **[Microsoft Sentinel](https://blowstack.com/tools/cloud-services-hub/microsoft-sentinel)**: API Management gateway logs can feed the API Management data connector in Microsoft Sentinel through a Log Analytics workspace. Sentinel can then use those logs to investigate unusual API traffic alongside other security events.
- **[Service Bus](https://blowstack.com/tools/cloud-services-hub/service-bus)**: API Management can use a gateway policy to send a message directly to a Service Bus queue or topic. For example, an API operation can accept a request and enqueue it for asynchronous processing without a separate HTTP backend.
- **[Static Web Apps](https://blowstack.com/tools/cloud-services-hub/static-web-apps)**: API Management can be linked as the backend of a Standard-plan static web app. Requests to the site's `/api` route are then forwarded to API Management, where gateway policies and routing apply.

## Alternatives to API Management in other clouds

### AWS

**[Amazon API Gateway](https://blowstack.com/tools/cloud-services-hub/amazon-api-gateway)**: Amazon API Gateway and Azure API Management publish, secure, and monitor APIs. Amazon API Gateway bills HTTP and REST APIs per call, while Azure API Management bills per execution in its Consumption tier and for allocated capacity in its provisioned tiers.

| | API Management | Amazon API Gateway |
| --- | --- | --- |
| HTTP API billing | Per execution or provisioned capacity | Per API call |

Compared Nov 2026.

## What is API Management

Azure API Management sits between API consumers and backend services. Engineers define APIs and operations, associate them with backend endpoints, and configure gateway policies that run when requests and responses pass through the service. The gateway handles API traffic, while the management plane provides configuration and administrative access. The developer portal supports API discovery, documentation, testing, and consumer onboarding where available in the selected tier.

A typical deployment starts by importing an OpenAPI definition or creating an API manually. The public API contract can differ from the backend implementation: policies can rewrite URLs, set headers, transform payloads, and route requests to different backends. Keep substantial business logic in backend applications rather than building it into gateway policies, because complex policies increase troubleshooting effort and add processing overhead.

API security requires separate decisions for client-to-gateway and gateway-to-backend communication. Validate access tokens and required claims at the gateway, and authenticate backend calls using managed identity, certificates, or other supported credentials. Subscription keys identify API subscriptions and support access control and usage tracking, but they are not a substitute for user authentication. Azure role-based access control governs administrative access to the service independently of API consumer access.

Products group APIs for publication and subscription. Teams can configure subscription approval and apply policies at appropriate scopes, including global, product, API, and operation scopes. Workspaces support delegated API ownership within a centrally managed platform, subject to tier capabilities. Use versions for intentional changes to an API contract and revisions for controlled updates to an existing version. Store API definitions, policies, and infrastructure configuration in source control and deploy them through reviewed pipelines.

Network design must account for both inbound consumer traffic and outbound backend connectivity. Standard v2 and Premium v2 support virtual network integration for reaching private backends, while inbound private endpoints provide a separate mechanism for private gateway access. Premium v2 also supports virtual network injection for gateway isolation. Outbound integration alone does not make the gateway private. Validate DNS resolution, routing, firewall rules, and public network access settings before production rollout.

Choose a tier using required features, regional availability, expected traffic, and resilience requirements rather than request volume alone. Consumption uses execution-based billing, while provisioned tiers charge for allocated service capacity. Multi-region deployment, workspace gateways, developer portal availability, and self-hosted gateway support differ across tiers; do not assume that similarly named classic and v2 tiers have identical features. Increasing gateway capacity does not increase backend capacity.

Operationally, send gateway diagnostics to Azure Monitor and use Application Insights for request telemetry and troubleshooting. Monitor latency, backend failures, policy errors, throttling, and gateway resource utilization. Restrict sensitive payload logging, configure retention deliberately, and test policy changes against representative traffic. Rate limits and quotas help protect backends and allocate usage, but distributed enforcement should not be treated as an exact financial spending cap.
