microsoft/Building-AI-Agents-From-Zero-To-Production
About
This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalBuilding AI Agents from Zero to Production
![]()
🌐 Multi-Language Support
Translations maintained with Co-op Translator
Arabic | Bengali | Bulgarian | Burmese (Myanmar) | Chinese (Simplified) | Chinese (Traditional, Hong Kong) | Chinese (Traditional, Macau) | Chinese (Traditional, Taiwan) | Croatian | Czech | Danish | Dutch | Estonian | Finnish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kannada | Khmer | Korean | Lithuanian | Malay | Malayalam | Marathi | Nepali | Nigerian Pidgin | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Telugu | Thai | Turkish | Ukrainian | Urdu | Vietnamese
Prefer to Clone Locally?
This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:
Bash / macOS / Linux:
git clone --filter=blob:none --sparse https://github.com/microsoft/Building-AI-Agents-From-Zero-To-Production.git cd Building-AI-Agents-From-Zero-To-Production git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'CMD (Windows):
git clone --filter=blob:none --sparse https://github.com/microsoft/Building-AI-Agents-From-Zero-To-Production.git cd Building-AI-Agents-From-Zero-To-Production git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"This gives you everything you need to complete the course with a much faster download.
A course teaching you the fundamentals of the AI Agent Development Lifecycle
🌱 Getting Started
This course has lessons covering the fundamentals of building and deploying AI Agents.
Each lesson builds on the previous one, so we recommend starting from the beginning and working your way through to the end.
If you want to explore more about AI Agent topics, you can check out the AI Agents For Beginners Course.
Meet Other Learners, Get Your Questions Answered
If you get stuck or have any questions about building AI Agents, join our dedicated Discord Channel in the Microsoft Foundry Discord.
What You Need
Each Lesson has its own code sample that you can run locally. You can fork this repo to create your own copy.
This course currently uses the following:
- Microsoft Agent Framework (MAF)
- Microsoft Foundry — a project with a deployed GPT-5 series model (for example
gpt-5.1). Do not use the retired GPT-4o / GPT-4.1 models. - Azure OpenAI Service
- Azure CLI — sign in with
az loginbefore running any sample - Python 3.12 or later
Please ensure you have access to these services before getting started.
Develop in a Container
The devcontainer configuration provides Python 3.12,
Node.js 22, Azure CLI, Azure Developer CLI (azd), Docker CLI, and Python and Bicep
extensions for VS Code. It also works in GitHub Codespaces.
- For local development, install Docker Desktop (or another Docker-compatible runtime) and the VS Code Dev Containers extension, then start Docker.
- Open this repository in VS Code and run Dev Containers: Reopen in Container from the Command Palette, or create a Codespace for the repository.
- Wait for setup to install the root Python requirements in
/home/vscode/.venvs/course, selected automatically for Python and new terminals. Do not activate a virtual environment created on your host OS. - Create a root
.envfrom.env.example, preserving any existing values, and fill in your Microsoft Foundry project and model settings. - In the container terminal, sign in with
az login --use-device-code. For deployment lessons, also runazd auth login --use-device-code.
Follow the lesson instructions to run samples. DevUI ports 8090-8096, the A2A server port 9000, and ChatKit ports 3000 and 8001 are forwarded automatically. No agents are started and no Azure resources are provisioned during container setup.
Lesson 4 has additional backend, hosted-agent, and frontend dependencies. Follow its
setup instructions, using separate
virtual environments for its Python components: the hosted agent pins a different SDK
version from the root course requirements. Install frontend packages with npm install
from its frontend directory.
When using browser-based GitHub Codespaces, start the frontend from that directory
with its forwarded hostname explicitly allowed by running
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS="${CODESPACE_NAME}-3000.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}" npm run dev.
The container can access the host Docker daemon to build lesson 4 images. Only open
trusted repositories in it, because Docker access grants control over the host daemon.
Azure credentials are not mounted from your host; sign in inside the container again
after rebuilding it. Existing .env files are never overwritten by container setup.
💰 Cost & cleanup. The hands-on lessons create real Azure resources — a Microsoft Foundry project, a model deployment, a vector store, and (in Lessons 4–6) hosted agents and toolboxes. These can incur cost while they exist. When you finish a lesson — or the course — delete the resources you no longer need. The simplest approach is to put everything in a dedicated resource group and delete the whole group when you're done:
az group delete --name <your-resource-group> --yes --no-waitYou can also delete individual agents, vector stores, and toolboxes from the Foundry portal.
Note on models. This course serves all models through Microsoft Foundry. It does not use GitHub Models, which retired on July 30, 2026 — Microsoft Foundry is the official migration path. If you have older code that calls GitHub Models, point it at a Foundry model deployment instead.
Start with Choosing an agent type to compare Foundry prompt and hosted agents, the Microsoft Copilot harness (preview) in Foundry, and Microsoft 365 Copilot agents. The course keeps the Developer Onboarding Agent's logic in your code while Foundry manages its production hosting.
🗃️ Lessons
| Lesson | Description |
|---|---|
| Agent Design | An introduction to our "Developer Onboarding" Agent Use Case and how to design effective agents |
| Agent Development | Using the Microsoft Agent Framework (MAF), build a set of specialised agents to help new developers onboard. |
| Agent Evaluations | Using Microsoft Foundry, find out how well our AI Agents are performing and how to improve them. |
| Agent Deployment | Using Microsoft Foundry hosted agents and OpenAI ChatKit, see how to deploy an AI Agent into production. |
| Production Hosted Agents | Take a hosted agent to enterprise production: Hosted Agents vs Capability Hosts, bring-your-own storage, memory, and governance. |
| Microsoft Toolbox | Define tools once and govern them centrally: build a toolbox, consume it from an agent via one MCP endpoint, and version tools safely. |
| Multi-Agent & A2A | Compose agents as networked services: expose an agent over the open Agent-to-Agent (A2A) protocol and consume a remote agent as a peer. |
🎒 Other Courses
Our team produces other courses! Check out:
LangChain
Azure / Edge / MCP / Agents
Generative AI Series
Core Learning
Copilot Series
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos is subject to those third-parties' policies.
Getting Help
If you get stuck or have any questions about building AI apps, join:
If you have product feedback or errors while building visit:
Explore related projects
Loading…