Skip to main content
Azure OpenAI Service provides access to OpenAI’s models through Microsoft’s Azure infrastructure. It offers enterprise features including private networking, compliance certifications, and data residency guarantees.

Overview

Azure OpenAI differs from the standard OpenAI API:
  • Models are deployed to your own Azure resource
  • Access via your Azure resource endpoint, not api.openai.com
  • Models are referenced by deployment names you define
  • Supports both standard resource mode and Azure AI Foundry (custom base URL)

Supported Models

Any OpenAI model available in Azure can be deployed. Common deployments: All Azure-deployed models support native tool calling - profClaw assumes tool support for all Azure models.

Setup

1

Create an Azure OpenAI resource

In the Azure Portal, create an Azure OpenAI resource and deploy a model.
2

Get your credentials

From your Azure OpenAI resource, copy:
  • API key (under Keys and Endpoint)
  • Endpoint URL or Resource Name
  • Deployment name
3

Set environment variables

Option A - Resource Name mode (standard):
Option B - Base URL mode (AI Foundry / custom endpoint):
4

Verify

Environment Variables

string
required
Your Azure OpenAI API key.
string
Your Azure OpenAI resource name (e.g., my-openai-resource). Used in standard mode.
string
Full endpoint URL (e.g., https://my-resource.openai.azure.com). Used in AI Foundry / custom endpoint mode. Takes precedence over AZURE_OPENAI_RESOURCE_NAME.
string
Alias for AZURE_OPENAI_BASE_URL.
string
Default deployment name to use when no model is specified.
string
API version to use. Defaults to 2024-10-21.

Configuration Example

Model Aliases

When using the azure or azure-gpt alias, profClaw uses the deployment name from AZURE_OPENAI_DEPLOYMENT_NAME.

Usage Examples

Notes

  • Azure is ranked 3rd in auto-selection priority after Anthropic and OpenAI.
  • All Azure GPT-4+ deployments support native tool calling.
  • For private network setups, configure a custom base URL pointing to your private endpoint.
  • API version 2024-10-21 is the minimum supported for function calling with structured outputs.