This repository is a beginner-friendly Microsoft Foundry workshop built around official Microsoft Learn guidance and official samples.
The examples use lightweight healthcare and life sciences scenarios so the workshop stays consistent across model calls, agents, evaluation, RAG, and workflow labs.
GitHub repository: beyondelastic/foundry-workshop
- Prepare your environment and verify Azure prerequisites.
- Create Microsoft Foundry resources and deploy a model.
- Make your first Python SDK model call.
- Create a prompt agent and have a multi-turn conversation.
- Evaluate that agent with a small dataset.
- Add basic observability with OpenTelemetry and view traces in Foundry.
- Use a built-in tool from a prompt agent.
- Build a simple RAG flow with file search.
- Coordinate two agents through a simple Python-managed handoff.
- Create a native Foundry workflow and invoke it from Python.
- Keep the flow easy to follow.
- Favor official documentation over custom theory.
- Keep examples short and runnable.
- Use a lightweight docs-first web UI.
- Microsoft Foundry SDKs and Endpoints
- Microsoft Foundry get-started code quickstart
- Azure AI Agents quickstart
- Microsoft Foundry cloud evaluation guidance
- microsoft-foundry/foundry-samples
- Azure SDK for Python samples for azure-ai-projects
.
├── docs/
├── examples/
├── mkdocs.yml
├── requirements.txt
└── SETUP.md
- Create a Python virtual environment.
- Install dependencies.
- Sign in to Azure.
- Copy
.env.exampleto.envand fill in your project values. - Start the docs UI with
mkdocs serve.
Detailed steps are in SETUP.md.
If you run the native workflow lab, save the workflow in Foundry with the default name Workshop-Clinical-Operations-Workflow or set AZURE_AI_WORKFLOW_NAME in .env to match the name you chose.
mkdocs serveThen open the local URL shown in the terminal, usually http://127.0.0.1:8000.
python examples/01-model-call/model_call.py
python examples/02-agent-chat/create_agent.py
python examples/02-agent-chat/chat_with_agent.py
python examples/03-agent-eval/evaluate_agent.py
python examples/04-observability/traced_model_call.py
python examples/05-tool-web-search/web_search_agent.py
python examples/06-simple-rag/file_search_rag.py
python examples/07-multi-agent/two_agent_workflow.py
python examples/08-declarative-yaml/prepare_workflow_agents.py
python examples/08-declarative-yaml/invoke_foundry_workflow.pyThis workshop targets azure-ai-projects>=2.0.0. If you run into SDK-shape mismatches, first confirm your installed version with pip show azure-ai-projects.