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
2
Configure deployment
- Select subscription and resource group
- Choose region
- Review default model (GPT-4.1)
- Click Review + Create
3
Wait for completion
Deployment typically takes 5-10 minutes
- Foundry account
- Foundry project
- GPT-4.1 model deployment
- Microsoft-managed Key Vault
Standard Setup Deployment
2
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
3
Wait for completion
Deployment typically takes 10-15 minutes
- 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:
To deploy a different model, update
modelName and modelVersion in the template parameters.
See model region support for agent-compatible models.
Verify Deployment
After deployment completes:1
Check Azure Portal
- Navigate to your resource group
- Confirm resources exist:
- Basic: Account, project, model
- Standard: Plus Storage, Cosmos DB, AI Search
2
Get project endpoint
- Open your Foundry project
- Navigate to Overview
- Copy the endpoint URL:
3
Test connection
Troubleshooting
Deployment Failures
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