BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDeveloping AI Apps and Agents on Azure (AI-103)Deploy and consume LLMs, small models, code models, and multimodal models
Lesson2,635 words

Deploy and consume LLMs, small models, code models, and multimodal models

AI-103 › Unit 2: Implement generative AI and agentic solutions › Build generative applications by using Foundry › Deploy and consume LLMs, small models, code models, and multimodal models

Deploy and consume LLMs, small models, code models, and multimodal models

Deploying a model is two decisions that people habitually collapse into one: which model, and on what deployment type. The second decides cost profile, data residency, and whether capacity is reserved — and it is chosen independently of the first. Consumption then differs by model family in ways the exam tests directly: reasoning models take different parameters, image models take different sizes, and video models take different constraints.

Why This Matters

Deployment type is a separate axis. The same model can be deployed as Standard, GlobalStandard, DataZoneStandard, or ProvisionedManaged. A requirement about residency or predictable latency is answered on this axis, not by choosing a different model.

Model families do not share a parameter surface. Reasoning models reject the techniques that help everything else and use max_completion_tokens rather than a token cap that excludes their thinking. Getting this wrong produces truncated, empty-looking responses.

Capability tiers move. Image generation, video generation, and preview models each carry constraints — fixed sizes, variant limits, access gating — that are examinable precisely because they are arbitrary and must be learned.

Two axes, asked separately

Which model answers a capability question — reasoning, code, image, video, small footprint. Which deployment type answers a residency, cost, or capacity question. When a scenario says "data must not leave the geography" or "latency must be predictable", the model choice is a distractor.

Prerequisites

  • What a deployment is: a named, addressable instance of a model on a resource.
  • The difference between a Foundry resource and an Azure OpenAI resource — the latter serves only /openai/v1.
  • Basic token accounting: prompt tokens, completion tokens, and that both are billed.
  • TPM and RPM quota concepts from the quota objective.

Learning Objectives

By the end of this lesson you will be able to:

  1. Choose a deployment type from a residency, cost, or capacity requirement.
  2. Consume reasoning models correctly, including reasoning_effort and token accounting.
  3. Apply the constraints of image and video generation models.
  4. Reason about when a small or code-specialised model is the right answer.
  5. Recognise which endpoint shape a given resource exposes.

Building Blocks

Deployment types. The skuName values are Standard, GlobalStandard, DataZoneStandard, and ProvisionedManaged.

TypeProcessingFits
StandardWithin the deployment's regionRegional residency requirements
GlobalStandardRouted globally for best availabilityLowest cost, highest availability, no geography constraint
DataZoneStandardWithin a data zone (a defined geography)Residency at geography rather than single-region granularity
ProvisionedManagedReserved capacityPredictable throughput and latency, steady high volume

The one-deployment-per-model limit has been removed, so a single model can be deployed several times — for example the same model on Standard for a residency-bound workload and GlobalStandard for a cheaper batch path.

Reasoning models. These generate internal reasoning tokens before answering. The rules:

  • Reasoning tokens are billed as output tokens and are never returned in message content.
  • They share the budget set by max_completion_tokens / max_output_tokens — so a small cap can be exhausted entirely by thinking, leaving an apparently empty response. Reserve roughly 25,000 tokens for reasoning when starting out.
  • reasoning_effort is a per-request parameter with values none, minimal, low, medium, high, xhigh, max.
  • Read completion_tokens_details.reasoning_tokens to see what was actually spent.
  • Prompt-engineering techniques "aren't recommended for reasoning models"; chain-of-thought prompting is for non-reasoning models — the reasoning model already does it.

Image generation. gpt-image-2 is GA and supports arbitrary resolutions up to 4K, subject to: each edge a multiple of 16px, long edge ≤3,840px, aspect ratio within 3:1, total pixels between 655,360 and 8,294,400. The gpt-image-1 series is limited access preview with fixed sizes — 1024x1024, 1024x1536, 1536x1024. background: transparent requires PNG output and is gpt-image-1 only. input_fidelity is not available on the mini variant.

Video generation. Sora 2 supports text-to-video, image-to-video, and video-to-video where the input video was generated, plus remix. n_variants accepts 1–4, but is disabled at 1080p and capped at 2 at 720p. n_seconds is 5–20. Terminal job states are succeeded, failed, cancelled. It generates audio, and blocks intellectual property and photorealistic depictions of real people.

Where the model runs

Attribute
Processing boundary

Deployment region

Data zone / geography

Global

Reserved capacity

Chosen for

Strict regional residency

Geography-level residency

Cost and availability

Predictable throughput

Capacity model

Shared, TPM quota

Shared, TPM quota

Shared, TPM quota

Reserved

Deep Dive

Reading a deployment-type question

Almost every deployment-type item hides its answer in one clause.

