Microsoft Foundry
Microsoft Foundry (Azure AI Foundry) is the simplified way to use AI models on Azure.
Basic Example
Use the Completions API setup:
client<llm> MyClient {
provider "openai-generic"
options {
base_url "https://your-resource.openai.azure.com/openai/v1/"
api_key env.AZURE_AI_FOUNDRY_API_KEY
model "gpt-4o-mini"
}
}
BAML-Specific Options
| Option | Type | Default | Description |
|---|---|---|---|
base_url | string | - | Azure AI Foundry endpoint |
api_key | string | env.AZURE_AI_FOUNDRY_API_KEY | API key |
model | string | - | Deployed model name |
Getting Credentials
- Go to ai.azure.com
- Navigate to the Models sidebar
- Click on your deployed model
- Copy the API key and endpoint URL