Multi-App Logging with Single Azure OpenAI Instance -- Using Azure API Management

Included in the repo are the two python scripts to test the APIM-AOAI configuration for two different apps.

Also included is the main APIM policy and the accompanying policy fragments.

The Event Hub Streaming Data

image

The APIM Logging Data

image

How to Query Data in APIM Logs, including Token to Dollars Calculation

image

API Settings: General, Subscription, Security

image

API Settings: Diagnostic Logs (Application Insights and Azure Monitor)

Applications Insights

image

Azure Monitor

image

APIM Policy

image

Policy Fragments

image

Subscription for Azure OpenAI

image

Access to Azure OpenAI Granted to APIM Instance

image

Some additional resources