Sulat.com / Writing on AISunday, December 6, 2026
Enter →
Agent Engineering/6 December 2026

Microsoft’s AI Agents for Beginners course, lesson by lesson

Microsoft's free 18-lesson AI Agents for Beginners course comes with code and video. I ran its tests and samples: the lessons cost nothing, but the default samples need an Azure account.

Glossy 3D Microsoft four-square logo on a classroom desk beside a fan of eighteen books with a white robot hand resting on them
Illustration: Sulat, featuring the Microsoft logo

At a glance

  • Microsoft's AI Agents for Beginners is an MIT-licensed GitHub course with 18 lessons, each with a written guide and runnable code, and a video for the first 13.
  • The course's own setup guide says the default samples need an Azure account and a Microsoft Foundry project, with OpenAI-compatible providers and Foundry Local as alternatives.
  • Microsoft launched the course in February 2025 with 10 lessons built on Semantic Kernel and AutoGen, and has since rebuilt it on Microsoft Agent Framework and Foundry.
  • I ran the lesson 18 receipt tests (12 passed) and the lesson 14 hotel workflow, which completed on gpt-4.1-mini but stopped with an API error on the sample's default gpt-5-mini.
  • Lesson 18 teaches signed audit receipts, not prompt injection; the course's threat list sits in lesson 6.

Microsoft’s AI Agents for Beginners is a free, MIT-licensed course on GitHub that teaches how to build AI agents in 18 lessons. Each lesson has a written guide and runnable code, and the first 13 have a short video. I installed its pinned dependencies, ran the tests it ships and three of its samples. The lessons cost nothing; the default samples need an Azure account.

Microsoft’s Tech Community announced the course in February 2025 with 10 lessons. The repository now links 54 translated versions of the README, and the lesson count has nearly doubled.

What the 18 lessons cover

The lessons run in order, but the course says each one stands alone, so you can start wherever you like. They fall into four steps.

Diagram: AI Agents for Beginners 18 lessons grouped into four steps, basics, core patterns, shipping and going further
Eighteen lessons fall into four steps, from basics to security.
LessonsStepWhat you learn
1 to 3The basicsWhat agents are, how the frameworks compare, and the core design patterns.
4 to 9Core patternsTool use, agentic RAG, trustworthy agents, planning, multi-agent systems and metacognition.
10 to 14ShippingProduction, the MCP, A2A and NLWeb protocols, context engineering, agent memory and Microsoft Agent Framework.
15 to 18Going furtherBrowser-driving agents, deploying on Foundry, local agents with Foundry Local and Qwen, and signed audit receipts.
Grouped from the course’s lesson table.

Every lesson folder holds a README with the written lesson and a code_samples folder. The samples are Python notebooks, and lessons 1 to 5, 7 and 8 also have .NET versions. Lessons 1 to 13 link a video. Lessons 14 to 18 don’t, and lesson 18’s page still carries a placeholder where its video link will go.

What free covers

The reading, the code and the videos are free. Running the samples as written is a different matter. The README lists Microsoft Foundry as the model service and says an Azure account is required. The notebooks authenticate through the Azure CLI, so you sign in with az login, create a Foundry project and deploy a model such as gpt-5-mini before the first cell runs.

Diagram: AI Agents for Beginners lessons, code and videos are free under the MIT licence, default samples need an Azure account, other model routes exist
The lessons are free; the default samples want an Azure account.

The setup lesson documents other routes. MiniMax and Novita AI work through the framework’s OpenAI-compatible client, though the README says the samples pick up MiniMax settings automatically and don’t read the Novita ones. Lesson 17 runs a Qwen model on your own machine through Foundry Local, with no cloud calls.

A course that keeps rebuilding itself

The launch version used Semantic Kernel, AutoGen, Azure AI Agent Service and GitHub Models, according to Microsoft’s own posts. Microsoft then introduced Agent Framework in October 2025 to unify the first two, and declared it 1.0 in April 2026.

Infographic: Microsoft's AI Agents for Beginners course launched with 10 lessons and now has 18, still free, on newer tools
The course launched with 10 lessons and now has 18.

The course followed. Its changelog says the July 2026 releases rewrote the Semantic Kernel lesson on Agent Framework, moved the samples to the Responses API, dropped GitHub Models, which was retiring, and moved off gpt-4.1 and gpt-4.1-mini to gpt-5-mini. The same releases added lessons 16 and 17. The dependencies are pinned to the 1.10 line because, per the changelog, version 1.11.0 ships experimental breaking changes to the surfaces the lessons use.

The latest changelog entry, dated 2 December, adds an overview of Microsoft’s agent types to lesson 2 and notes that Foundry declarative workflows (preview) retired on 1 December 2026.

What I ran

