A hands-on, end-to-end coding workshop for building enterprise AI agents and apps on Microsoft Foundry (Azure AI Foundry) — Azure's unified PaaS for models, agents, knowledge, evaluation, and observability.
📖 Read the workshop online: https://monuminu.github.io/foundry-workshop/
The workshop is a MkDocs site whose lab pages are runnable Jupyter notebooks. Read it on the web, or clone this repo and run every lab against your own Foundry project.
Starting from a single Foundry project and az login, you progress from your first
model call to a grounded, tool-using, evaluated, observable agent:
- First inference — chat, embeddings, streaming, the Responses API
- Your first agent — versioned prompt agents
- Tools & function calling — Code Interpreter + custom tools
- Grounding / RAG — Azure AI Search knowledge bases (Foundry IQ)
- MCP tools — connect an agent to a Model Context Protocol server
- Work IQ — ground an agent in live, permission-aware Microsoft 365 work context (M5b)
- Agent memory — cross-turn context
- Multi-agent orchestration — router + specialists
- Deep research — agentic research loops with cited synthesis
- Evaluation — quality, agent, and custom evaluators
- Observability — OpenTelemetry tracing + continuous evaluation
- Guardrails — Prompt Shields, PII, custom blocklists
- Red teaming — automated adversarial scans
- Human-in-the-loop & REST — approvals + raw REST invocation
- Fine-tuning — knowledge distillation to a small model
- Capstone — combine it all, plus where to go next
git clone https://github.com/monuminu/foundry-workshop.git
cd foundry-workshop
# Author/build the site + run notebooks locally
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[docs]"
# Preview the site
mkdocs serve # http://127.0.0.1:8000To run the labs against Azure you'll also need pip install -e ., an az login,
and a Foundry project with deployed models. See Setup for the
full prerequisites and environment variables.
Lab notebooks are generated programmatically — never hand-edited as JSON. Each
module has a generator under scripts/gen_<id>.py that builds its notebook via
scripts/nbbuild.py. To regenerate:
PYTHONPATH=scripts python scripts/gen_01_first_inference.py
python scripts/check_notebook_links.py docs/modules # in-notebook link safety
mkdocs build --strict # whole-site buildMIT