"Data must be processed within the region" → Standard. "Within the European geography" or "our data zone" → DataZoneStandard, which relaxes region to geography and usually buys better availability. "Minimise cost" or "maximise availability" with no residency clause → GlobalStandard. "Consistent latency at steady high volume" or "guaranteed throughput" → ProvisionedManaged, the only type with reserved capacity.

The trap is answering with a model change — a smaller or faster model — when the requirement is about where or how reliably processing happens. Model choice does not move the residency boundary, and a smaller model on shared capacity still has variable latency under load.

Because a model can be deployed more than once, the answer to a mixed requirement is often two deployments: reserved capacity for the interactive path, GlobalStandard for the batch path.

Reasoning models: the empty-response trap

The most instructive failure in this objective is a reasoning model that returns nothing.

The cause is that reasoning tokens share the completion budget. If max_completion_tokens is set to a value tuned for a non-reasoning model, the model can consume the entire allowance thinking and return an empty or truncated message — while still billing for every one of those tokens as output. Reserving around 25,000 tokens for reasoning is the documented starting point.

reasoning_effort is what you turn when the cost or latency is wrong, and it is per request — the same deployment can serve a cheap minimal classification and an expensive high analysis. The full ladder is none, minimal, low, medium, high, xhigh, max.

The second trap is prompting. Prompt-engineering techniques "aren't recommended for reasoning models", and chain-of-thought prompting is explicitly a non-reasoning technique — instructing a reasoning model to "think step by step" duplicates what it already does and can degrade the result. An option that improves a reasoning model's output by adding CoT instructions is wrong by construction.

Deploying and consuming, in order

  1. 1

    Pick the resource kind

    A Foundry resource for projects, agents, and the full surface. An Azure OpenAI resource serves only /openai/v1 — no Agent Service, no project endpoint.

Image and video: constraints worth memorising

These are arbitrary numbers, which is exactly why they are asked.

For images, the discriminator between the two families is flexibility against availability. gpt-image-2 is GA with arbitrary resolutions to 4K under the edge, aspect, and pixel-count rules. The gpt-image-1 series is limited access preview with three fixed sizes. So a requirement for a non-standard aspect ratio points at gpt-image-2; a requirement for a transparent background points the other way, because background: transparent is gpt-image-1 only and additionally requires PNG output.

For video, n_variants is the memorable one: nominally 1–4, but disabled at 1080p and limited to 2 at 720p — the higher the resolution the fewer the variants, which is the direction people guess wrong. Duration is 5–20 seconds. Video-to-video only accepts a generated input video, so a scenario feeding in real camera footage is describing something unsupported.

Small and code-specialised models

A small language model is chosen for a cost, latency, or footprint reason — high-volume classification, routing, extraction, or an edge or container deployment where a frontier model is not viable. The model catalog exposes these alongside frontier models, and the deployment mechanics are the same.

Code models are chosen for generation, completion, and transformation of source. The examinable distinction is against the Code Interpreter tool: a code model writes code, while the tool executes it in a sandbox. A scenario requiring a computed answer from data needs execution, not a better code model.

The Azure OpenAI resource is a narrower thing

An Azure OpenAI resource serves only /openai/v1. It has no project endpoint and no Agent Service. A scenario that starts "we have an existing Azure OpenAI resource" and then asks for agents, projects, or the connected tool surface is asking you to notice that a Foundry resource is required.

Worked Examples

Example 1 — residency plus a cheap batch path. An interactive assistant must process data within the European geography; an overnight batch job has no residency constraint and must be as cheap as possible.

Two deployments of the same model: DataZoneStandard for the interactive path (geography-level residency) and GlobalStandard for the batch path (lowest cost, best availability). The per-model deployment limit was removed, so this is straightforward. Changing model would address neither requirement.

Example 2 — the reasoning model that returns nothing. A team moves a summarisation workload to a reasoning model, keeps its existing token cap, adds "think step by step" to the prompt, and gets empty responses at full cost.

Reasoning tokens are billed as output and share max_completion_tokens — the cap was consumed by reasoning, leaving no room for the message. Raise the cap, reserving about 25,000 tokens, and tune reasoning_effort per request. Remove the chain-of-thought instruction: it is a non-reasoning technique.

Example 3 — product images on a transparent background. Marketing needs generated product shots with transparent backgrounds for compositing, and separately wants a wide banner at an unusual aspect ratio.

Transparency requires background: transparent, which is gpt-image-1 only and needs PNG output — and that family is limited access preview with fixed sizes. The unusual aspect ratio needs gpt-image-2, which is GA and supports arbitrary resolutions to 4K within the edge, aspect, and pixel bounds. The two requirements land on different models.

Visual Explanations

The two independent axes:

Loading Diagram...
Figure 1 — Mermaid diagram

