Agent Environment Setup
This guide walks you through deploying the infrastructure needed to create agents with Foundry Agent Service.Prerequisites
- Azure subscription (Create one for free)
- Azure CLI installed and authenticated
- Appropriate permissions:
- Azure AI Account Owner - Create account and project
- Role Based Access Control Administrator - Assign RBAC (Standard Setup only)
- Azure AI User - Create and edit agents
Choose Your Setup
Agent Service offers three environment configurations:- Basic Setup
- Standard Setup
- Standard with Private Network
Quick start with managed resourcesIncludes:
- Microsoft-managed storage
- Compatible with OpenAI Assistants API
- Support for non-OpenAI models
- Azure AI Search and Bing tools
Deployment Options
Basic Setup Deployment
Configure deployment
- Select subscription and resource group
- Choose region
- Review default model (GPT-4.1)
- Click Review + Create
- Foundry account
- Foundry project
- GPT-4.1 model deployment
- Microsoft-managed Key Vault
Standard Setup Deployment
Configure deployment
- Select subscription and resource group
- Choose region
- Optionally provide existing resource IDs:
- Azure Storage
- Azure Cosmos DB
- Azure AI Search
- Click Review + Create
- Everything from Basic Setup
- Azure Storage account (or use existing)
- Azure Cosmos DB account (or use existing)
- Azure AI Search service (or use existing)
- Project connections
- RBAC role assignments
- Capability hosts
Model Selection
The deployment templates support customizing the deployed model: Default configuration:| Parameter | Default Value |
|---|---|
| modelName | gpt-4.1 |
| modelFormat | OpenAI (Azure OpenAI) |
| modelVersion | 2025-04-14 |
| modelSkuName | GlobalStandard |
| modelLocation | eastus |
modelName and modelVersion in the template parameters.
See model region support for agent-compatible models.
Verify Deployment
After deployment completes:Check Azure Portal
- Navigate to your resource group
- Confirm resources exist:
- Basic: Account, project, model
- Standard: Plus Storage, Cosmos DB, AI Search
Troubleshooting
Deployment Failures
| Issue | Cause | Solution |
|---|---|---|
| Quota error | Insufficient quota for model | Request quota increase or select different region |
| Permission denied | Missing RBAC Administrator role | Ask subscription owner to grant required role |
| Resources created but agent fails | Project not connected properly | Verify connections in Project settings > Connected resources |
| Model not available | Model not in selected region | Check model region support |
Common Issues
Insufficient Cosmos DB Throughput
Insufficient Cosmos DB Throughput
Error: Capability host provisioning failsCause: Cosmos DB doesn’t have minimum 3,000 RU/sSolution: Increase throughput or switch to Provisioned mode
Region Not Supported
Region Not Supported
Error: Deployment fails with region errorCause: Agent Service not available in selected regionSolution: Choose a supported region:
- East US
- West Europe
- Southeast Asia
- Check model region support for the full list
Model Not Available
Model Not Available
Error: Model deployment failsCause: Selected model not available in regionSolution:
- Check model availability
- Select compatible model
- Or deploy to different region
Next Steps
Create Agent
Build your first agent
Standard Setup
Configure enterprise features
Virtual Networks
Add private network isolation
Agent Tools
Explore agent capabilities