Skip to main content

G8 vs Azure API Management: what runs in your network

Where G8 and Azure API Management run, what the self-hosted gateway needs from Azure, and how each handles environments, identity, audit, AI traffic and MCP.

Facts read from Microsoft's own documentation on
In short

G8 or Azure API Management: the short answer

G8 puts the gateway and the management plane in your infrastructure, offline if needed, with Active Directory sign-in and every console feature on every Environment. Azure API Management puts only the self-hosted gateway there, configured from an instance in Azure that it needs outbound connectivity to. Choose G8 when the console must run in your network. Choose Azure API Management when your teams work in Azure with Microsoft Entra ID and want its AI policies and public price list.

Side by side

What each product does, as its vendor documents it

The Azure API Management column repeats what Microsoft publishes, with the page it comes from; where the vendor does not say, the cell says so. The G8 column links to the article where each point was done on a real install, with screenshots. Tell us if something has changed.

DimensionG8Azure API Management
Control plane The console, its management API and its PostgreSQL database run in your network beside the gateway clusters they manage; no vendor-hosted part, no account with a vendor, nothing sent out.seen on a real install (G8 article with screenshots) Vendor cloud only. The self-hosted gateway is a data plane in your infrastructure, managed from the Azure API Management instance it is federated with.learn.microsoft.com (source, opens in a new tab)
Air-gapped operation Yes, by design: the images come from your registry, the license is a signed file checked locally, and the server never calls home; the OpenShift install is documented step by step.seen on a real install (G8 article with screenshots) No. The self-hosted gateway needs outbound connectivity to Azure on port 443; it sends a heartbeat every minute and checks for configuration every 10 seconds. During an outage it keeps running on its in-memory configuration, can restart from a configuration backup on a persistent volume, and telemetry sent to Azure is lost. Its access token is valid for at most 30 days and must be regenerated before it expires, or the gateway cannot download configuration; Microsoft Entra ID authentication is the alternative without token refresh.learn.microsoft.com (source, opens in a new tab)
Where it installs OpenShift and OKD from one Helm chart under the default restricted profile, Kubernetes (tested with k3s), Docker Compose, Linux virtual machines; one install, however many Environments.seen on a real install (G8 article with screenshots) Self-hosted gateway: a Linux container image for Docker, Kubernetes (Helm chart or YAML) or, in the vendor's words, any other container orchestration solution, and an Azure Arc extension; OpenShift and virtual machines are not named. Offered in the Developer tier (one gateway node) and the Premium tier, not in Consumption, Basic, Standard or the v2 tiers.learn.microsoft.com (source, opens in a new tab)
Licensing and price list Enterprise is licensed per gateway node and node type on a quote, support included; no public price list. Community manages one Environment with no fee and no node count.seen on a real install (G8 article with screenshots) Public price list: yes. The classic and v2 tiers are priced per unit by hour or month, the v2 tiers with requests above an included amount billed per million; Consumption is billed per API operation above an included amount. The self-hosted gateway costs extra in Premium and nothing extra in Developer. An Isolated tier is in preview and an AI Gateway tier has no price yet.azure.microsoft.com (source, opens in a new tab)
Free edition and open source The Community edition is free, obtained from the G8 team, and manages one Environment with the same console. G8 is not open source.seen on a real install (G8 article with screenshots) No free edition. The Consumption tier includes a block of API operations per subscription at no charge, and the Developer tier is paid, without SLA and for non-production use. Open source: not stated by vendor.azure.microsoft.com (source, opens in a new tab)
Audit of configuration changes Every change passes a role check and is written as an audit record before the engine applies it; the record carries the actor, the request id, the IP address and the object before and after with secrets masked on both sides. Kept 365 days by default in your PostgreSQL, with CSV export and a log line for your SIEM.seen on a real install (G8 article with screenshots) Activity logs record what, who and when for write operations (PUT, POST, DELETE) on the service; the vendor states they do not include read operations or operations performed in the Azure portal. Resource logs, enabled through a diagnostic setting, record the API requests the gateway processes.learn.microsoft.com (source, opens in a new tab)
Refused changes in the audit log Yes: a change a role forbids is a Denied record and one the engine refuses is a Failed record with the engine's reason, each with the actor, the request id and the IP address.seen on a real install (G8 article with screenshots) Activity logs record write operations with what, who and when; whether a refused operation is recorded with its reason: not stated by vendor on the monitoring tutorial.learn.microsoft.com (source, opens in a new tab)
Console roles and directory Sign-in with local accounts or Microsoft Active Directory; directory groups map to four built-in or custom roles, View or Manage per resource, assigned per Environment. A Viewer sees read-only forms, and a save attempt is refused with 403 and recorded.seen on a real install (G8 article with screenshots) Azure role-based access control: three built-in service roles (API Management Service Contributor, Reader and Operator), built-in workspace roles and custom roles, assigned to Microsoft Entra accounts and groups. On-premises Active Directory users and groups reach it after synchronization to Microsoft Entra ID with Microsoft Entra Connect or Cloud Sync.learn.microsoft.com (source, opens in a new tab)
Several environments from one console One console, several gateway clusters: each Environment has its own engine, log store, Prometheus, members and retention, and a Protected Environment asks for the resource name before a destructive action.seen on a real install (G8 article with screenshots) Workspaces inside one instance, each with its own administrative access and APIs, on the default managed gateway (v2 tiers) or on one or more workspace gateways (Premium, Premium v2). Offered in Basic v2, Standard v2, Premium and Premium v2; a workspace cannot be associated with a self-hosted gateway.learn.microsoft.com (source, opens in a new tab)
Promotion between environments Copy to environment from the console: the preview names the dependencies the target lacks, the secrets left behind and the lines that change, nothing is written until you create, and the copy is an audit record that names its source.seen on a real install (G8 article with screenshots) Microsoft's DevOps guidance: keep API definitions in Git and publish them to each API Management service from a CI/CD pipeline with the APIOps extractor and publisher, ARM templates or Terraform, one service per environment; APIOps supports REST and GraphQL APIs.learn.microsoft.com (source, opens in a new tab)
AI gateway features On the same Route as the REST API, in the same console: ai-proxy-multi routes to OpenAI, Anthropic, Azure OpenAI, Amazon Bedrock, Google Gemini, DeepSeek and OpenAI-compatible endpoints with fallback by priority and weight; ai-rate-limiting counts tokens per Consumer; ai-prompt-guard, content moderation and Lakera Guard; ai-cache exact and semantic.seen on a real install (G8 article with screenshots) AI gateway policies: llm-token-limit, llm-emit-token-metric, llm-semantic-cache-lookup and llm-semantic-cache-store (Azure Managed Redis or another RediSearch-compatible cache), content safety through Azure AI Content Safety, and backend pools with round-robin, weighted, priority and session-aware load balancing and a circuit breaker. A separate AI Gateway tier is in public preview.learn.microsoft.com (source, opens in a new tab)
MCP for AI agents openapi-to-mcp serves an API's OpenAPI operations as MCP tools on a Route, behind the Route's key-auth, per-Consumer limits and masked request records; mcp-bridge fronts an existing MCP server the same way.seen on a real install (G8 article with screenshots) Expose a REST API as an MCP server (operations become tools) and expose and govern existing MCP servers, in every tier except Consumption and on the self-hosted gateway. MCP resources and prompts are not supported, and neither are workspaces. Managing MCP servers through the REST API needs API version 2025-09-01-preview or later.learn.microsoft.com (source, opens in a new tab)
Identity for API callers OpenID Connect, LDAP, SAML, Keycloak authorization, JWT, API keys, HMAC-signed requests, basic authentication, mutual TLS; several on one Route with multi-auth, each a form drawn from the engine's own schema with a Raw JSON tab beside it.seen on a real install (G8 article with screenshots) Subscription keys, OAuth 2.0 tokens validated with validate-jwt or, for Microsoft Entra ID, validate-azure-ad-token, client certificates (mutual TLS) and caller IP filtering. LDAP and SAML for API callers: not stated by vendor.learn.microsoft.com (source, opens in a new tab)
Analytics and request records Analytics (requests, status share, p95, top Routes, Upstreams and Consumers), Traffic Explorer (one record per request, with gateway and upstream timing and the node that answered) and Alerts read from your own Prometheus 3.15 or later and Elasticsearch 8.15 or 9 or OpenSearch 2.18 or 3. Nothing is sent to a vendor.seen on a real install (G8 article with screenshots) Built-in analytics, Azure Monitor metrics and logs, Application Insights, Event Hubs and request tracing. Microsoft's comparison lists built-in API analytics and request logs in Azure Monitor as not supported on the self-hosted gateway, and states that policies it does not support are skipped during policy execution; it emits metrics through StatsD, for your Prometheus, or OpenTelemetry, and writes logs locally. Reading request records from your own Elasticsearch: not stated by vendor.learn.microsoft.com (source, opens in a new tab)
Masking of request records Headers, query parameters and body fields you name are masked by the gateway before a record is written, so the log store never holds a token; authorization, cookie and API-key headers are masked by default, and bodies are stored only when you turn capture on.seen on a real install (G8 article with screenshots) Diagnostic settings log the request and response headers you name and up to 8,192 body bytes per entry, with named headers and query parameters masked or hidden; bodies are not in the default settings. On the self-hosted gateway, request logs in Azure Monitor are not supported.learn.microsoft.com (source, opens in a new tab)
Alerts on errors and response time Alerts on error rate and response time in the console, read from your Prometheus and sent by email, with the audit entries drawn as markers on the request chart.seen on a real install (G8 article with screenshots) Azure Monitor alert rules on metrics such as Requests split by response code category, with action groups that send an email notification or call a webhook.learn.microsoft.com (source, opens in a new tab)

