↑ ↓ to move, Enter to open, Esc to close

    AI-901Azure AI Fundamentals

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search
    Free exam

    Exams / AI-901 / D2 Implement AI solutions by using Microsoft Foundry

    D2.4

    Implement AI solutions for information extraction by using Foundry

    • 4 min read
    • 3 sections
    • 9 questions
    • 55–60% of the exam
    • 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
    Document / scanned PDFdocument analyzerImageimage analyzerAudio: WAV / voicemailaudio analyzerVideovideo analyzerStructured JSON: fields +content

    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:

    loop[poll until Succeeded]AppContent UnderstandingPOST analyzers/{analyzerId}:analyze202 + Operation-LocationGET Operation-Locationstructured result (fields + content)

    "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_id is the parameter that selects which analyzer runs — prebuilt (e.g. prebuilt-invoice) or a custom one you created (e.g. invoiceAnalyzer). There is no extraction_type, model_name, or schema_id parameter; 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 completed AnalysisResult. There is no get_results() or wait() 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() (not analyze() for this flow) returns a poller; poller.result() (not get_results(), status(), or wait()) returns the final structured result. The parameter to pick an analyzer is analyzer_id (not model_name, schema_id, or extraction_type).
    • Getting results is about polling, not retrying or reading headers: the response headers only carry the Operation-Location to poll; you don't re-call begin_analyze() to "force" a synchronous result, and you don't fetch the schema to get data.

    Docs

    The rest of this chapter is part of the AI-901 premium course

    Unlock every chapter, all 155 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters