A field guide to Azure AI

The Story
of Ali

Everything you need to pass the Microsoft Azure AI Essentials exam — taught not as a glossary, but as one connected story you'll actually remember.

Machine Learning Computer Vision NLP Generative AI Responsible AI
Begin the story  ↓
Before we begin · why a story?

Definitions fade.
Stories stick.

You can memorise forty flashcards. You will forget them by the exam. So let's not do that.

When I sat the Microsoft Azure AI Essentials exam, I quickly noticed something: it almost never asks "what is X." It hands you a messy real-world scenario and asks which Azure service fits. You cannot brute-force that with definitions. You need to actually understand how the pieces relate.

So I rebuilt the entire syllabus around a single character named Ali — a boy who grows up, learns from the world around him, and eventually opens a restaurant that quietly runs on artificial intelligence. Every concept on the exam lives somewhere in his life. Master the story, and the services stop being jargon and start being characters you already know.

Grab a coffee. This is a long read, but by the end the whole field of Azure AI will feel like a place you've already visited.

Microsoft Azure AI Essentials Professional Certificate awarded to Mohammed Jouhar by Microsoft and LinkedIn
This is where the story earned its keep. Three hours and twenty-three minutes, one honest second attempt, and the concepts on this page turned into a pass. Everything that follows is exactly how I got here.
Act One · how a machine learns

A child, a fruit bowl,
and the first model

The story

When Ali was small, nobody handed him a rulebook for fruit. His parents simply pointed: "apple… banana… orange." A thousand quiet examples later, Ali could walk into any market on earth, glance at a fruit he had never seen, and make a confident guess.

No one programmed the rules. Ali found the patterns himself, from examples. That is the whole idea behind machine learning: instead of writing instructions, you show a model lots of examples and let it learn the pattern.

School, tests, and an honest model

At school, Ali studied worksheets that already had the answers filled in — these are the training data. Then the teacher set an exam with questions he'd never seen — the validation data — to check he truly understood rather than just memorised. A student who only memorises fails the new exam. In machine learning we call that overfitting: brilliant on the practice sheet, useless in the real world.

TRAININGlearn from examples VALIDATIONtest understanding DEPLOYgo live INFERENCINGpredict on real data
The life of a model — and yes, "inferencing" is the live prediction step, not validation.
💡
Remember this

A doctor studies for years (training), passes board exams (validation), then sees real patients (inferencing). Every real diagnosis is an inference.

Act Two · the three questions

Numbers, boxes,
and bubbles

As Ali grew, his teachers asked three very different kinds of question. Each maps to a machine-learning technique.

Regression

"How much is this house worth?" Predicts a number — a price, a temperature, a forecast.

clue: how much · how many · forecast
Classification

"Is this spam — yes or no?" Sorts things into categories that already have labels.

clue: is it · which type · yes/no
Clustering

"Which customers naturally group together?" Finds groups with no labels given in advance.

clue: segment · group · no labels
🔑
The one test that never fails

Ask: does the training data already have answers (labels)? If yes → Classification. If no, and you're finding groups yourself → Clustering. (Coffee scored 1–5 by an expert? Those are labels. That's classification, not clustering.)

Features versus labels

Think of a recipe. The features are the ingredients you put in — age, salary, location. The label is the dish you're trying to predict — "will this customer churn?" Features go in; the label is what comes out.

Act Three · a deeper mind

From recognising fruit
to understanding films

As a teenager, Ali no longer just named objects. He watched a film and understood the villain's motive from a glance, the mood from the lighting. His mind had grown layers of understanding — surface shapes, then emotions, then meaning.

LAYER 1LAYER 2LAYER 3OUTPUT edges & lines shapes features "it's a cat"
Deep learning: each layer of the neural network understands something more complex than the last.

At university Ali gained one more gift. His classmates read word by word; Ali read the whole page at once, instantly knowing which words connected to which. Hand him "the trophy didn't fit in the suitcase because it was too big" and he knows in a heartbeat that "it" is the trophy. That ability to weigh every word against every other word is the Transformer — the architecture under GPT, Copilot, and every modern large language model.

One brain, many talents — the foundation model

A traditional model is a specialist: one chef who only makes pasta. A foundation model is the master chef who read every cookbook ever written — it writes text, reads images, generates code and reasons, all from one model. When the exam says a model "performs language tasks, processes images, and much more," that phrase is your signal: foundation model. Microsoft Copilot is built on one.

Act Four · the restaurant

Ali stops analysing food.
He starts creating it.

Generative AI is the leap from critic to artist — and the whole Azure generative stack is just Ali's kitchen.

Azure AI Foundry — the whole restaurant AZURE OPENAI SERVICE The chef's brain — GPT-4, DALL·E, the intelligence behind the dishes MODEL CATALOG The menu of chefs — GPT, Phi, Llama, Mistral. Pick the right one. RAG (grounding) Check the real recipe book before cooking — answer from real data. HALLUCINATION A confident dish invented on the spot — looks right, tastes wrong.
The generative AI kitchen: Foundry is the building, Azure OpenAI is the brain, the Model Catalog is the menu.
Prompts & temperature

A prompt is the order you give the chef. Temperature is the creativity dial: low for factual, legal or medical answers; high for brainstorming and creative writing.

Grounding with RAG

