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.

| Lessons | Step | What you learn |
|---|---|---|
| 1 to 3 | The basics | What agents are, how the frameworks compare, and the core design patterns. |
| 4 to 9 | Core patterns | Tool use, agentic RAG, trustworthy agents, planning, multi-agent systems and metacognition. |
| 10 to 14 | Shipping | Production, the MCP, A2A and NLWeb protocols, context engineering, agent memory and Microsoft Agent Framework. |
| 15 to 18 | Going further | Browser-driving agents, deploying on Foundry, local agents with Foundry Local and Qwen, and signed audit receipts. |
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.

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.

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.
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 ran | Result |
|---|---|
| Lesson 18 receipt tests | 12 passed, 18 subtests passed |
| Lesson 11 MCP event store tests | 6 passed |
| Lesson 14 hotel workflow, gpt-4.1-mini on OpenAI’s API | Ran end to end; both routes worked |
| Same sample on its default, gpt-5-mini | Stopped with a 400 error, twice |
| Same sample on MiniMax-M3 | Stopped when the reply failed to parse as JSON |
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.

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.

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.

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.

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.




