Build AI Agents with Azure OpenAI
OpenAI models hosted on Microsoft Azure with enterprise security, compliance, and regional deployment.
Available Azure OpenAI Models
| Model | ID |
|---|---|
| GPT-4o | gpt-4o |
| GPT-4 Turbo | gpt-4-turbo |
| GPT-3.5 Turbo | gpt-35-turbo |
Why use Azure OpenAI for AI agents?
Enterprise compliance
Regional deployment
Azure integration
SLA guarantees
Best use cases
- Enterprise AI
- Regulated industries
- Azure ecosystem
- Data residency requirements
Quick start code
agent.py
from agno.agent import Agent
from agno.models.azure import AzureOpenAI
agent = Agent(
name="My Azure OpenAI Agent",
model=AzureOpenAI(id="gpt-4o"),
instructions=["You are a helpful assistant."],
markdown=True,
)
agent.print_response("Hello! What can you help me with?")Install: pip install agno Then set AZURE_OPENAI_API_KEY