
Microsoft Azure API Management
BetaThis source is currently in beta. It works end to end, but you may still hit rough edges. Let us know if you do.
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Microsoft Azure API Management to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Sync Azure API Management gateway logs into the PostHog Data warehouse: requests, LLM token usage, and WebSocket connections.
API Management must send its logs to a Log Analytics workspace. In the API Management instance, add a diagnostic setting that sends the GatewayLogs, GatewayLlmLogs and WebSocketConnectionLogs categories to the workspace, with Resource specific as the destination table.
Register an app in Microsoft Entra ID, create a client secret for it, and give its service principal the Log Analytics Reader role on the workspace. Then enter the directory (tenant) ID, the application (client) ID, the secret value, and the workspace ID from the workspace's Overview page.
Configuration
| Option | Type | Required |
|---|---|---|
Directory (tenant) ID | text | Yes |
Application (client) ID | text | Yes |
Client secret | password | Yes |
Workspace ID | text | Yes |
Linking Microsoft Azure API Management to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Microsoft Azure API Management
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
ApiManagementGatewayLogs | One row per request that passed through the API Management gateway, with timings, response codes, and the API, operation, product, and subscription it matched. | Incremental, Full refresh | _IngestionTime | — |
ApiManagementGatewayLlmLog | One row per language model request that passed through the API Management AI gateway, with token counts and the model used. | Incremental, Full refresh | _IngestionTime | — |
ApiManagementWebSocketConnectionLogs | One row per WebSocket connection event that passed through the API Management gateway. | Incremental, Full refresh | _IngestionTime | — |