I used a fresh Python environment on a box with 4 cores, 16 GB RAM and Ubuntu 24, and installed the course’s requirements.txt unchanged. It installed cleanly. I had no Azure account, so I ran the pieces that don’t need one: the tests and examples that ship with lessons 11 and 18, and the lesson 14 hotel workflow against OpenAI’s API and MiniMax’s.

Code
pip install -r requirements.txt pytest
python -m pytest -q 18-securing-ai-agents/code_samples/test_signed_receipts.py
python -m pytest -q 11-agentic-protocols/code_samples/mcp-agents/server/test_event_store.py
python 14-microsoft-agent-framework/code-samples/hotel_booking_workflow_sample.py
What I ranResult
Lesson 18 receipt tests12 passed, 18 subtests passed
Lesson 11 MCP event store tests6 passed
Lesson 14 hotel workflow, gpt-4.1-mini on OpenAI’s APIRan end to end; both routes worked
Same sample on its default, gpt-5-miniStopped with a 400 error, twice
Same sample on MiniMax-M3Stopped when the reply failed to parse as JSON
Results from my runs; the Azure-dependent lessons weren’t run.

The hotel workflow is the lesson 14 showcase: one agent checks room availability, and a conditional edge sends the result either to an agent that suggests another city or to one that encourages the booking. On gpt-4.1-mini it routed Paris to Amsterdam and Stockholm to a booking prompt. A small oddity: the sample prints “No availability” for Stockholm before it routes to booking, because the condition function logs before it returns. The routing itself was right.

Terminal output of the lesson 14 hotel workflow: Stockholm logs no availability, then reports availability true and routes to booking
The booking route ran correctly, but the sample logs “No availability” first.

On the sample’s default model, gpt-5-mini, the same run failed twice with a 400 from the Responses API: a function-call item had been sent back without its paired reasoning item. A plain agent with one tool worked on both gpt-5-mini and gpt-4.1-mini, so the failure comes from how the workflow replays the conversation with structured output switched on. I ran on OpenAI’s API rather than Foundry. On MiniMax-M3 the model answered with a sentence before calling the tool, and the sample tried to read that sentence as the JSON result. A bare tool-calling agent pointed at MiniMax’s endpoint returned a 400 “messages is empty” error for both M3 and M2.7. I didn’t dig into why.

Lesson 18 runs offline

Lesson 18 is the newest and the one that needs nothing from Azure. It builds signed receipts for an agent’s tool calls: a JSON record of what the agent did, signed with Ed25519, so an auditor can check later that nobody edited it. Receipts can be chained so that removing or reordering one breaks the chain.

Terminal output of lesson 18 tests: 12 passed, valid receipt True, tampered False, forged receipt passes only against its own key
The lesson’s receipt tests pass offline, and the forged copy fails the issuer’s key.

The sample receipts behaved as the lesson says. The untouched receipt verified, the edited one failed, a chain of three verified, and a forged receipt re-signed with the attacker’s own key passed only against that key. The lesson is plain about the limit: a receipt proves attribution, integrity and ordering, not that the action was correct or the policy sound, and a key embedded in the receipt proves self-consistency, not who issued it.

Diagram: AI Agents for Beginners lesson 18 receipts, an untouched receipt passes, an edited one fails, a re-signed forgery fails the issuer key
A receipt that’s edited, or re-signed by a forger, fails against the issuer’s key.

Where the threats live

Lesson 18 is about audit trails, so it doesn’t cover prompt injection. The course’s list of threats is in lesson 6, which names five: attackers changing an agent’s instructions or goals, an agent with too much access to critical systems, floods of requests through the agent, poisoned knowledge bases, and cascading errors. Each comes with a short mitigation, such as input checks, least-privilege access and request limits. It’s a checklist, not a hands-on exercise.

Infographic: AI Agents for Beginners lesson 6 five agent threats, hijacked instructions, too much access, request floods, poisoned knowledge, cascading errors
Lesson 6 names five ways an agent gets attacked.

How it sits next to other free courses

Hugging Face’s AI Agents Course is free and covers three frameworks, smolagents, LlamaIndex and LangGraph, with a final project. You can audit it or earn one of two free certificates. DeepLearning.AI’s Agentic AI is taught by Andrew Ng and teaches the same patterns without tying you to a framework. Microsoft’s course is the one built around a single vendor stack, Agent Framework on Foundry, and its README doesn’t offer a certificate. That focus is why the code is current and why the defaults lean on Azure.

What I didn’t run

I didn’t run the lessons that need Azure: the Foundry notebooks in lessons 1 to 4 and 6 to 10 and the deployment in lesson 16. Lesson 5 also needs Azure AI Search. I didn’t run the browser agent in lesson 15 or the Foundry Local agent in lesson 17.

To start, open the course setup lesson, then lesson 1.

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.