Where a reasoning model's budget goes:

Loading Diagram...
Figure 2 — Mermaid diagram

Common Mistakes

Answering a residency question with a model change. Residency is a deployment-type axis.

Assuming GlobalStandard is always best. It is cheapest and most available, and wrong under a residency constraint.

Expecting ProvisionedManaged to be about a model's speed. It is about reserved capacity and predictable throughput.

Reusing a non-reasoning token cap on a reasoning model. Reasoning shares the completion budget.

Adding chain-of-thought to a reasoning model. Explicitly a non-reasoning technique.

Treating reasoning_effort as a deployment setting. It is per request.

Assuming transparency works on any image model. background: transparent is gpt-image-1 only and requires PNG.

Guessing that higher video resolution allows more variants. It allows fewer — none at 1080p, two at 720p.

Practice Exercises

  1. Map each to a deployment type: strict regional residency; geography-level residency; lowest cost; guaranteed throughput.
  2. A reasoning model returns empty messages at full cost. Give the cause and two fixes.
  3. Which image model supports transparent backgrounds, what output format is required, and what is its availability status?
  4. State the n_variants rule for Sora 2 across resolutions, and the duration range.
  5. Why can an existing Azure OpenAI resource not host an agent?
▶Answers
  1. Standard (region), DataZoneStandard (geography/data zone), GlobalStandard (lowest cost, best availability), ProvisionedManaged (reserved capacity, predictable throughput).
  2. Reasoning tokens are billed as output and share max_completion_tokens, so the cap was consumed by thinking. Raise the cap — reserving about 25,000 tokens — and lower reasoning_effort per request; also remove any chain-of-thought instruction, which is a non-reasoning technique. Inspect completion_tokens_details.reasoning_tokens.
  3. gpt-image-1 only, requiring PNG output, and that series is limited access preview with fixed sizes (1024x1024, 1024x1536, 1536x1024). gpt-image-2 is GA with arbitrary resolutions to 4K but no transparency.
  4. n_variants is 1–4, disabled at 1080p, and limited to 2 at 720p — fewer variants at higher resolution. n_seconds is 5–20.
  5. An Azure OpenAI resource serves only /openai/v1 — it exposes no project endpoint and no Agent Service. Agents require a Foundry resource and a project.

Summary & Concept Map

Deployment is two independent choices. Model answers the capability question — reasoning, code, multimodal, image, video, or a small model chosen for cost and footprint. Deployment type answers residency, cost, and capacity: Standard for a region, DataZoneStandard for a geography, GlobalStandard for cost and availability, ProvisionedManaged for reserved throughput — and a model may be deployed more than once to serve both. Consumption then follows the family: reasoning models bill thinking as output inside max_completion_tokens, take per-request reasoning_effort, and reject chain-of-thought prompting; gpt-image-2 is GA with arbitrary resolutions while transparency is gpt-image-1 with PNG; Sora 2 allows fewer variants at higher resolution and 5–20 seconds. And an Azure OpenAI resource, serving only /openai/v1, cannot host any of the project or agent surface.

Loading Diagram...
Figure 3 — Mermaid diagram
Loading flashcards…

Sources and freshness

Written against current Microsoft Learn documentation for the AI-103 skills measured (16 April 2026), reviewed 2026-08-20. Microsoft Learn controls every changing product contract — availability, preview status, quotas, limits, regional support, naming, and retirement dates all move independently of this lesson. Where a scenario turns on a specific number or a GA/preview boundary, confirm it against the product's own page before relying on it.

All Developing AI Apps and Agents on Azure (AI-103) Study Resources

Related Notes

  • Choose an appropriate method for retrieval and indexing2,778 words
  • Quick Note — Choose an appropriate method for retrieval and indexing888 words
  • Choose an appropriate model for each task, including LLMs, small language models, multimodal models, and Foundry Tools3,097 words
  • Quick Note — Choose an appropriate model for each task, including LLMs, small language models, multimodal models, and Foundry Tools1,041 words
  • Choose appropriate memory, tool, and knowledge integration services for agent solutions2,815 words
  • Quick Note — Choose appropriate memory, tool, and knowledge integration services for agent solutions949 words
  • Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows, or multimodal processing2,733 words
  • Quick Note — Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows, or multimodal processing901 words
  • Apply responsible AI instrumentation, including evaluators, safety evaluations, and explanation tooling2,891 words
  • Configure safety filters, guardrails, risk detection, and content moderation2,795 words
  • Govern agent behavior with oversight modes, constraints, and tool-access controls2,863 words
  • Implement auditing through trace logging, provenance metadata, and approval workflows2,624 words

Ready to study Developing AI Apps and Agents on Azure (AI-103)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Developing AI Apps and Agents on Azure (AI-103)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Developing AI Apps and Agents on Azure (AI-103) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.