Which one fits

Choose G8 when
  • The management plane has to run in your network as well as the gateway, including a network without a route to Azure.
  • You run OpenShift or virtual machines and want the gateway and its console installed there with a Helm chart or a compose file.
  • Console sign-in has to come from your on-premises Active Directory directly, with directory groups mapped to roles per Environment, and the audit log of every change, refused ones included, has to be in your own database.
  • Your API callers use LDAP, SAML or Keycloak authorization, or you need several identity methods on one Route.
  • Request records and metrics must stay in your own Elasticsearch, OpenSearch and Prometheus, read from there by the console.
Choose Azure API Management when
  • Your teams, identities and backends are in Azure, and Microsoft Entra ID and Azure role-based access control are how you already govern access.
  • You want the AI gateway policies of API Management, llm-token-limit, semantic caching on Azure Managed Redis and Azure AI Content Safety, close to Azure OpenAI and Microsoft Foundry.
  • A public price list by tier and unit, with a Consumption tier that bills per API operation, matters more to you than a per-node license.
  • You need a gateway in your data centre for a few APIs while the control plane stays managed, and outbound HTTPS to Azure is acceptable.

Where the control plane is

Azure API Management has three components, the management plane, the gateway and the developer portal, and by default all three run in Azure. The self-hosted gateway is the one part you can run in your own infrastructure: a Linux container that is federated with an API Management instance, downloads its configuration from it, reports a heartbeat every minute and checks for changes every 10 seconds. When the connection drops, a running gateway continues on its in-memory configuration; a stopped one needs a configuration backup on a persistent volume to start again.

