BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDeveloping AI Apps and Agents on Azure (AI-103)Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows, or multimodal processing
Lesson2,733 words

Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows, or multimodal processing

AI-103 › Unit 1: Plan and manage an Azure AI solution › Choose the appropriate Foundry services for generative AI and agents › Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows, or multimodal processing

Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows, or multimodal processing

The previous objective asked which model. This one asks a broader question: which service owns each part of the solution. Most real builds decompose into three or four capabilities, and the architectural error is consolidation — pushing extraction, safety, and retrieval into one long prompt and accepting approximations where guarantees were available.

Why This Matters

A generative build is rarely one call. An expense-approval pipeline needs fields out of scanned receipts, a screen against injection attempts, and answers grounded in policy documents. Each of those has a service built for it, with a maintained contract behind it.

Consolidating them into a single prompted model produces three approximations. The extraction returns strings you must parse and normalize. The safety screen is an instruction competing for attention with everything else in the context. The grounding is whatever the model remembers. All three work in demos and degrade in ways that are hard to detect, because none of them fails loudly.

The reverse error is also real: reaching for an agent runtime, a knowledge base, and a toolbox when the requirement is one prompt and one answer. Every service you add is configuration, identity, cost, and a failure mode. Selection is about matching the requirement to the smallest set of services that carries the necessary guarantees.

The exam frames this as decomposition. A scenario lists three or four requirements in separate sentences, and the answer is the combination that satisfies each one with the service designed for it.

Count the requirements, then count the services

If a stem lists three distinct capabilities and an option names one service, that option is almost certainly wrong — and if it names five services for two requirements, so is that. Match the count.

Prerequisites

  • The model families and the elimination order from the previous objective.
  • That Foundry Tools are prebuilt capabilities distinct from catalogue models.
  • Basic familiarity with retrieval as a concept: an index, a query, and ranked results.
  • The idea that an agent differs from a model call by deciding actions at runtime.

Learning Objectives

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

  1. Map each common requirement — extraction, safety, retrieval, multimodal understanding, tool-calling — to the service that owns it.
  2. Distinguish Azure AI Search from Foundry IQ and explain how they relate.
  3. Decide when a workload needs Foundry Agent Service rather than a direct model call.
  4. Explain why the resource type you provision constrains which services are reachable.
  5. Choose between Document Intelligence and Content Understanding for a given extraction task.

Building Blocks

Azure AI Search. The retrieval and grounding engine. It supports "full-text, vector, hybrid, and multimodal queries over local (indexed) and remote content", provides AI enrichment to "chunk, vectorize, and otherwise make raw content searchable", and offers relevance tuning including the semantic ranker, synonym maps, filters, and faceted navigation. It ships two engines: classic search for single-index request-response queries, and agentic retrieval for multi-query, LLM-assisted planning.

Foundry IQ. Not a separate search product but "the managed knowledge layer that transforms enterprise content into reusable, permission-aware knowledge bases for agents", underpinned by Azure AI Search. An agent references a knowledge base for what to ground on; the knowledge base decides how.

Azure Document Intelligence in Foundry Tools. OCR and intelligent document processing — prebuilt models with schemas "defined and maintained by Microsoft", custom extraction and classification models, and layout analysis that returns tables, selection marks, and paragraph roles.

Azure Content Understanding. Processes "unstructured data of any type (image, documents, audio, video) and extracting structured insights based on pre-defined or user-defined formats". Its breadth across modalities is what distinguishes it.

Azure AI Content Safety. Four harm categories with severity ratings, Prompt Shields for direct and indirect attacks, protected material detection for text and code, and custom blocklists.

Azure Language and Azure Speech. Text analysis — PII detection, NER, language detection, text analytics for health as core capabilities — and the speech surface: real-time, fast, and batch transcription, text to speech, speech translation, and Voice Live.

Foundry Agent Service. The runtime for agents. "An agent can call tools, access external data, and make decisions across multiple steps to complete a task", and the Agent Runtime "manages conversations, tool calls, and agent lifecycle." Two agent types: prompt agents (configuration only, no code or compute to maintain) and hosted agents (your code, run by Foundry).