Retrieval-Augmented Generation makes the model fetch real documents first, then answer. It's the single best cure for hallucinations.

🍽️
The whole stack in one breath

The restaurant is Foundry · the chef's brain is Azure OpenAI · the menu is the Model Catalog · the recipe book is RAG · a bad invented dish is a hallucination.

Act Five · backstage services

The staff who keep
the restaurant running

Ali's chain goes global, and customers use AI all day without noticing. Here's the full crew — and the exact distinctions the exam loves to test.

The eyes — Computer Vision

Azure AI Vision

The world-class chef who already knows everything: captions, reading text (OCR), detecting and locating objects, analysing video. No training needed.

general images, out of the box
Azure AI Custom Vision

The specialist you train on your own images — your 50 products, your defect types. Brilliant at your niche, lost everywhere else.

your specific images, you train it
👁️
Vision rule of thumb

Describe or caption a general scene → Azure AI Vision. Recognise something unique to your business → Custom Vision. Read text from an image → OCR. Pull structured fields from a form → Document Intelligence.

The voices & the readers — NLP

You need to…Use this
Know if feedback is positive or negativeSentiment Analysis
Pull the main topics & themes from textKey Phrase Extraction
Find specific people, places, dates, orgsNamed Entity Recognition (NER)
Extract your own custom terms (e.g. legal clauses)Custom NER
Detect which language text is in & translateAzure AI Translator
Control pitch, speed, volume, pauses of a voiceSSML (in Azure AI Speech)
Answer questions from an FAQ documentQuestion Answering
Understand what a user intends to doConversational Language Understanding (CLU)
🧭
The two classic NLP traps

Key phrases vs NER: themes & topics → key phrases; specific named things (who, where, when) → NER.   Question Answering vs CLU: answer from an FAQ document → Question Answering; figure out the user's intent → CLU.

The filing room, the bouncer & the library

Document Intelligence

Reads forms and pulls out structured fields — invoice totals, contract parties, dates. OCR gives a photocopy; this gives a spreadsheet.

Content Safety

The bouncer at the door. Detects hate, violence, sexual and self-harm content before it reaches users. A service, not a principle.

Azure AI Search

The brilliant librarian behind knowledge mining — indexes mountains of documents and surfaces answers by meaning, not just keywords.

Act Six · keeping it honest

Six rules pinned
to the kitchen wall

Every great restaurant has a health code. Microsoft's six Responsible AI principles are Ali's — and the exam often asks which principle a scenario belongs to, or which action does not support one.

Fairness

No bias. If the model favours one group, check whether the training data is diverse and representative.

Reliability & Safety

Works consistently and survives unexpected input. A system that crashes on odd data fails this principle.

Privacy & Security

Protects data. Anything about GDPR, CCPA or data regulations lives here — not under reliability.

Inclusiveness

Works for everyone, including people with disabilities.

Transparency

People can understand how a decision was made.

Accountability

Humans stay responsible for outcomes. Transparency explains; accountability owns.

⚖️
The favourite trap

"Which action does not support reliability & safety?" — the odd one out is usually a GDPR / compliance task. That belongs to Privacy & Security, so it's the answer.

Business first, technology second

When an organisation wants to "start using AI," the right first move is almost always to define and prioritise the business need — not hire experts or buy subscriptions. And when departments each pick their own tools, that's an organisation & culture problem: leadership must drive one shared AI vision to avoid siloed efforts.

The exam · five traps that catch everyone

Where the points
quietly leak away

"Detect & locate objects" vs "describe the scene"

Object detection draws boxes; captioning writes a sentence. A blind-assistance app needs a caption (Azure AI Vision), not coordinates.

OCR or Document Intelligence?

Raw text from an image → OCR. Structured fields into a database → Document Intelligence. The keyword is "structured."

Classification or Clustering?

If the training rows already carry labels (even 1–5 scores), it's Classification. No labels, find the groups → Clustering.

Reliability or Accountability?

System misbehaves or crashes → Reliability & Safety. Nobody owns the bad outcome → Accountability.

Foundation or Traditional model?

"Does many different tasks from one model" → Foundation model. One task only → traditional ML.

The night before · one-screen cheat sheet

Everything,
on a single page

Pick the right service

The taskThe answer
Predict a numberRegression
Sort into known categoriesClassification
Find groups with no labelsClustering
Caption / describe an imageAzure AI Vision
Recognise your own imagesCustom Vision
Read text from an imageOCR
Extract fields from a formDocument Intelligence
People, places & dates from textNamed Entity Recognition
Main topics from textKey Phrase Extraction
Answer from an FAQ documentQuestion Answering
Understand user intentConversational Language Understanding
Detect language + translateAzure AI Translator
Control pitch / speed / volume of speechSSML
Make mountains of documents searchableAzure AI Search (knowledge mining)
Block harmful user contentAzure AI Content Safety
GPT-4 in a secure cloudAzure OpenAI Service
Build a full generative AI appAzure AI Foundry
Run a model offline / on-premisesSmall Language Model (SLM)
Ground answers in real documentsRAG

The six responsible AI principles

Fairness · Reliability & Safety · Privacy & Security · Inclusiveness · Transparency · Accountability.

The golden ordering

Business need → data & technology → AI strategy → people & culture. Business always comes first.