G8 runs the console, its PostgreSQL database and every G8 engine cluster in your network. There is no Azure-side part, so there is no connection to lose, and an install from a local registry works without internet access.

What an environment is

In Azure API Management, a workspace is a unit inside one instance: its own APIs, its own administrative access, and either the default managed gateway or one or more workspace gateways. Workspaces are offered in the Basic v2, Standard v2, Premium and Premium v2 tiers, and a workspace cannot be associated with a self-hosted gateway.

A G8 Environment is a whole gateway cluster: its own engine, its own log store and Prometheus, its own members and their roles. One console manages several, on OpenShift, Kubernetes, Docker or virtual machines, and a Route copied from Staging to Production is previewed before it is written.

Who may change what

Azure role-based access control with built-in service roles, workspace roles and custom roles, assigned to Microsoft Entra accounts and groups, is how access to Azure API Management is governed. On-premises Active Directory users and groups reach it after synchronization to Microsoft Entra ID.

G8 signs users in with local accounts or Microsoft Active Directory directly, maps directory groups to roles, and limits a role to one Environment. Every change passes the role check and is written as an audit record before the engine applies it; a refused change is a record too. Azure activity logs record write operations with what, who and when, and the vendor states they do not include read operations or operations performed in the portal.

AI traffic and MCP

