Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 28 of 30
❮Prev Next❯

Content Understanding for Images

Module 2: Microsoft Foundry ⏱ 8 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    30-second answer

    Azure Content Understanding extracts information from images with an analyzer. The prebuilt prebuilt-imageSearch analyzer returns a written description of a photo, ready for search. For your own fields, you build a custom analyzer on the base analyzer prebuilt-image and add fields that use classify (pick from a list, such as damage type) or generate (write a value, such as a short description). Extract isn't available for images, and every field still comes back with a confidence score.

    Simulate it » No Azure account needed

    Exam objective: 2.4.2 Extract information from images by using Content Understanding. (Skills measured as of April 15, 2026)

    Simulations

    Feel it before you read it. No account needed, nothing leaves this page.

    Azure portal: Extract information from images Describe a photo and pull out the fields you define.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    <strong>prebuilt-imageSearch</strong> writes a description of any image, handy for search.

    👆 Click the glowing item in the portal to continue

    Read the steps as text
    1. prebuilt-imageSearch writes a description of any image, handy for search.
    2. For insurance claims, build an image analyzer: classify the damage type and generate a description. (Extract works for documents only.)
    3. Every photo now becomes the same structured record, ready for the claims system.

    🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.

    😟 THE PROBLEM

    Claims staff label damage types from thousands of car photos.

    😊 THE SOLUTION

    An image analyzer classifies the damage and describes it.

    • Manual labelling✓ Classify fields
    • Need a description✓ Generate fields
    • Search old photos✓ prebuilt-imageSearch
    🛠️ Solved with: Image analyzers

    Start with a question

    Can a photo of a dented car fill in an insurance form by itself?

    Arjun scrapes his car against a pillar in a mall car park. His insurer’s app asks him for three photos. A minute later the claim form already says: Damage type: Dent and scratch. Severity: Moderate. Area: Rear left door.

    No one at the insurer looked at the photos yet. A Content Understanding analyzer did, and it filled in fields the insurer defined, each with a score saying how sure it was.

    Explain it like I’m 10

    The technical explanation

    Content Understanding handles images with the same building block as documents: an analyzer. You either use a prebuilt one or create your own.

    Prebuilt: describe the image

    prebuilt-imageSearch returns a natural-language description of an image. That’s handy for search and retrieval-augmented generation (RAG): index the descriptions and people can find photos by typing what they’re looking for.

    Custom: your own fields

    For business-specific answers you create a custom analyzer:

    1. Set baseAnalyzerId to prebuilt-image.
    2. Add a field schema: each field has a name, type, description and method.
    3. Test it on sample images in the Foundry portal and check the confidence scores.

    Images support two field methods:

    MethodWhat it doesCar-photo example
    ClassifyPicks one value from a list you defineDamageType: Scratch, Dent, Broken glass, None
    GenerateWrites a value from what it seesDamageSummary: “Dent and scratch on the rear left door.”
    ExtractCopies a value printed in a documentNot available for images
    {
      "baseAnalyzerId": "prebuilt-image",
      "fieldSchema": {
        "fields": {
          "DamageType":    { "type": "string", "method": "classify", "enum": ["Scratch", "Dent", "Broken glass", "None"] },
          "Severity":      { "type": "string", "method": "classify", "enum": ["Minor", "Moderate", "Severe"] },
          "DamageSummary": { "type": "string", "method": "generate", "description": "One sentence describing visible damage and where it is" }
        }
      }
    }

    This JSON is simplified to show the shape. In the portal you add the same fields through a form, then upload a test photo.

    1. 1 Photo in

      A car photo from the claims app.

    2. 2 Analyzer

      Custom analyzer based on prebuilt-image.

    3. 3 Fields

      DamageType, Severity and DamageSummary filled in.

    4. 4 Confidence

      Each field scored 0 to 1.

    5. 5 Route

      High scores go straight on, low scores go to an assessor.

    A custom image analyzer at work

    Where it fits next to other vision options

    NeedPick
    Generic caption, tags, objects or OCRAzure Vision image analysis
    An open question about one photoA multimodal model in the chat playground or your app
    The same business fields from thousands of images, with confidence scoresContent Understanding custom analyzer
    Descriptions for image searchprebuilt-imageSearch
    Architect level Writing field descriptions that work

    The model fills fields from your descriptions, so the wording matters. Be specific about what counts: “Severe means the panel is torn or glass is broken; Moderate means a visible dent larger than a palm.” For classify fields, keep the list short and the options clearly different, and include a “None” or “Unclear” option so the model isn’t forced into a wrong choice. Then test on real, messy photos (bad lighting, odd angles) before you set your confidence threshold.

    Real-world business scenario

    Insurance

    Contoso Motor Insurance, Chennai

    The problem
    Assessors spent the first day of every claim just looking at photos to decide damage type and severity, so simple claims waited as long as complex ones.
    What they used
    Built a Content Understanding custom analyzer on prebuilt-image with classify fields for DamageType and Severity and a generate field for a short summary. Claims with high confidence and Minor severity go to fast-track approval.
    Why that choice
    The insurer needed its own categories returned the same way for every photo, plus confidence scores to decide when a person must look.
    The result
    Minor claims are triaged within minutes of upload, and assessors start their day with the severe and low-confidence claims.

    When to use it and when not to

    ✓ Use it when…

    • The same business fields from many images, such as damage type, product condition or meter readings.
    • Image descriptions for a search index with prebuilt-imageSearch.
    • Workflows that route uncertain results to a person using confidence scores.

    ✕ Think twice when…

    • Generic captions or tags only. Azure Vision image analysis is simpler.
    • One-off questions about a single photo. A multimodal model in the playground is quicker.
    • Final decisions with legal or financial impact without a person reviewing low-confidence results.

    ↔ Alternatives to consider

    • **Azure Vision in Foundry Tools** for captions, tags, objects and OCR.
    • **A multimodal model** with input_image for open questions.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    Test yourself with exercises

    4 original practice questions in the AI-901 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.

    Question 1

    Question 1 of 4

    A media company wants a natural-language description of each photo in its archive so that staff can search the archive by description. Which Content Understanding analyzer should the company use?

    Question 2

    Question 2 of 4

    You are creating a custom Content Understanding analyzer that returns damage information from vehicle photos. Which value should you set as the baseAnalyzerId?

    Question 3

    Question 3 of 4 · Select 2

    Which TWO field extraction methods can you use in a custom Content Understanding analyzer for images?

    Question 4

    Question 4 of 4

    An insurance company receives photos of damaged vehicles. Each photo must be labeled with exactly one damage type from the list Scratch, Dent, Broken glass or None, and photos with uncertain results must be reviewed by an assessor.

    Which solution meets the requirements?

    Interview preparation

    Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.

    Beginner How can Content Understanding help with images?

    Model answer

    It looks at an image and returns structured information. prebuilt-imageSearch gives me a description I can index for search, and a custom analyzer can return my own fields, like the type of damage in a car photo or whether a shelf is empty.

    Interviewer follows up

    Can it extract fields from images the same way it does from invoices?

    You

    Not with the extract method, which is for documents only. For images I use classify or generate fields instead.

    Intermediate How would you build a custom analyzer that rates damage in car photos?

    Model answer

    I'd create an analyzer with baseAnalyzerId prebuilt-image and add fields: DamageType with classify and a list like Scratch, Dent, Broken glass, None; Severity with classify as Minor, Moderate, Severe; and DamageSummary with generate. Then I'd test it on sample photos in the portal and check the confidence scores.

    Experienced developer When would you pick Content Understanding over Azure Vision image analysis for images?

    Model answer

    Azure Vision gives generic outputs like captions, tags, objects and OCR. Content Understanding is better when the business needs its own schema, such as a damage category or a product condition, returned the same way for every image, with confidence scores for routing to a person.

    Scenario A retailer wants to search 50,000 product photos by plain-English descriptions like "red kurta with gold border". What would you use?

    Model answer

    Run prebuilt-imageSearch over the photos to get a description of each one, store the descriptions in a search index such as Azure AI Search, and let shoppers search those descriptions. No custom fields needed.

    Quick revision

    Key points

    • prebuilt-imageSearch describes an image so it can be searched.
    • Custom image analyzers start from prebuilt-image as the baseAnalyzerId.
    • Image fields use classify or generate. Extract is for documents only.
    • Fields return confidence scores so low-confidence results can go to a person.
    • Use Content Understanding when you need your own schema, Azure Vision for generic captions, tags and OCR.

    Important terminology

    prebuilt-imageSearch
    A prebuilt Content Understanding analyzer that writes a description of an image so it can be searched.
    prebuilt-image
    The base analyzer you build custom image analyzers on, by setting it as baseAnalyzerId.
    Classify field
    A field whose value is chosen from a list you define, such as Scratch, Dent or Broken glass.
    Generate field
    A field whose value the model writes from the image, such as a one-sentence damage summary.
    Confidence score
    A value from 0 to 1 showing how sure the analyzer is about a field.

    Common mistakes

    • Choosing the extract method for an image field. It only works with documents.
    • Using prebuilt-document as the base for photos. Use prebuilt-image.

    Exam tips

    • "Describe each photo for search" = prebuilt-imageSearch.
    • "Custom fields from photos, such as damage type" = custom analyzer on prebuilt-image with classify or generate.

    Five quick revision questions

    1. 1.Which prebuilt analyzer describes images for search?Show

      prebuilt-imageSearch.

    2. 2.Which base analyzer do custom image analyzers use?Show

      prebuilt-image.

    3. 3.Which field method picks a value from a list?Show

      Classify.

    4. 4.Which field method isn't available for images?Show

      Extract (documents only).

    5. 5.What helps route uncertain results to a person?Show

      The confidence score on each field.

    Official references

    Finished this lesson? Tick it off. Your progress is saved in this browser.

    Next up: Content Understanding for Audio and Video

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.