Loading Diagram...
Flowchart, top to bottom. Requirement connects to Capability or placement?. A connects to Model choice (Capability). A connects to Deployment type (Placement). M connects to Reasoning: max_completion_tokens<br/>+ reasoning_effort per request. M connects to Code model writes code;<br/>Code Interpreter EXECUTES. M connects to Image: gpt-image-2 GA arbitrary to 4K<br/>gpt-image-1 preview, fixed, transparency. M connects to Video: n_variants 1-4,<br/>none at 1080p, 2 at 720p. M connects to Small model: cost / latency / footprint. 4 more statements.
Loading Diagram...
Flowchart, left to right. Request connects to Reasoning tokens<br/>billed as OUTPUT<br/>never in message content. RT connects to Message tokens. MSG connects to Both share max_completion_tokens. CAP connects to Cap too low = empty response,<br/>full cost. CAP connects to Reserve ~25,000<br/>read completion_tokens_details.reasoning_tokens.
Loading Diagram...
Flowchart, top to bottom. Deploy and consume connects to Axis 1: model. Deploy and consume] --> AX1[Axis 1: model connects to Axis 2: deployment type. Deploy and consume] --> AX1[Axis 1: model connects to Consumption surface. AX1 connects to LLM / small / code / multimodal. AX1 connects to Image and video models. AX2 connects to Standard = region. AX2 connects to DataZoneStandard = geography. AX2 connects to GlobalStandard = cost + availability. 5 more statements.

Deploy and consume models — retrieval

Card 1 of 6

Front of flashcard 1 of 6

The four deployment types

easy

Standard (processing in the region), DataZoneStandard (within a data zone/geography), GlobalStandard (routed globally — cheapest, most available), ProvisionedManaged (reserved capacity for predictable throughput).

deployment

Deploy and consume models — retrieval

Card 1

Front

The four deployment types

Back

Standard (processing in the region), DataZoneStandard (within a data zone/geography), GlobalStandard (routed globally — cheapest, most available), ProvisionedManaged (reserved capacity for predictable throughput).

Card 2

Front

Reasoning-token accounting

Back

Reasoning tokens are billed as output, never appear in message content, and share max_completion_tokens/max_output_tokens. Reserve about 25,000 tokens; inspect completion_tokens_details.reasoning_tokens.

Card 3

Front

reasoning_effort

Back

A per-request parameter with values none, minimal, low, medium, high, xhigh, max. The same deployment can serve cheap and expensive calls.

Card 4

Front

Chain-of-thought and reasoning models

Back

Prompt-engineering techniques "aren't recommended for reasoning models", and chain-of-thought prompting is a non-reasoning technique — the model already reasons internally.

Card 5

Front

Image model constraints

Back

gpt-image-2 — GA, arbitrary resolutions to 4K (edges multiple of 16px, long edge ≤3,840px, aspect ≤3:1, 655,360–8,294,400 pixels). gpt-image-1 — limited access preview, fixed sizes, and the only family supporting background: transparent, which requires PNG.

Card 6

Front

Sora 2 variant and duration limits

Back

n_variants 1–4, but disabled at 1080p and capped at 2 at 720p — fewer variants at higher resolution. n_seconds 5–20. Video-to-video accepts only a generated input video.

Deploy and consume models — retrieval

Card 1

Front

The four deployment types

Back

Standard (processing in the region), DataZoneStandard (within a data zone/geography), GlobalStandard (routed globally — cheapest, most available), ProvisionedManaged (reserved capacity for predictable throughput).

Card 2

Front

Reasoning-token accounting

Back

Reasoning tokens are billed as output, never appear in message content, and share max_completion_tokens/max_output_tokens. Reserve about 25,000 tokens; inspect completion_tokens_details.reasoning_tokens.

Card 3

Front

reasoning_effort

Back

A per-request parameter with values none, minimal, low, medium, high, xhigh, max. The same deployment can serve cheap and expensive calls.

Card 4

Front

Chain-of-thought and reasoning models

Back

Prompt-engineering techniques "aren't recommended for reasoning models", and chain-of-thought prompting is a non-reasoning technique — the model already reasons internally.

Card 5

Front

Image model constraints

Back

gpt-image-2 — GA, arbitrary resolutions to 4K (edges multiple of 16px, long edge ≤3,840px, aspect ≤3:1, 655,360–8,294,400 pixels). gpt-image-1 — limited access preview, fixed sizes, and the only family supporting background: transparent, which requires PNG.

Card 6

Front

Sora 2 variant and duration limits

Back

n_variants 1–4, but disabled at 1080p and capped at 2 at 720p — fewer variants at higher resolution. n_seconds 5–20. Video-to-video accepts only a generated input video.