Both products have an AI gateway. Azure API Management brings llm-token-limit, semantic caching with llm-semantic-cache-lookup and llm-semantic-cache-store on Azure Managed Redis, content safety through Azure AI Content Safety, and backend pools with load balancing and a circuit breaker; a separate AI Gateway tier is in public preview. G8 brings ai-proxy-multi with fallback between providers, ai-rate-limiting per Consumer, ai-prompt-guard, content moderation and Lakera Guard, and ai-cache exact and semantic, as Plugins on a Route.

For MCP, Azure API Management exposes a REST API’s operations as tools and governs existing MCP servers, on the self-hosted gateway as well, without MCP resources, prompts or workspaces. G8 does it with openapi-to-mcp and mcp-bridge on a Route; Securing MCP tools shows the authentication, the limits and the records on a real one.

Moving a change and hearing about a failure

Microsoft’s path from test to production is Git and a pipeline: the APIOps extractor and publisher, ARM templates or Terraform, one API Management service per environment. Alerts come from Azure Monitor rules on the Requests metric with an action group for email. On the self-hosted gateway, Microsoft’s comparison lists built-in analytics, request logs in Azure Monitor, the built-in cache and the credential manager as not supported, and unsupported policies are skipped at runtime. G8 copies a Route between Environments from its console with a preview, raises alerts from your Prometheus by email, and runs every console feature on every Environment.

Questions

Questions about G8 and Azure API Management

Does the Azure self-hosted gateway work without a connection to Azure?
Partly. It needs outbound connectivity to Azure on port 443, sends a heartbeat every minute and checks for configuration every 10 seconds. During an outage a running gateway keeps serving on its in-memory configuration and can restart from a backup on a persistent volume, but telemetry sent to Azure during the outage is lost. G8 has no connection to a vendor to lose: the console and the engines run in your network.
Can we run the self-hosted gateway on OpenShift?
Microsoft documents Docker, Kubernetes with a Helm chart or YAML, any other container orchestration solution, and an Azure Arc extension; OpenShift is not named on the pages read. G8 ships a Helm chart for OpenShift and OKD and installs on Kubernetes, Docker Compose and Linux virtual machines as well.
How do environments compare?
Azure API Management has workspaces inside one instance, with their own administrative access and gateways, in the Basic v2, Standard v2, Premium and Premium v2 tiers; a workspace cannot use a self-hosted gateway. A G8 Environment is a whole gateway cluster with its own engine, data stores and members, and one console manages several of them wherever they run.
Can both expose an API to AI agents as MCP tools?
Yes. Azure API Management exposes REST API operations as MCP tools and governs existing MCP servers, in every tier except Consumption and on the self-hosted gateway; MCP resources, prompts and workspaces are not supported. G8 does the same with the openapi-to-mcp and mcp-bridge Plugins on a Route, behind the Route's own authentication and limits.
Does the audit log cover every change?
Azure activity logs record what, who and when for write operations on the service, and the vendor states they do not include read operations or operations performed in the Azure portal. G8 writes an audit record for every change before the engine applies it, including changes a role or the engine refused, and keeps it 365 days by default.
Can our on-premises Active Directory groups give access to the console?
In Azure API Management, roles are assigned to Microsoft Entra accounts and groups, so on-premises users and groups reach it after synchronization with Microsoft Entra Connect or Cloud Sync. G8 binds to Microsoft Active Directory directly and maps directory groups to roles, per Environment.
Does the self-hosted gateway have every feature of the managed gateway?
No. Microsoft's feature comparison lists the built-in cache, API analytics, request logs in Azure Monitor, the credential manager and GraphQL resolvers as not supported on the self-hosted gateway, and states that configured policies the self-hosted gateway does not support are skipped during policy execution. Production use of the self-hosted gateway is in the Premium tier at an additional cost. In G8 every console feature works on every Environment you install.
How do we move an API from test to production?
Microsoft's guidance is a Git repository and a CI/CD pipeline: the APIOps extractor produces the API definition and the publisher applies it to the production service, with one API Management service per environment. In G8, Copy to environment shows the missing dependencies, the dropped secrets and a line diff in the console before anything is written.

Sources

Every Azure API Management statement above comes from one of these pages, read on the date shown.

Next step

See G8 in a demo

We’ll show you the console with APIs and AI traffic like yours, and answer the questions these articles leave open.

  1. 01Demo
  2. 02Proof of conceptOn Docker for a quick start, or on the infrastructure you plan to run G8 on.
  3. 03LicenseWe prepare a quote for your edition and nodes, and you receive a signed license file.