Prepstellar
Get it on Google Play

AI-103 · Setting Up and Deploying in Foundry

22 cards

Choosing a Deployment Type

Swipe, scroll or use ← →
  1. Two deployment options

    A model in the catalog does nothing until it is deployed. The first choice is not the deployment type but the deployment option, because the types only exist inside one of them.

    To make a model available for inference requests, you deploy it, and Foundry offers two deployment options. Serverless API serves Foundry Models, including Foundry Models sold by Azure and select models from partners and community, and it is the preferred and most capable deployment path. Managed compute (preview) serves open-source, partner, and custom models that run on dedicated GPU capacity that Foundry manages for you.

    The deployment types in this lesson apply to the Serverless API option; open-source and custom models that use managed compute don't use them. If you only need to try a supported model, instant access (preview) calls models by name without creating a deployment, so it isn't a deployment type.

    1 / 22
  2. Two deployment options

    So there are three ways to reach a model, and only one of them has deployment types:

    Way in What it is Deployment types?
    Instant access (preview) Call a supported model by name No, there is no deployment
    Serverless API The preferred deployment option Yes, all of them
    Managed compute (preview) Dedicated GPUs for open-source and custom models No

    A deployment type decides three things: where your data is processed (global, data zone, or Azure geography), how you pay (pay-per-token or reserved capacity), and the performance characteristics (latency variance and throughput limits).

    2 / 22
  3. Quick check

    A developer wants to try a supported model for an afternoon without creating anything. Which way in fits?

    1. AInstant access, which calls the model by name

      Right. Instant access (preview) calls supported models by name without creating a deployment, so there is nothing to set up or clean up.

    2. BA Serverless API deployment of the Developer type

      Developer is a deployment type for evaluating fine-tuned models. It still creates a deployment, which this developer wants to avoid.

    3. CA managed compute deployment on a small GPU

      Managed compute provisions dedicated GPU capacity for open-source and custom models. That is a full deployment, the opposite of a quick try.

    3 / 22

  4. Categories and SKU codes

    Inside Serverless API, every deployment type belongs to a family. Learn the families first and the nine names fall into place.

    There are three main categories: standard (pay-per-token), provisioned (reserved capacity), and batch (discounted asynchronous processing). A Developer type is also available for fine-tuned model evaluation. Within the standard and provisioned categories, you choose global, data zone, or geography-based processing.

    Deployment type SKU code Processing Billing
    Global Standard GlobalStandard Any Azure region Pay-per-token
    Data Zone Standard DataZoneStandard Within the data zone Pay-per-token
    Standard Standard Within the Azure geography Pay-per-token
    Global Provisioned GlobalProvisionedManaged Any Azure region Reserved PTU
    Data Zone Provisioned DataZoneProvisionedManaged Within the data zone Reserved PTU
    Regional Provisioned ProvisionedManaged Within the Azure geography Reserved PTU
    Global Batch GlobalBatch Any Azure region Discounted
    Data Zone Batch DataZoneBatch Within the data zone Discounted
    Developer DeveloperTier Any Azure region Pay-per-token
    4 / 22
  5. Categories and SKU codes

    In words: each standard type is pay-per-token, each provisioned type is reserved PTU capacity, and the two batch types are the discounted asynchronous option. The SKU code is what you pass in code, and an Azure Policy rule on the deployment sku.name can disable a specific deployment type across your organization.

    Two naming details catch people out. Every provisioned SKU ends in Managed, and the regional provisioned SKU is plain ProvisionedManaged, without the word Regional. The single-geography standard type is just Standard.

    5 / 22
  6. Quick check

    A platform team wants to stop anyone from creating Global Standard deployments. What does the Azure Policy rule match on?

    1. AThe deployment SKU name, with the value GlobalStandard

      Right. Each deployment type has a SKU code, and a policy rule on the deployment sku.name with the value GlobalStandard disables that type.

    2. BThe model name, with every Global model listed

      The deployment type is independent of the model name. The same model can be deployed as several types, so listing models would not target the type.

    3. CThe region of the Foundry resource, with global regions

      Global is not a set of regions. It is a deployment type identified by its SKU code, so filtering on the resource region misses it.

    6 / 22

  7. Where the data is processed

    The processing scope is usually the first hard constraint, because it comes from compliance rather than preference.

    Data stored at rest remains in the designated Azure geography for all deployment types. Inferencing data differs: Global types may be processed in any Azure region, Data Zone types are processed only within the Microsoft-specified data zone (US, EU, or Asia Pacific), and Standard and Regional Provisioned types process prompts and responses within the customer-specified Azure geography.

    Scope Prompts and responses processed
    Global In any Azure region
    Data Zone Only inside the US, EU, or Asia Pacific zone
    Geography (Standard, Regional Provisioned) Inside the customer-specified Azure geography
    7 / 22
  8. Where the data is processed

    When nothing forces your hand, the answer is simple. For most workloads, start with Global Standard. It launches first when a new model releases, has the lowest price, and offers the broadest region coverage. Move to another deployment type only when you have a specific reason, such as data residency, reserved throughput, or asynchronous batch processing.

    New deployment types become available in a set order: Global, then Data Zone, then geography-based. That order matters for planning: a brand-new model reaches geography-based types last.

    8 / 22
  9. Quick check

    A company must keep inference processing in the EU and pays per token. Which family of types does that point to?

    1. AGlobal types, since data at rest stays in the geography anyway

      Data at rest does stay in the geography, but global types may process inferencing data in any Azure region. Processing is what the requirement is about.

    2. BData Zone types, which process only within the chosen data zone

      Right. Data Zone types process prompts and responses only within the Microsoft-specified zone, US, EU, or Asia Pacific, and the Standard flavor bills per token.

    3. CDeveloper, which processes data in any Azure region

      Developer processes data in any Azure region and offers no data residency guarantee. It is also only for evaluating fine-tuned models.

    9 / 22

  10. Keep your progress in the app

    That’s 3 of 8 quick checks. In the app they stay answered, and every lesson remembers where you left off.

    Get it on Google Play Keep reading here
  11. Standard or provisioned

    Most decisions come down to one question: pay per token and share capacity, or reserve capacity and pay by the hour?

    Asynchronous bulk work goes to batch, steady high volume that needs consistent latency goes to provisioned PTUs, and everything else stays on pay-per-token standard.yesnoyesnoAsync bulkjob?Batchdiscounted, 24 hSteady highvolume?Provisionedreserved PTUsStandardpay per tokenThen choose Global, Data Zone, or geography.
    The tree picks the billing family. The second choice, Global, Data Zone, or geography, follows from where the data may be processed.
    10 / 22
  12. Standard or provisioned

    Standard types are pay-per-token and offer best-effort service, which suits variable, bursty traffic. Customers with high consistent volume might experience greater latency variability on them.

    Provisioned throughput holds a fixed amount of processing capacity exclusively for your deployment, whether or not requests are being made. You buy provisioned throughput units (PTUs), which guarantee a level of capacity and give lower and more consistent latency. Provisioned types fit predictable traffic, latency-sensitive requirements, and production-scale volume.

    The three provisioned types differ in where traffic is processed. Global Provisioned routes across Azure regions globally and gives the highest availability. Data Zone Provisioned offers zone-level data residency with higher availability than regional. Regional Provisioned stays in the deployment's specific Azure region, for strict single-region data residency requirements.

    11 / 22
  13. Quick check

    A chat service has steady high volume, needs consistent latency, and must keep processing inside the EU zone while staying more available than a single region. Which type fits?

    1. AData Zone Standard

      Data Zone Standard keeps processing in the zone, but it is best-effort pay-per-token, and high consistent volume can see greater latency variability.

    2. BRegional Provisioned

      Regional Provisioned reserves capacity, but it stays in one specific region, which is the single-region availability the service wants to beat.

    3. CData Zone Provisioned

      Right. Data Zone Provisioned reserves PTUs for consistent latency and offers zone-level data residency with higher availability than regional.

    12 / 22

  14. Quota, capacity, and reservations

    Provisioned deployments involve three things that sound alike and are not: quota, capacity and reservations.

    PTUs are model-independent, but PTU quota is granted per subscription, per region, and per deployment type. The tokens per minute that a given number of PTUs delivers depends on the model, and each model has a minimum PTU count required to create a deployment.

    Quota and capacity are different things. Having PTU quota doesn't guarantee that capacity is available: if capacity in the region is insufficient for the requested PTU count, the deployment fails.

    13 / 22
  15. Quota, capacity, and reservations

    Billing has its own rules. All provisioned types are billed hourly per PTU, regardless of the number of tokens consumed. Azure Reservations give a discounted rate for a one-month or one-year commitment, but reservations don't guarantee capacity, so you first create deployments to confirm capacity and then purchase the reservation.

    Term What it is What it does not do
    Quota A limit on how many PTUs you may deploy Prove that capacity exists
    Capacity PTUs actually available in the region Stay reserved after you delete a deployment
    Reservation A discount on the hourly PTU meter Guarantee capacity
    14 / 22
  16. Quick check

    A team holds enough PTU quota and has already bought a one-year reservation, but its new provisioned deployment fails. What went wrong?

    1. AThe region had no capacity, which neither quota nor reservation guarantees

      Right. If capacity in the region is insufficient for the requested PTU count, the deployment fails. Quota is a limit and a reservation is a billing discount; neither one reserves capacity.

    2. BThe reservation was tied to a different model than the deployment

      PTUs are model-independent, and reservations discount the PTU meter rather than a specific model, so a model mismatch is not the cause.

    3. CThe deployment was billed per token, so the reservation did not apply

      Provisioned types are billed hourly per PTU, not per token. Billing also has nothing to do with whether a deployment can be created.

    15 / 22

  17. Batch for large asynchronous jobs

    Some work has no user waiting: product descriptions for a whole catalog, or summaries of a document archive. Batch is built for that.

    Global Batch processes asynchronous groups of requests with separate quota and a 24-hour target turnaround, at 50% less cost than Global Standard. Instead of sending one request at a time, you send a large number of requests in a single JSON Lines file. Batch requests have a separate enqueued token quota, which avoids any disruption of your online workloads. Data Zone Batch provides the same functionality, with traffic kept inside the data zone. Batch requests don't have a real-time SLA.

    16 / 22
  18. Batch for large asynchronous jobs

    The input file has strict rules. In the batch file, the same batch model deployment name must be present on each line; to target a different deployment, you use a separate batch file and job. Each line also carries a custom_id, because responses don't come back in the order of the file. The batch API doesn't currently support fine-tuned models.

    In Python, the flow uses the openai package: client.files.create uploads the file with purpose set to batch, and client.batches.create starts the job with the uploaded file ID and a completion_window of 24h.

    17 / 22
  19. Quick check

    A nightly job must run prompts against two different model deployments at batch prices. How should the input be organized?

    1. AOne file with the deployment chosen per line through custom_id

      The custom_id identifies each request so you can match responses. It does not choose a deployment, and every line must name the same one.

    2. BOne file per deployment, each submitted as its own batch job

      Right. The same batch model deployment name must be present on each line of a file, so each deployment needs its own file and job.

    3. COne file for both, with the second deployment set in completion_window

      The completion_window is the turnaround target and must be 24h. It has nothing to do with which deployment a request targets.

    18 / 22

  20. Developer for fine-tuned evaluation

    One type has a single narrow job. The Developer type is designed for fine-tuned model evaluation only. It doesn't include data residency guarantees or an SLA, and Developer deployments have a fixed 24-hour lifetime and are automatically deleted after expiration.

    Do not confuse its 24 hours with batch. For Developer, 24 hours is how long the deployment lives. For batch, 24 hours is the target turnaround of a job on a deployment that keeps running.

    19 / 22
  21. Quick check

    A data scientist wants a cheap, temporary deployment to test a fine-tuned model this afternoon. Which type fits, and what happens next day?

    1. ADeveloper, and it is deleted automatically after 24 hours

      Right. Developer is for fine-tuned model evaluation only, without an SLA or residency guarantee, and it has a fixed 24-hour lifetime before automatic deletion.

    2. BGlobal Batch, and the job finishes within the 24 hour target

      Batch has a 24-hour target turnaround, not a lifetime, and the batch API doesn't currently support fine-tuned models.

    3. CGlobal Standard, and it keeps serving until someone deletes it

      Global Standard is a lasting general-purpose deployment. It works, but it is not the temporary evaluation type this scenario describes.

    20 / 22

  22. Managed compute in practice

    Managed compute is the path for models that Serverless API does not serve, and it plays by different rules.

    Managed compute is in public preview, without a service-level agreement, and isn't recommended for production workloads. It hosts models such as Qwen and NVIDIA Nemotron from the Hugging Face Collection. Billing is hourly per accelerator SKU, and quota is granted per accelerator SKU per region through the Foundry quota process, separate from Azure VM quota. Azure virtual machines are an IaaS offering with regional SKUs, while managed compute is a PaaS offering, so existing Azure VM quota can't be applied to a managed compute deployment.

    Managed compute is currently available for global deployment only, and content filtering isn't available for it in public preview, while Serverless API offers built-in and customizable content filtering.

    Serverless API Managed compute (preview)
    Processing options Regional, data zone, global Global
    Content filtering Built-in and customizable Not available in public preview
    Billing Tokens or PTUs Hourly per accelerator SKU
    21 / 22
  23. Quick check

    A production workload needs built-in content filtering and data zone processing for a model offered on both paths. Which path fits?

    1. AManaged compute, because dedicated GPUs give more control

      Dedicated GPUs do give control, but managed compute is a preview without an SLA, is global only, and lacks content filtering in public preview.

    2. BEither path, because both offer the same processing options

      The options differ: Serverless API offers regional, data zone, and global processing, while managed compute is currently global only.

    3. CServerless API, with a Data Zone deployment type

      Right. Serverless API is the preferred path, with data zone processing and built-in, customizable content filtering.

    22 / 22

  24. 8 quick checks · then the test

    In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.

← Previous Get it on Google Play Next card →

The whole course, on your phone

Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.

Get it on Google Play

“This app is the ‘One Lake’ for preparing the certification exams. Really worth it.”

Abdelhak Y. Google Play review