Foundry Infrastructure and Deployment Options
30-second answer
A Foundry resource (kind AIServices) holds model deployments, networking, keys and identity. Projects inside it separate teams and apps. For agents, the basic setup uses Microsoft-managed storage, and the standard setup keeps threads, files and vectors in your own Cosmos DB, Storage and Azure AI Search, so you control retention, encryption and networking. Deployment types: Global Standard (best throughput, data may be processed anywhere), Data Zone Standard (stays in the EU or US zone), Standard (one geography), Provisioned (reserved PTUs for steady latency) and Global Batch (cheaper, results within 24 hours).
Simulate it » No Azure account neededExam objective: 1.2.1 Design Azure infrastructure for AI apps and agent-based solutions. 1.2.2 Choose appropriate deployment options. (Skills measured as of April 16, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
In the Azure portal, search for <strong>Microsoft Foundry</strong>.
👆 Click the glowing item in the portal to continue
Read the steps as text
- In the Azure portal, search for Microsoft Foundry.
- Type foundry in the search bar and pick Microsoft Foundry under Services.
- Select + Create. One Foundry resource can hold many projects, so plan one per environment or team boundary.
- Give it a name, a region where your models are offered, and a default project.
- Basic keeps agent data in Microsoft-managed storage. Standard keeps it in resources you own, so you control networking, keys and retention.
- For a private setup, disable public access and add a private endpoint. Agents reach your private resources through a subnet delegated to Microsoft.App/environments.
- Keep the system-assigned managed identity on. Foundry uses it to reach Storage, Search and Key Vault without secrets.
- Review and Create. The resource type is Microsoft.CognitiveServices/accounts, kind AIServices; projects are accounts/projects.
- Deployment done.
- Each project is a development boundary with its own agents, files, evaluations and managed identity. Deployments, networking and keys stay at the resource level and are shared.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
Resource, projects and deployment types
One Foundry resource holds deployments, networking and keys. Projects inside it isolate teams. Global deployments may process anywhere, Data Zone stays in the EU or US zone, Standard stays in one region. The standard agent setup keeps threads, files and vectors in your own Cosmos DB, Storage and AI Search.
🤔 What happens if…
Read this tour as text
- Pick the right model or tool. A router in your app sends each job to the cheapest thing that does it well: a reasoning model for multistep problems, a small language model for high-volume labelling, a multimodal model for photos, and a Foundry Tool such as Content Understanding for invoices.
- Where an agent gets its facts. Curated company content lives in a Foundry IQ knowledge base on Azure AI Search. Files a user drops into the chat go to file search. What the agent learns about the user across sessions goes to memory (user profile, chat summary).
- Resource, projects and deployment types. One Foundry resource holds deployments, networking and keys. Projects inside it isolate teams. Global deployments may process anywhere, Data Zone stays in the EU or US zone, Standard stays in one region. The standard agent setup keeps threads, files and vectors in your own Cosmos DB, Storage and AI Search.
- Configure deployments and agent versions. A deployment pins a model, a model version, a deployment type, capacity (TPM) and a guardrail. An agent gets a new version every time you change it; the endpoint serves the version you choose, so you can roll back.
- CI/CD with an evaluation gate. The agent definition, prompts and Bicep live in Git. The pipeline signs in with workload identity federation (no secret), runs an evaluation on a test set, and only then promotes from dev to test to prod projects.
- Quotas, 429s, spillover and budgets. Quota is tokens per minute per model, per region, per deployment type. Each deployment gets a slice; RPM comes with it. Go over and you get HTTP 429 with a retry-after header. Provisioned throughput can spill over to a standard deployment, and a cost control can stop a project at its token budget.
- Monitor models, agents and search. Azure Monitor metrics show requests, tokens, latency and errors. Application Insights holds traces, and continuous evaluation scores a sample of live answers for groundedness and safety. For Azure AI Search, watch indexer runs, document counts, search latency and throttled queries.
- Keyless and private. The app uses a managed identity and Microsoft Entra ID tokens, with the Foundry User role on the resource. Local (key) auth is turned off. Public network access is disabled and a private endpoint in your VNet is the only way in.
- Guardrails at four intervention points. A guardrail is a set of controls: a risk (hate, violence, prompt attacks, indirect attacks, protected material, PII), the intervention point (user input, tool call, tool response, output) and the action (annotate, or annotate and block).
- Evaluate, red team and trace. Evaluators score answers: groundedness, relevance, coherence, safety, and agent ones like tool call accuracy and task adherence. The AI red teaming agent attacks before launch. Traces in Application Insights record every model call, tool call and approval for audit.
- Govern what the agent may do. Give the agent only the tools it needs (allowed tools), make risky tools require approval from a human, let the tool call guardrail check what it sends, and limit where a hosted agent can connect with network egress controls.
Contoso's data must stay in the EU. Create the Foundry resource, deploy with a Data Zone deployment type, pin the version and capacity, then publish a new agent version and roll it back.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
Legal says EU customer prompts must stay in the EU and agent chats must live in storage you control.
😊 THE SOLUTION
Use Data Zone deployments and the standard agent setup with your own resources.
- Prompts processed anywhere✓ Data Zone Standard
- Chats in Microsoft-managed storage✓ Standard setup: your Cosmos DB, Storage, AI Search
- Teams tripping over each other✓ One project per team
Start with a question
Do you rent a desk in a shared office, or build your own floor?
Contoso is moving a support agent from prototype to production. The prototype ran in a shared sandbox. Now legal says customer chats must stay in the EU, security wants the stored conversations in a database the company owns, and finance wants a steady monthly cost for the busy daytime traffic.
Those three sentences are three infrastructure decisions: where processing happens, who owns the agent’s data, and how capacity is bought.
Explain it like I’m 10
The technical explanation
The resources behind a Foundry app
Resource group
Foundry resource (AIServices) <- deployments, keys, identity, networking
Project: support-bot <- agents, files, evaluations, connections
Application Insights <- traces and metrics
Azure AI Search <- knowledge bases and indexes (optional)
Storage account, Cosmos DB <- agent data (standard setup)
Virtual network + private endpoints (when private)
Plan one Foundry resource per environment or security boundary, and projects per team or app. Region matters: pick it for model availability, quota, and where data must stay. Not every model exists in every region.
Portal: Azure portal → Create a resource → Microsoft Foundry → Basics (subscription, resource group, name, region, default project name) → Storage, Networking, Identity → Review + create.
az cognitiveservices account create -n contoso-ai -g rg-agents -l westeurope --kind AIServices --sku S0 --custom-domain contoso-ai
Basic or standard agent setup
| Setup | Agent data lives in | Choose it when |
|---|---|---|
| Basic | Microsoft-managed storage | Prototypes, low-risk data, you want to start fast |
| Standard | Your Cosmos DB (threads), Storage (files) and Azure AI Search (vectors) | You need data ownership, customer-managed keys, private networking or audit |
Deployment types
| Type | Billing | Data processing | Use it for |
|---|---|---|---|
| Global Standard | Pay per token | Any Azure region | Most workloads that have no residency limit; newest models first |
| Data Zone Standard | Pay per token | Inside the EU or US zone | Residency without a single-region limit |
| Standard | Pay per token | One Azure geography | Strict single-region rules |
| Provisioned (Global, Data Zone, regional) | Reserved PTUs | As the type says | Steady high volume that needs predictable latency |
| Global Batch | Pay per token, lower price | Any region | Offline jobs where 24 hours is fine |
Deployment types differ in quota, and a model may support only some of them. Check the model card.
Architect level Why a Global deployment isn't a data leak
A Global deployment may process prompts and responses in any region where the model runs. The data at rest still stays in the geography you chose for the resource. Whether that’s acceptable depends on your contract and regulation, not on a rule of thumb. If anyone needs a yes or no on “where is my data processed”, the deployment type is the answer, and Microsoft’s data residency page is the source.
Real-world business scenario
Northwind Health (fictional)
- The problem
- A triage assistant had to keep all chat data in the EU, keep transcripts in storage the hospital controls, and stay fast at 9 AM when every clinic opens.
- What they used
- A Foundry resource in West Europe, a project per clinic group, the standard agent setup with the hospital's Cosmos DB, Storage and AI Search, a Data Zone Provisioned deployment for the morning peak, and Global Batch for overnight summaries.
- Why that choice
- Data Zone kept processing in the EU, the standard setup put transcripts under the hospital's keys and retention, and provisioned capacity avoided throttling at the peak.
- The result
- The privacy review passed first time, and morning response times stayed steady through the clinic rush.
When to use it and when not to
✓ Use it when…
- Residency, ownership or audit rules decide where data lives.
- Traffic is steady enough to justify reserved capacity (Provisioned).
- Work can wait up to 24 hours (Global Batch).
✕ Think twice when…
- You pick Provisioned for a spiky, low-volume app and pay for idle capacity.
- You use the basic agent setup for regulated data.
- You choose a region without checking that your model and quota exist there.
↔ Alternatives to consider
- Global Standard when speed and price matter more than residency.
- Standard (regional) when a rule requires a single geography.
- A separate resource per environment when dev and prod need different networking and keys.
Test yourself with exercises
5 original practice questions in the AI-103 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a Foundry resource and a project?
Model answer
The resource is the Azure resource that owns the deployments, keys, networking and identity. A project is a workspace inside it for one team or app, with its own agents, files and access. I'd create one resource per environment and boundary, and projects for the teams that share it.
Intermediate When do you choose the standard agent setup?
Model answer
When I need to control where agent data lives: customer-managed keys, private networking, retention rules or audit. It puts threads in my Cosmos DB, files in my Storage account and vectors in my Azure AI Search. The basic setup is quicker and fine for prototypes or low-risk data.
Experienced developer A customer says data must not leave the EU. Which deployment type?
Model answer
Data Zone Standard, or Data Zone Provisioned if I need reserved capacity. Global deployments may process requests in any region. A regional Standard deployment would also keep data in one geography, but Data Zone gives better capacity and the EU residency they asked for. I'd also check that the model I want is offered in that zone.
Scenario Marketing wants 50,000 product descriptions rewritten by morning. Chat traffic is steady all day. How do you deploy?
Model answer
Two deployments. Provisioned or Standard for the steady chat traffic. Global Batch for the overnight job, because it's cheaper and the 24-hour window is fine. Batch also keeps that job from using up the chat deployment's quota.
Quick revision
Key points
- One Foundry resource holds deployments, keys, networking and identity. Projects isolate teams and apps.
- Standard agent setup puts agent data in your own Cosmos DB, Storage and AI Search. Basic uses managed storage.
- Global = best capacity, any region. Data Zone = EU or US zone. Standard = one geography.
- Provisioned gives reserved, predictable throughput. Global Batch is cheaper for jobs that can wait up to 24 hours.
- Pick region by model availability, quota and where data must stay.
Important terminology
- Foundry resource
- The Azure resource (Microsoft.CognitiveServices/accounts, kind AIServices) that holds model deployments, keys, networking and identity for your Foundry projects.
- Foundry project
- A workspace inside a Foundry resource for one team or app. It has its own agents, files, connections, evaluations and access control.
- Standard agent setup
- An agent setup where threads, files and vector data live in your own Cosmos DB, Storage account and Azure AI Search, instead of Microsoft-managed storage.
- Data Zone deployment
- A deployment type that processes data only inside a data zone, such as the EU or the US, while still pooling capacity across regions in that zone.
- Provisioned throughput (PTU)
- Reserved model capacity that gives predictable latency and cost for steady, high-volume workloads. Billed for the capacity, whether you use it or not.
- Global Batch
- A deployment type for large offline jobs. You upload a file of requests and get results within 24 hours at a lower price.
Common mistakes
- Choosing a Global deployment when a contract says data stays in the EU.
- Using the basic agent setup where customer-managed keys or private networking are required.
- Putting every team's work in one project with shared access.
Exam tips
- "Data must remain in the EU" = Data Zone (or regional Standard).
- "Predictable latency at steady high volume" = Provisioned.
- "Process a large file of requests overnight, lowest price" = Global Batch.
- "Control where agent threads and files are stored" = standard agent setup.
Five quick revision questions
-
1.Which resource kind is a Foundry resource?Show
AIServices (Microsoft.CognitiveServices/accounts).
-
2.Where does the standard agent setup keep thread data?Show
In your own Cosmos DB account.
-
3.Which deployment type keeps processing inside the EU or US zone?Show
Data Zone Standard (or Data Zone Provisioned).
-
4.Which deployment type suits an overnight bulk job?Show
Global Batch.
-
5.What does a Foundry project give you inside a resource?Show
A separate workspace with its own agents, files, connections and access.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Configure Model and Agent Deployments
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.