Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 3 of 39
❮Prev Next❯

Foundry Infrastructure and Deployment Options

Module 1: Plan & Manage ⏱ 10 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    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 needed

    Exam 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.

    Azure portal: Create a Foundry resource and project for agents Create a Foundry resource and a project with the standard agent setup.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    In the Azure portal, search for <strong>Microsoft Foundry</strong>.

    👆 Click the glowing item in the portal to continue

    Read the steps as text
    1. In the Azure portal, search for Microsoft Foundry.
    2. Type foundry in the search bar and pick Microsoft Foundry under Services.
    3. Select + Create. One Foundry resource can hold many projects, so plan one per environment or team boundary.
    4. Give it a name, a region where your models are offered, and a default project.
    5. Basic keeps agent data in Microsoft-managed storage. Standard keeps it in resources you own, so you control networking, keys and retention.
    6. 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.
    7. Keep the system-assigned managed identity on. Foundry uses it to reach Storage, Search and Key Vault without secrets.
    8. Review and Create. The resource type is Microsoft.CognitiveServices/accounts, kind AIServices; projects are accounts/projects.
    9. Deployment done.
    10. 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.

    😟 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
    🛠️ Solved with: Foundry resource, projects and deployment types

    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

    SetupAgent data lives inChoose it when
    BasicMicrosoft-managed storagePrototypes, low-risk data, you want to start fast
    StandardYour Cosmos DB (threads), Storage (files) and Azure AI Search (vectors)You need data ownership, customer-managed keys, private networking or audit

    Deployment types

    TypeBillingData processingUse it for
    Global StandardPay per tokenAny Azure regionMost workloads that have no residency limit; newest models first
    Data Zone StandardPay per tokenInside the EU or US zoneResidency without a single-region limit
    StandardPay per tokenOne Azure geographyStrict single-region rules
    Provisioned (Global, Data Zone, regional)Reserved PTUsAs the type saysSteady high volume that needs predictable latency
    Global BatchPay per token, lower priceAny regionOffline 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

    Healthcare

    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.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    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.

    Question 1

    Question 1 of 5

    A contract requires that prompts and responses are processed only within the EU, while still pooling capacity across EU regions. Which deployment type should you choose?

    Question 2

    Question 2 of 5

    A chat app has steady, high daily traffic and needs predictable latency. Which deployment type should you choose?

    Question 3

    Question 3 of 5

    A hospital must keep agent threads, uploaded files and vector data in storage that it owns and encrypts with its own keys.

    Which Foundry Agent Service setup should you use?

    Question 4

    Question 4 of 5

    You need two teams to work in one Foundry resource with separate agents, files and access control. What should you create?

    Question 5

    Question 5 of 5

    A company must rewrite 50,000 product descriptions by morning at the lowest price. No user waits for the results. Which deployment type should you choose?

    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. 1.Which resource kind is a Foundry resource?Show

      AIServices (Microsoft.CognitiveServices/accounts).

    2. 2.Where does the standard agent setup keep thread data?Show

      In your own Cosmos DB account.

    3. 3.Which deployment type keeps processing inside the EU or US zone?Show

      Data Zone Standard (or Data Zone Provisioned).

    4. 4.Which deployment type suits an overnight bulk job?Show

      Global Batch.

    5. 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

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.