Azure guides
WSO2 API Platform works alongside the Microsoft Azure services you already use. Govern Azure OpenAI and Azure AI Foundry traffic, moderate content with Azure AI Content Safety, secure APIs with Microsoft Entra ID, and send gateway telemetry to Azure Monitor.
WSO2 hosts the control plane and the gateways.
AI Gateway with Azure OpenAI and Azure AI Foundry
Route, secure, and govern traffic to your Azure model deployments through WSO2 AI Gateway.
Azure OpenAI and Azure AI Foundry as LLM providers
Point the gateway at your Azure deployment. The gateway stores the deployment key, so your applications don't need it.
- Create an AI API for Azure OpenAI Cloud console
- Configure an LLM provider AI Workspace
- Azure OpenAI provider AI Gateway
- Azure AI Foundry provider AI Gateway
- Configure an LLM provider AI Workspace
OpenAI-format requests
Keep clients on the OpenAI request format while the gateway routes to your Azure deployment.
- Call Azure OpenAI through the gateway AI Workspace
- Call Azure AI Foundry through the gateway AI Workspace
- OpenAI-format compatibility AI Gateway
Azure cost tracking
The Azure LLM Cost policy maps each call to your deployment's pricing, so Azure spend appears alongside other providers.
- Azure LLM Cost policy Policy Hub
- Cost control and budgets AI Gateway
Azure AI Content Safety
Check prompts and responses against Azure AI Content Safety categories and severity thresholds.
- Azure Content Safety content moderation Cloud console
- Azure Content Safety guardrail AI Workspace
- Azure Content Safety policy Policy Hub
- Azure Content Safety policy Policy Hub
- Guardrails catalogue AI Gateway
Semantic caching and guardrails
Semantic caching and the semantic prompt guard compare prompts by meaning, and can use an Azure OpenAI embedding deployment that you set in the policy or gateway configuration.
- Semantic cache Cloud console
- Semantic cache policy AI Workspace
- Semantic prompt guard policy Policy Hub
- Semantic caching AI Gateway
- Embedding providers for semantic caching AI Gateway
- Semantic Cache policy Policy Hub
- Semantic prompt guard policy Policy Hub
Token limits, semantic caching, and the other AI API policies work the same way for every provider. See AI APIs.
Routing, token limits, cost control, and the other AI Workspace policies work the same way for every provider. See the AI Workspace overview.
Routing, token limits, cost control, and the gateway's other policies work the same way for every provider. See the AI Gateway documentation.
Microsoft Entra ID
Use Microsoft Entra ID (formerly Azure AD) to authorize calls to your API proxies.
Authorize API calls with Entra ID tokens
Register Entra ID as a key manager, and require Entra ID tokens on your API proxies.
- Secure API access with Azure AD Cloud console
- Configure Azure AD as an external key manager Cloud console
Azure Monitor
Send the metrics and traces of a gateway you run to Azure Monitor through an OpenTelemetry Collector.
Metrics and traces
Point the collector at Azure Monitor.
- Send AI Gateway traces to Azure Monitor AI Gateway
- Send API Gateway metrics to Azure Monitor API Gateway
- Send API Gateway traces to Azure Monitor API Gateway
- Send AI Gateway traces to Azure Monitor AI Gateway
Architecture and responsibility model
WSO2 API Platform and Azure split the work like this:
| Scenario | WSO2 role | Azure role | Runtime traffic |
|---|---|---|---|
| Azure OpenAI and AI Foundry through AI Gateway | Proxies and governs LLM requests, and tracks cost per deployment | Hosts the model deployments | Goes through WSO2 AI Gateway to your Azure deployment |
| Azure AI Content Safety | Runs the guardrail and blocks or passes the request | Scores the content | The gateway calls Content Safety alongside each request |
| Entra ID and Azure Monitor | Validates Entra ID tokens and emits telemetry | Issues tokens, and stores and displays telemetry | API traffic goes through the WSO2 gateway, and telemetry goes to Azure Monitor |
Learn more
Related pages in the Microsoft documentation:
To browse every guide by goal, see the Guides overview.
Was this page helpful?