Manage your APIs with Azure API Management’s self-hosted gateway v2
Self-hosted API gateway v2 turns Azure API Management into a distributed control-and-data-plane pattern. The main architectural implication is that policy, routing, and telemetry remain centrally managed while request execution moves closer to on-premises, multi-cloud, or edge workloads. That separation can reduce platform sprawl, but it also creates a hard dependency on reliable outbound connectivity to the Azure management plane for configuration and token renewal.
For platform teams, the operational model is now closer to a managed container service than a purely cloud-native SaaS feature. You still need to own the runtime substrate, whether that is virtual machines with containers or Kubernetes, along with ingress, network reachability, certificate handling, scaling behavior, and image lifecycle management. The article’s shared-responsibility split is the key design signal: Microsoft manages the service plane, while customers inherit uptime, capacity, patching, and supportability for the deployed gateway.
The new v2 capabilities are especially relevant for observability and delivery automation. OpenTelemetry export makes it easier to align gateway metrics with existing enterprise monitoring stacks, while the Helm chart and sample YAML files support repeatable deployment patterns through CI/CD or GitOps. That reduces configuration drift, but it also means teams must standardize values management, secrets handling, and upgrade cadence across environments.
v2 is also a governance and migration milestone. The ability to define gateway deployments by location, API set, and hostname gives architects a cleaner way to isolate traffic domains and control exposure, but it adds design decisions around partitioning and lifecycle boundaries. With v1 retirement announced, teams should treat this as a production-readiness review: validate compatibility, confirm telemetry integrations, and plan upgrade windows before the older gateway becomes a technical-debt risk.
New to the self-hosted gateway, how does it work?
When deploying an Azure API Management instance in Azure customers get three main building blocks:- A developer portal (also called user plane) for allowing internal and external users to find documentation, test APIs, get access to APIs, and see basic usage data among other features.
- An API gateway (also called data plane), which contains the main networking component that exposes API implementations, applies API policies, secures APIs, and captures metrics and logs of usage among other features.
- Finally, a Management Plane, which is used through the Azure Portal, Azure Resource Manager (ARM), Azure Software Development Kits (SDKs), Visual Studio and Code extensions, and command-line interfaces (CLIs) that allow to manage and enforce permissions to the other components. Examples of this are setting up APIs, configuring the infrastructure, and defining policies.
Supported Azure API Management tiers
The self-hosted gateway v2 is now generally available and fully supported. However, the following conditions apply:- You need an active Azure API Management instance; this instance should be on the Developer tier or Premium tier.
- In the developer tier, in this case the feature is free for testing, with limitations of one active instance.
- In the Premium tier, you can run as many instances as you want. Learn more about pricing at our pricing table.
- Azure API Management will always provision an API Gateway in Azure, which we typically call our managed API gateway.
- Be aware that there are differences in features between our various API gateway offerings. Learn more about the differences in our documentation.
Pricing and gateway deployment
In the case of the self-hosted gateway, we can define a self-hosted gateway by assigning a name to our gateway, a location (which is a logical grouping that aligns with your business, not an Azure region), a description, and finally what APIs we want to expose in this gateway. This allows us to do physical isolation of APIs at the gateway level, which is only possible in the self-hosted gateway at this moment. This combination of location, APIs, and hostname is what defines a self-hosted gateway deployment, this “self-hosted gateway deployment” should not be confused with a Kubernetes “deployment” object. For example, using a single deployment, where the same APIs are configured in all locations:Supportability and shared responsibilities
Another important aspect is the support, in the case of the self-hosted gateway, the infrastructure is not necessarily managed by Azure, therefore as a customer you have more responsibilities to ensure the proper functioning of the gateway:| Microsoft Azure | Shared Responsibilities | Customers |
| Managed service service level agreements ( SLA), for the management plane, access to configuration and ability to receive telemetry. | Securing self-hosted gateway communication with Configuration endpoint: the communication between the self-hosted gateway and the configuration endpoint is secured by an access token, this token expires automatically every 30 days and needs to be updated for the running containers. | Gateway hosting, deploying, and operating the gateway infrastructure: virtual machines with container runtime or Kubernetes clusters. |
| Gateway maintenance, bug fixes and patches to container image. | Keeping the gateway up to date: regularly updating the gateway to the latest version and latest features. | Network configuration, necessary to maintain management plane connectivity and API access. |
| Gateway updates, performance, and functional improvements to container image. | Gateway SLA, capacity management, scaling, and uptime | |
| Keeping the gateway up to date, regularly updating the gateway to the latest version and latest features. | ||
| Providing diagnostics data to support, collecting, and sharing diagnostics data with support engineers | ||
| Third party open-source software (OSS ) software components, adding additional layers like Prometheus, Grafana, service meshes, container runtimes, Kubernetes distributions, proxies are customer responsibility. |
New features and capabilities of v2 and v1 retirement
When using the latest versions of our v2 container image, tag 2.0.0 and or higher, you would be able to use the following features:- Opentelemetry metrics: the self-hosted gateway can be configured to automatically collect and send metrics to an OpenTelemetry Collector. This allows you to bring your own metrics collection and reporting solution for the self-hosted gateway. Here you can find a list of supported metrics.
- New image tagging: we provide four tagging strategies to meet your needs regarding updates, stability, patching, and production environments.
- Helm chart: a new deployment option with multiple variables for you to configure at deployment time like backups, logs, OpenTelemetry, ingress, probes, and also Distributed Application Runtime (DAPR) configurations. This helm chart together with our sample Yaml files can be used for automated deployments with continuous integration and continuous delivery (CI and CD ) tools or even Gitops tools.
- Artifact registry: you can find all our artifacts in our centralized Microsoft Artifact Registry for all the container images provided by Microsoft.
- New EventGrid events: a new batch of supported EventGrid events related to the self-hosted gateway operations and configurations. The full list of events can be found here.
Enjoyed this article? Sign up for our newsletter to receive regular insights and stay connected.
