Your profile

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

Lesson 8 of 30
❮Prev Next❯

Model Deployment Options and Parameters

Module 1: AI Concepts ⏱ 9 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 deployment makes a model callable from your Foundry resource, and the deployment type decides where requests are processed and how you pay. Global Standard (pay per token) is the usual starting point, Data Zone Standard keeps processing inside the US, EU or APAC, Provisioned reserves capacity for steady, low-latency traffic, and Batch runs large jobs asynchronously at about half the price. Parameters such as temperature, top_p, max output tokens and stop sequences then shape each response.

    Simulate it » No Azure account needed

    Exam objective: 1.2.3 Identify appropriate model deployment options and configuration parameters. (Skills measured as of April 15, 2026)

    Simulations

    Feel it before you read it. No account needed, nothing leaves this page.

    Azure portal: Deploy a model and chat with it Pick a deployment type, then tune the parameters.
    </> Embed

    Embed this simulation

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

    Loading the portal…

    Open <strong>Models + endpoints</strong> and select <strong>+ Deploy model</strong> ➜ *Deploy base model* ➜ <strong>gpt-4.1-mini</strong>.

    👆 Click the glowing item in the portal to continue

    Read the steps as text
    1. Open Models + endpoints and select + Deploy model ➜ Deploy base model ➜ gpt-4.1-mini.
    2. Choose the deployment name and deployment type.
    3. The deployment is Succeeded. It has its own endpoint, rate limit and guardrail.
    4. Select Open in playground. The system message sets the rules; parameters tune the answers.
    5. Select View code to get the same call in Python, ready for your app.

    🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.

    😟 THE PROBLEM

    Your overnight job of 2 million reviews costs as much as live chat.

    😊 THE SOLUTION

    Match the deployment type to the workload, then tune parameters.

    • Big jobs that can wait✓ Global Batch, about half price
    • Data must stay in the EU✓ Data Zone Standard
    • Steady heavy traffic✓ Provisioned throughput
    🛠️ Solved with: Deployment types

    Start with a question

    Do you take an auto, a rented car or a booked bus for your trip?

    An auto is great for a quick ride: you pay per trip and go. If you travel the same route every day, a monthly rented car with a driver works out cheaper and you always know it’s there. And if a hundred people need to get to a wedding by evening, you book a bus and nobody minds that it leaves later.

    Deploying an AI model is the same choice. Pay per token, reserve capacity, or send a big batch and collect the results later. Once you’ve chosen, you tune how the model drives with parameters.

    Explain it like I’m 10

    The technical explanation

    Before your app can call a model in Microsoft Foundry, you deploy it inside your Foundry resource and give the deployment a name. Your code then sends that deployment name as the model. One model can have several deployments with different types and settings.

    Deployment types

    Deployment typeWhere processing happensHow you payPick it when
    Global StandardAny Azure region Microsoft routes toPay per tokenYou’re starting out, want the newest models and high default quota
    Data Zone StandardInside one data zone (US, EU or APAC)Pay per tokenA rule says data must be processed within that zone
    StandardThe resource’s own geographyPay per tokenYou need processing in one geography and lower volume
    Global / Data Zone / Regional ProvisionedSame split as aboveReserved capacity in PTUsSteady, high, predictable traffic that needs low latency variance
    Global Batch / Data Zone BatchGlobal or within a data zoneAbout 50% cheaper per tokenBig, non-urgent jobs sent as a file, 24-hour target
    DeveloperGlobalPay per token, no SLAEvaluating fine-tuned models before production

    Two more options sit beside these. Managed compute runs open models on virtual machines you pay for by the hour. Instant access models (preview) can be called by name with no deployment step at all.

    Whatever type you pick, data at rest stays in your resource’s geography. The type only changes where a request is processed.

    1. 1 Pick a model

      From the model catalog.

    2. 2 Choose a deployment type

      Global Standard, Data Zone, Provisioned, Batch…

    3. 3 Name the deployment

      Your code uses this name as the model.

    4. 4 Set parameters

      Temperature, max tokens, stop sequences.

    5. 5 Call it

      Playground, SDK or REST.

    From model to answer

    Parameters

    ParameterWhat it controlsTypical use
    Temperature (0 to 2)Randomness of word choice. Lower = focused and repeatable0 to 0.3 for facts and extraction, around 1 for creative ideas
    Top_pOnly consider the most likely tokens whose probabilities add up to pAnother way to control randomness. Change this or temperature, not both
    Max output tokensThe longest the reply can beKeep answers short and costs predictable
    Stop sequencesText that makes the model stop when it would produce itEnd a list after one item, stop at “User:”
    Frequency penaltyDiscourages repeating the same tokensFewer repeated phrases
    Presence penaltyEncourages bringing in new topicsMore varied ideas in brainstorming
    Past messages included (playground)How much chat history is sent with each turnMore context vs more tokens

    Reasoning models work differently: instead of temperature you usually set a reasoning effort (how much the model thinks before it answers).

    Here’s how temperature and a token cap look in code with the Foundry SDK. model is your deployment name.

    # Low temperature for a factual answer, and a cap on length
    response = openai.responses.create(
        model="gpt-4.1-mini",          # the deployment name, not the model family
        input="List three benefits of solar panels for a small shop.",
        temperature=0.2,               # focused, repeatable
        max_output_tokens=150,         # keep it short and cheap
    )
    print(response.output_text)
    Architect level Quota, spillover and PTU sizing

    Pay-per-token deployments have a tokens-per-minute quota per model and region. Hit it and you get throttled (HTTP 429). Provisioned deployments are sized in PTUs, and you estimate the PTUs from your expected prompt and completion tokens per minute. Some teams run a Provisioned deployment for the steady base load and send overflow to a Standard deployment, so a traffic spike slows down gracefully instead of failing.

    Real-world business scenario

    Insurance

    Northwind Insurance, a European insurer

    The problem
    Its claims assistant ran on Global Standard, but the compliance team needed all prompt processing inside the EU. Answers also varied too much between identical questions.
    What they used
    Moved the assistant to a Data Zone Standard deployment in an EU region, set temperature to 0.2 and capped max output tokens. Nightly report summaries moved to a Data Zone Batch deployment.
    Why that choice
    Data Zone keeps processing within the EU. Low temperature gives consistent answers. Batch suits a job that nobody waits for and costs about half as much.
    The result
    The assistant passed the compliance review, customers got the same answer to the same question, and the nightly job's token cost roughly halved.

    When to use it and when not to

    ✓ Use it when…

    • Start with **Global Standard** for new apps and prototypes.
    • Use **Data Zone** or regional deployments when a policy limits where data is processed.
    • Use **Provisioned** for steady, high traffic that needs predictable latency.
    • Use **Batch** for large jobs like overnight summaries or bulk classification.
    • Lower **temperature** for facts and extraction; raise it for creative work.

    ✕ Think twice when…

    • Don't use Batch for anything interactive. Results can take up to 24 hours.
    • Don't buy Provisioned capacity for spiky, unpredictable or tiny workloads.
    • Don't tweak temperature and top_p together.
    • Don't use Developer deployments in production. They have no SLA.

    ↔ Alternatives to consider

    • **Managed compute** for open models you want to run on dedicated VMs.
    • **Instant access** models (preview) for quick experiments without a deployment.
    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-901 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 healthcare provider in Germany is deploying a chat model in Microsoft Foundry. Company policy states that prompts and responses must be processed only within the European Union. The provider wants to pay per token.

    Which deployment type should the provider use?

    Question 2

    Question 2 of 5

    A company must summarize several hundred thousand documents each week. The results are not time-sensitive, and the company wants to minimize cost. Which deployment type should the company use?

    Question 3

    Question 3 of 5

    A developer notices that a model returns noticeably different answers each time the same factual question is asked. The developer wants more consistent answers. What should the developer do?

    Question 4

    Question 4 of 5 · Select 2

    Which TWO statements about provisioned deployments in Microsoft Foundry are correct?

    Question 5

    Question 5 of 5

    You need to ensure that a model never returns a response longer than approximately 200 tokens. Which parameter should you configure?

    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 does temperature do?

    Model answer

    It controls how random the model's word choices are. At a low temperature like 0.2 you get focused, consistent answers, which is what you want for facts or extracting data. At a higher temperature like 1.0 you get more variety, which suits brainstorming or creative writing.

    Interviewer follows up

    Should I change temperature and top_p together?

    You

    Microsoft's advice is to change one or the other, not both. They both control randomness, so changing both makes the effect hard to predict.

    Intermediate Which deployment type would you start with, and why?

    Model answer

    Global Standard. It's pay per token, needs no capacity planning, gets new models first and has high default quota. I'd only move off it if I had a data residency rule, which points to Data Zone Standard or Standard, or steady high traffic that justifies Provisioned.

    Experienced developer A bank needs prompts processed only within the EU. What are your options?

    Model answer

    Data Zone Standard or Data Zone Provisioned with an EU resource keeps processing inside the EU data zone. Regional Standard or Regional Provisioned keeps it inside the resource's geography. Global types could process the request in any region, so they don't meet the rule. Data at rest stays in the resource's geography for every type.

    Scenario Every night a company needs to summarise 200,000 product reviews. Nobody waits for the result. What would you suggest?

    Model answer

    A Global Batch or Data Zone Batch deployment. You upload a file of requests, it's processed asynchronously with a 24-hour target, and it costs about half of the standard price. Real-time deployments would be wasted money here.

    Quick revision

    Key points

    • Global Standard is the default starting point, pay per token, and may process data in any region.
    • Data Zone Standard keeps processing in the US, EU or APAC data zone; Standard keeps it in the resource's geography.
    • Provisioned deployments reserve capacity (PTUs) for steady traffic and predictable latency.
    • Batch deployments process files asynchronously with a 24-hour target at about 50% less cost.
    • Temperature and top_p control randomness; max output tokens caps length; stop sequences end output early.

    Important terminology

    Deployment
    A named, callable instance of a model in your Foundry resource. Your code sends the deployment name as the model.
    Global Standard
    A pay-per-token deployment type where requests can be processed in any Azure region. Usually the first to get new models.
    Data Zone Standard
    A pay-per-token deployment type where processing stays inside a Microsoft-defined data zone (US, EU or APAC).
    Provisioned throughput
    Reserved model capacity bought in provisioned throughput units (PTUs), giving predictable, low-variance latency.
    Batch deployment
    An asynchronous deployment type that processes a file of requests with a 24-hour target, at about 50% lower cost.
    Temperature
    A parameter (0 to 2) that controls randomness. Low values give focused, repeatable answers; high values give more varied ones.
    Top_p
    A parameter that limits the model to the most likely tokens whose probabilities add up to p. Another way to control randomness.
    Stop sequence
    A string that makes the model stop generating when it would produce it.

    Common mistakes

    • Thinking Global Standard stores your data in other regions. Data at rest stays in your resource's geography; only processing can happen elsewhere.
    • Using Batch for a chatbot. Batch is asynchronous and can take hours.
    • Changing temperature and top_p at the same time.

    Exam tips

    • "Data must be processed only within the EU" = Data Zone (or regional) deployment, not Global.
    • "Predictable latency, steady high volume, reserved capacity" = Provisioned.
    • "Large volume, not time-sensitive, lowest cost" = Batch.
    • "More consistent, less creative answers" = lower temperature.

    Five quick revision questions

    1. 1.Which deployment type is the usual starting point?Show

      Global Standard.

    2. 2.What unit do you buy for Provisioned deployments?Show

      Provisioned throughput units (PTUs).

    3. 3.What is the target turnaround for a Batch deployment?Show

      24 hours.

    4. 4.Which parameter limits the length of a response?Show

      Max output tokens (max tokens).

    5. 5.What does a low temperature produce?Show

      More focused, consistent and predictable answers.

    Official references

    Finished this lesson? Tick it off. Your progress is saved in this browser.

    Next up: Common AI Workloads

    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.