Which service owns which requirement

Attribute
Retrieval and ranking

Azure AI Search

Full-text, vector, hybrid, multimodal queries; relevance tuning

Reusable grounding for agents

Foundry IQ

Permission-aware knowledge bases over one or more sources

Documents with a known schema

Document Intelligence

Typed field extraction, layout, OCR

Any modality into your shape

Content Understanding

Image, documents, audio, video → structured insight

Safety and injection

Content Safety

Harm categories, Prompt Shields, protected material, blocklists

Runtime decisions

Foundry Agent Service

Tool calls and multi-step action

Deep Dive

Grounding: three shapes, three answers

Grounding questions look alike and split on how many sources and who plans the search.

One index you already maintain. Attach the Azure AI Search tool, which grounds agents "with data from an existing Azure AI Search index." Nothing is copied or re-ingested, and the owning team's enrichment and relevance tuning keep applying. Any stem describing existing, tuned investment is testing whether you point at it rather than rebuild.

Files handed to the agent. Use File Search, which augments agents "with knowledge from uploaded files or proprietary documents by using vector search." This is for documents a user supplies during a conversation, not for a governed enterprise corpus.

Several governed collections, planned by the service. Use a knowledge base. Each query "undergoes planning, decomposition into focused subqueries, parallel retrieval from knowledge sources, semantic reranking, and results merging", and the response carries "an activity log and references" alongside the answer. The distinguishing property is that planning and merging happen in the service rather than in your application code.

The trap in this area is answering a multi-source requirement with several index tools attached to one agent. That pushes source selection into the model's per-question tool choice, so nothing ever merges or ranks across collections — the agent picks one and answers from it.

Reading a grounding requirement

  1. 1

    How many sources?

    One → index tool or File Search. Several → knowledge base.

Extraction: Document Intelligence or Content Understanding

Both extract structure from unstructured input, and they split on modality breadth and schema ownership.

Document Intelligence is documents and images, with a deep model family: prebuilt-read for text and searchable PDF, prebuilt-layout for tables, selection marks, and paragraph roles, and per-document-type prebuilt models whose field schemas Microsoft maintains. Its output is strongly typed — dates as dates, amounts as currency — which is why it fits pipelines feeding another system.

Content Understanding is broader: any modality, into "pre-defined or user-defined formats". It also offers standard and pro modes, where pro "is designed for advanced use cases that require multi-step reasoning and complex decision-making" and can reason over input content and reference data together.

Choose Document Intelligence when the input is documents and a maintained schema exists. Choose Content Understanding when the input spans modalities, or when the output shape is one you are defining, or when the task is a judgement rather than an extraction.

Agent or model call?

The line is definitional. "Unlike a simple chatbot that only generates text, an agent can call tools, access external data, and make decisions across multiple steps to complete a task." If nothing must be decided after the request arrives — one prompt, one answer — a direct model call is simpler, cheaper, and easier to reason about.

Requirements that genuinely indicate an agent: choosing among tools at runtime, acting and then reacting to the result, maintaining conversation state across turns, or coordinating other agents. Requirements that do not: schema-valid output (that is structured outputs on a plain call), safety screening (that is content filtering on the deployment), or low cost at volume (which argues against agent overhead).

The resource type constrains everything

A subtle but decisive planning point. "A Foundry resource provides unified access to models, agents, and tools" through a project endpoint of the form https://<resource-name>.services.ai.azure.com/api/projects/<project-name>. By contrast, "an Azure OpenAI resource provides only the /openai/v1 endpoint."

That means a team who provisioned an Azure OpenAI resource and later wants file search, code interpreter, or agents cannot get there by configuration — the surface is absent, not disabled. No client version, API version, or setting reaches an endpoint the resource does not have. Service selection therefore includes a provisioning decision made early and awkward to reverse.

A configuration problem that isn't

"Tool attachment fails" reads like a permissions or version issue. If the workload sits on an Azure OpenAI resource, the platform tools were never reachable — the fix is a Foundry resource and the project endpoint, not a setting.

Worked Examples

Example 1 — expense approval. Three requirements: key-value pairs from scanned receipts; screening for jailbreak and injection attempts; answers grounded in procurement policy with hybrid retrieval and semantic ranking.

Three requirements, three services: Document Intelligence (prebuilt-receipt, prebuilt-invoice), Content Safety (Prompt Shields plus harm filters), Azure AI Search (hybrid retrieval, semantic ranker). Options offering networking components, storage and analytics services, or perception tools mismatched to the tasks are testing whether you recognise the Foundry Tools surface at all.

Example 2 — a claims assistant. The team needs similarity search over product descriptions, and separately an assistant that decides which of several tools to call across a multi-step task.

Similarity search is Azure AI Search with vector queries — remembering that vectors are adopted for a reason: "LLMs and agents don't require vectors. Only use them if you need similarity search." The multi-step tool decision is Foundry Agent Service, because something must be decided at runtime. Neither service substitutes for the other: an agent uses retrieval, it does not provide it.

Example 3 — supplier evidence packs. Certificates, photographs of installed equipment, and recorded site interviews must be reduced to something an assistant can reason over, with specific values also going to a register.

The modality span decides it: Content Understanding, which handles image, documents, audio, and video. Document Intelligence would cover the certificates and photographs and not the interviews. And because two consumers need two shapes, the analyzer should emit both a readable representation for the assistant and typed fields for the register — from one analysis, not two.

Visual Explanations

Requirement to service:

Loading Diagram...
Figure 1 — Mermaid diagram

How the grounding pieces stack:

Loading Diagram...
Figure 2 — Mermaid diagram

Common Mistakes

Consolidating three requirements into one prompt. A prompt asks; a service guarantees. The failure is silent and shows up downstream.

Adding an agent runtime for a single-turn task. If nothing is decided after the request arrives, the runtime is overhead.

Attaching several index tools instead of a knowledge base. Source selection becomes a per-question tool choice, so cross-source ranking never happens.

Re-uploading a corpus that is already indexed. File Search is for files handed to the agent; an existing tuned index is reached with the Azure AI Search tool.

Assuming vectors are mandatory for grounding. They are adopted when you need similarity search, and they cost an embedding stage, storage, and pipeline.

Treating Content Understanding and Document Intelligence as interchangeable. They overlap on documents and diverge sharply on audio, video, and judgement tasks.

Provisioning an Azure OpenAI resource for a build that will need agents. Only /openai/v1 is served; agents and platform tools are unreachable by construction.

Practice Exercises

  1. A build needs invoice fields, injection screening, and hybrid retrieval over policy manuals. Name the three services and the property that selects each.
  2. A team already runs a tuned 400,000-document Azure AI Search index. An agent must use it. What do you attach, and why not File Search?
  3. Which requirement in a stem tells you an agent runtime is needed rather than a direct model call?
  4. An evidence pack contains PDFs, photographs, and recorded interviews. Which extraction service, and what rules out the alternative?
  5. A workload on an Azure OpenAI resource cannot attach code interpreter. Diagnose it.
▶Answers
  1. Document Intelligence (standard document types with maintained schemas and typed output), Content Safety (Prompt Shields for direct and indirect attacks), Azure AI Search (hybrid retrieval with a semantic ranker).
  2. The Azure AI Search tool, which grounds on an existing index — no re-ingestion, and the team's enrichment and tuning keep applying. File Search is for files uploaded to the agent and would duplicate a governed corpus.
  3. Something must be decided at runtime across multiple steps — choose a tool, act, read the result, decide again. Schema-valid output, safety screening, and low cost at volume do not indicate an agent.
  4. Content Understanding, because it processes "any type (image, documents, audio, video)". Document Intelligence covers the PDFs and photographs but not the recorded interviews.
  5. An Azure OpenAI resource provides only the /openai/v1 endpoint — agents and platform tools are absent, not disabled. Move to a Foundry resource and call the project endpoint.

Summary & Concept Map

Service selection is decomposition. Count the distinct requirements in the scenario, then name the service that owns each with a real guarantee behind it: Azure AI Search for retrieval and ranking, Foundry IQ for reusable permission-aware grounding, Document Intelligence for typed fields from documents, Content Understanding for any modality into a shape you define, Content Safety for harm and injection, and Foundry Agent Service when actions are decided at runtime. Resist both consolidation and sprawl — and remember that the resource type you provision decides which of these are reachable at all.

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

  • Quick Note — Choose the appropriate Foundry services for generative tasks, grounding, vector search, agent workflows, or multimodal processing901 words
  • 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
  • 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
  • Configure security including managed identity, private networking, keyless credentials, and role policies2,695 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 What is being asked?. A connects to Azure AI Search (Find and rank content). A connects to Foundry IQ knowledge base (Reusable grounding for agents). A connects to Document Intelligence (Fields from documents). A connects to Content Understanding (Any modality into a shape). A connects to Content Safety (Screen for harm or injection). A connects to Foundry Agent Service (Decide actions at runtime). S connects to One index or several sources?. 2 more statements.
Loading Diagram...
Flowchart, left to right. Enterprise content connects to Indexed source. Enterprise content] --> IDX[Indexed source connects to Remote source<br/>queried live. IDX connects to Knowledge base. REM connects to KB. KB connects to Agent. AGT connects to KB (what to ground on). KB connects to KB (how to retrieve).
Loading Diagram...
Flowchart, top to bottom. Decompose the requirement connects to Retrieval. Decompose the requirement] --> RET[Retrieval connects to Extraction. Decompose the requirement] --> RET[Retrieval connects to Safety. Decompose the requirement] --> RET[Retrieval connects to Runtime action. RET connects to Azure AI Search. AIS connects to Classic search<br/>one index, your planning. AIS connects to Agentic retrieval<br/>knowledge base, service plans. AGR connects to Foundry IQ<br/>permission-aware, reusable. 8 more statements.

Service selection — retrieval

Card 1 of 5

Front of flashcard 1 of 5

Foundry IQ

easy

The managed knowledge layer over Azure AI Search that turns enterprise content into reusable, permission-aware knowledge bases for agents. The agent says what to ground on; the knowledge base decides how.

foundry-iq

Service selection — retrieval

Card 1

Front

Foundry IQ

Back

The managed knowledge layer over Azure AI Search that turns enterprise content into reusable, permission-aware knowledge bases for agents. The agent says what to ground on; the knowledge base decides how.

Card 2

Front

Three grounding shapes

Back

One existing index → Azure AI Search tool. Files uploaded to the agent → File Search. Several governed collections, planned by the service → knowledge base.

Card 3

Front

Document Intelligence vs Content Understanding

Back

Document Intelligence — documents and images, maintained schemas, strongly typed fields. Content Understanding — any modality (image, documents, audio, video) into pre-defined or user-defined formats, with standard and pro modes.

Card 4

Front

Agent or model call?

Back

Agent when something is decided at runtime across multiple steps. Not for schema-valid output (structured outputs), safety (content filters), or cheap high volume (agents add overhead).

Card 5

Front

Resource type constraint

Back

A Foundry resource serves models, agents, and tools on a project endpoint. An Azure OpenAI resource serves only /openai/v1 — platform tools are unreachable by construction, not by configuration.

Service selection — retrieval

Card 1

Front

Foundry IQ

Back

The managed knowledge layer over Azure AI Search that turns enterprise content into reusable, permission-aware knowledge bases for agents. The agent says what to ground on; the knowledge base decides how.

Card 2

Front

Three grounding shapes

Back

One existing index → Azure AI Search tool. Files uploaded to the agent → File Search. Several governed collections, planned by the service → knowledge base.

Card 3

Front

Document Intelligence vs Content Understanding

Back

Document Intelligence — documents and images, maintained schemas, strongly typed fields. Content Understanding — any modality (image, documents, audio, video) into pre-defined or user-defined formats, with standard and pro modes.

Card 4

Front

Agent or model call?

Back

Agent when something is decided at runtime across multiple steps. Not for schema-valid output (structured outputs), safety (content filters), or cheap high volume (agents add overhead).

Card 5

Front

Resource type constraint

Back

A Foundry resource serves models, agents, and tools on a project endpoint. An Azure OpenAI resource serves only /openai/v1 — platform tools are unreachable by construction, not by configuration.