Cloud service · Azure · Updated

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

In short

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.

Cloud Services Hub →

9 key features of API Management

01
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.

02
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.

03
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.

04
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.

05
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.

06
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.

07
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.

08
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.

09
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. 01
    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. 02
    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. 03
    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. 04
    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. 05
    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. 06
    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

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)

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

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

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

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

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

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

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

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

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.

Alternatives to API Management in other clouds

AWS

Amazon API GatewayAmazon 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.

Compare fact by fact
API ManagementAmazon API Gateway
HTTP API billingPer execution or provisioned capacityPer API call

What is API Management

2 min read

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.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.