Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideIntegration & Security6 min read

Azure API Management Self-Hosted Gateway: When to Use It, Setup and Operations

An on-premises pattern for regulated and latency-sensitive traffic.

Authored byCo-Founder and Managing Partner, Duczer East
Part of the Insights topic: API Management & Integration
On this page
  1. When on premises
  2. Setup
  3. Connectivity
  4. Operations
  5. Where it can go wrong
  6. A pre-production test plan
  7. Sizing and placement

The Azure API Management self-hosted gateway is a container you run in your own environment that applies the same policies as the managed gateway while staying managed from your Azure instance. Use it when API traffic must stay next to the backend for latency, data transfer cost or compliance. It is available in the Developer and Premium tiers, and it still needs outbound connectivity to Azure.

It is the on-premises pattern behind our Azure API Management page. All facts below come from Microsoft's self-hosted gateway overview, checked November 2026.

When on premises

SituationSelf-hosted gateway fits?Why
Backends in a data center, clients inside itYesTraffic stays local; lower latency and data transfer
Data must not transit a public cloud regionOftenOnly config and telemetry go to Azure; confirm what your policy allows
Several clouds and sites, one control pointYesOne instance manages all gateways
Fully air-gapped networkNoNeeds an outbound path to Azure
Small team, simple cloud-only APIsNoThe managed gateway is simpler

Regulated teams also ask about on-premises AI gateways. The same split applies: policy and logging at a local gateway, configuration from the cloud. Confirm that each policy you rely on is supported in the self-hosted gateway before you design around it.

Setup

  1. Use a Premium instance for production. Developer is for testing and has no SLA.
  2. In the Azure portal, create a gateway resource and assign APIs to it.
  3. Choose how the gateway authenticates to Azure (see Microsoft's authentication options) and keep the token or key in your secret store.
  4. Deploy the container image to Kubernetes with the Helm chart, or to Docker. Pin an exact version tag in production, not a rolling tag such as v2.
  5. Turn on local configuration backup with a persistent volume so a restart during an outage works.
  6. Send traffic through a test API and watch the heartbeat in the portal.

Connectivity

  • Outbound TCP 443 to the instance's configuration endpoint, and to the instance IP address.
  • Optional endpoints for Application Insights, Azure Monitor, Entra ID and storage, depending on features.
  • Heartbeats every minute and configuration checks every 10 seconds, per Microsoft's documentation.
  • In an internal network, private connectivity to the configuration endpoint needs private DNS or a custom hostname through Application Gateway.

Ask the network team for a named allow list early. Public IP addresses behind some endpoints change, so use hostnames or service tags where the firewall allows.

Operations

TaskPractice
Version controlPin image tags, upgrade one gateway first, keep a rollback tag
ScalingRun at least two replicas per site; scale on CPU and request rate
TelemetrySend metrics to Azure Monitor or use local metrics; plan for gaps if the link drops
Outage testCut the link in a test and confirm running and restarted gateways behave as documented
TLSCheck supported protocols and ciphers; TLS 1.2 is the default
LimitsTLS session resumption and client certificate renegotiation are not available; present client certificates in the initial handshake

Where it can go wrong

  • A rolling image tag upgrades some pods and not others during scaling.
  • A firewall rule blocks the configuration endpoint after a change window.
  • A policy that works in the managed gateway is not supported in the self-hosted one.
  • Nobody owns the container platform that now hosts a critical gateway.

A pre-production test plan

TestPass when
Cut the link to Azure with traffic runningTraffic continues without errors
Restart a gateway during the cutIt starts from the local backup, if you enabled one
Restore the linkConfiguration changes made during the cut arrive
Roll out a new imageNo dropped requests with two or more replicas
Revoke the gateway's credentialIt stops receiving configuration and the alert fires
Fail a backendPolicies return the designed error

Keep the results with the change record. For regulated workloads, this is the evidence an examiner asks for when they want to know what happens if the cloud link fails.

Sizing and placement

Place one gateway group per site that holds backends, not one per application. Size from measured request rate and payload size, and test with your heaviest policy set, since policies such as validation and transformation add CPU. Start with two replicas per site, set resource requests from the test, and revisit after a month of real traffic. Keep the gateway in the same network zone as the backends it serves so that traffic does not cross a firewall twice.

Related: Azure API Management consulting · Use case: Azure API Management as an AI gateway · AI gateway · Azure APIM security checklist · Azure API Management vs Apigee

Frequently asked questions

Which tiers support the self-hosted gateway?

Developer and Premium, per Microsoft's documentation. Developer has no SLA, so production use points to Premium.

Does the gateway need to reach Azure?

Yes. It needs outbound TCP connectivity on port 443 to the instance's configuration endpoint and, for features you use, to monitoring and identity endpoints.

What happens if connectivity to Azure drops?

Running gateways keep working from an in-memory copy of the configuration. With configuration backup on, a stopped gateway can also restart from the backup.

How do I deploy it?

As a Linux container image from the Microsoft Artifact Registry on Docker or Kubernetes. Microsoft documents a Helm chart and an Azure Arc extension.

Can it run in an air-gapped network?

Not fully. The gateway needs the outbound path to its Azure instance for configuration and heartbeat. Plan the allowed route or choose another gateway for sealed networks.

Authored by

Co-Founder and Managing Partner, Duczer East

David deBoisblanc is co-founder of Duczer East and a digital transformation and innovation leader in data-centric AI, agentic systems, and enterprise integration. He shapes intent-driven AI solutions that modernize how organizations use data, drawing on deep experience with Cloudera and complex enterprise integration landscapes.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote