Exams / AI-901 / D2 Implement AI solutions by using Microsoft Foundry
Implement AI solutions for information extraction by using Foundry
- Extract information from documents and forms by using Azure Content Understanding in Foundry Tools
- Extract information from images by using Content Understanding
- Extract information from audio and video by using Content Understanding
- Build a lightweight application with information extraction capabilities by using Content Understanding
Azure Content Understanding turns unstructured content (documents, images, audio, video) into the structured, schema-defined output an application needs, using generative AI instead of hand-written parsing rules.
What you provision
Content Understanding is exposed through a Microsoft Foundry resource — "To use Content Understanding, you need a Microsoft Foundry resource." A Foundry project is a workspace for organizing work; the resource underneath it is what actually runs the service. Don't confuse this resource with an Azure OpenAI resource (a different Foundry Models capability) or Azure AI Search (a search/index service, not an extractor).
Analyzers: one base type per content type
An analyzer is the unit of configuration: it defines what to extract and how. Base analyzers map 1:1 to content type — "Base analyzers: Foundational analyzers that provide core processing capabilities for each content type (prebuilt-document, prebuilt-audio, prebuilt-video, prebuilt-image)."
| Content | Analyzer | Typical source |
|---|---|---|
| Documents, forms, scanned PDFs | document analyzer | Invoices, receipts, contracts |
| Images | image analyzer | Photos, scanned pictures |
| Audio | audio analyzer | Voicemails, call-center recordings |
| Video | video analyzer | Uploaded video files |
A WAV voicemail always goes to the audio analyzer — not the video analyzer, even though video analyzers also handle audio tracks, because there's no visual content to process.
Audio analyzers in detail
Audio analyzers do two things: "Audio analyzers enable transcription and diarization for conversational audio and extract structured fields such as summaries, sentiment, and key topics."
- Transcription: speaker-separated transcript in WebVTT format ("Audio content extraction transcribes audio files.").
- Field extraction: custom structured fields (summaries, sentiment, entities) pulled from that transcript.
This combination — transcript and structured data from the same call — is exactly what a voicemail-processing or call-center scenario needs.
Field schemas: nested data for documents like invoices
An analyzer's field schema is what makes extraction "structured" instead of raw OCR text: "The fieldSchema property defines what structured data your analyzer extracts from content." Crucially, the schema isn't flat — "Hierarchical support: Supports nested fields through object and array types for representing complex data structures." That's what lets an invoice analyzer represent a list of line items (an array of objects), not just top-level key/value pairs.
Content Understanding explicitly targets this use case: "For example, automate invoice processing, contract analysis, and claims management by extracting and validating fields from complex documents." A plain OCR pipeline (text only, no schema), a Speech transcription workflow (audio, not documents), or Azure AI Search (indexing, not schema extraction) can't do this job.
The Analyze operation and the Python SDK
Whatever the content type, extraction goes through the same Analyze operation: "Extract content and fields from input." Content Understanding also has stable, general support across content types — "Stable support for document, image, audio, and video extraction workflows."
Analysis is asynchronous: "Content Understanding operations are asynchronous long-running operations." The REST flow is submit → poll → retrieve:
"Poll the URL every 1–2 seconds until status is Succeeded." The result is never in the initial response headers — only the polling URL is.
In the Python SDK, this maps to:
poller = client.begin_analyze(
analyzer_id="invoiceAnalyzer", # selects the analyzer (prebuilt or custom)
inputs=[AnalysisInput(url=file_url)],
)
result = poller.result() # blocks, polls automatically, returns AnalysisResult
begin_analyze(analyzer_id=..., ...)starts the long-running operation.analyzer_idis the parameter that selects which analyzer runs — prebuilt (e.g.prebuilt-invoice) or a custom one you created (e.g.invoiceAnalyzer). There is noextraction_type,model_name, orschema_idparameter; those concerns live inside the analyzer's own definition, not in the call.poller.result()is the completion method: "The SDK provides LROPoller types that handle polling automatically when using .result()." It waits for the operation and returns the completedAnalysisResult. There is noget_results()orwait()method;poller.status()only returns the current status string, not the final data.
| Step | Call |
|---|---|
| Submit | client.begin_analyze(analyzer_id=..., inputs=[...]) → returns a poller |
| Retrieve | poller.result() → blocks/polls, returns AnalysisResult |
Exam traps
- "Which resource do I provision?": Microsoft Foundry resource, not a Foundry project, Azure OpenAI resource, or Azure AI Search.
- Analyzer type must match content type: PDF/scanned document: document analyzer; WAV/voicemail → audio analyzer; still image → image analyzer; uploaded video → video analyzer. Don't let "it has sound" push you toward the video analyzer when the input is audio-only.
- Nested/structured fields in a document (e.g. invoice line items): the signal is "defined schema" + "nested values": that's a Content Understanding analyzer's field schema (object/array types), not plain OCR and not a search index.
- Python SDK method names:
begin_analyze()(notanalyze()for this flow) returns a poller;poller.result()(notget_results(),status(), orwait()) returns the final structured result. The parameter to pick an analyzer isanalyzer_id(notmodel_name,schema_id, orextraction_type). - Getting results is about polling, not retrying or reading headers: the response headers only carry the
Operation-Locationto poll; you don't re-callbegin_analyze()to "force" a synchronous result, and you don't fetch the schema to get data.
Docs
- Azure Content Understanding in Foundry Tools audio overview
- What is Azure Content Understanding in Foundry Tools?
- Create a Microsoft Foundry resource
- What is a Content Understanding analyzer?
- Content Analyzers - Analyze - REST API
- Quickstart: Use Azure Content Understanding in Foundry Tools
- Azure AI Content Understanding client library for Python
- ContentUnderstandingClient class
- Azure Core LROPoller.result()