π€Overview | πQuick Start | π¦Prerequisites | βοΈLocal Setup | πWorkshop Content | π§©Project Structure | βSupport | π€Contributing
A hands-on workshop that guides you through building intelligent AI agents using Azure AI Foundry's SDK, with examples ranging from customer service to health and dietary advice. You will:
- Learn Azure AI Foundry fundamentals
- Set up authentication and project configuration
- Deploy and test AI models
- Build AI agents (customer service and health advisor examples)
- Implement health calculations and dietary planning
- Evaluate agent performance with safety checks
Duration: 2-4 hours
Focus: Hands-on exercises, interactive notebooks, practical examples
-
Clone the repo:
git clone https://github.com/Azure/azure-ai-foundry-workshop.git cd azure-ai-foundry-workshop
-
Create & activate a virtual environment:
python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate
-
Configure environment:
cp .env.local .env
Update
.env
with your Azure AI Foundry values:PROJECT_CONNECTION_STRING
: Your project connection string from Azure ML workspaceMODEL_DEPLOYMENT_NAME
: Your model deployment nameEMBEDDING_MODEL_DEPLOYMENT_NAME
: Your embedding model deployment nameTENANT_ID
: Your tenant ID from Azure portalBING_CONNECTION_NAME
: Your Bing search connection nameSERVERLESS_MODEL_NAME
: Your serverless model name
Note: The model specified in
MODEL_DEPLOYMENT_NAME
must be supported by Azure AI Agents Service or Assistants API. See supported models for details. -
Install dependencies:
# Install core Azure AI SDKs pip install azure-identity azure-ai-projects azure-ai-inference azure-ai-evaluation azure-ai-contentsafety azure-monitor-opentelemetry # Install additional requirements pip install -r requirements.txt
-
Start Jupyter:
jupyter notebook
-
Follow the Learning Path:
-
Introduction (
docs/1-introduction/
)1-authentication.ipynb
: Set up your Azure credentials2-environment_setup.ipynb
: Configure your environment3-quick_start.ipynb
: Learn basic operations
-
Main Workshop (
docs/2-notebooks/
)- Chat Completion & RAG (
1-chat_completion/
) - Agent Development (
2-agent_service/
) - Quality Attributes (
3-quality_attributes/
)
- Chat Completion & RAG (
-
- Python 3.10+
- Azure subscription with access to Azure AI Foundry
- Deployment of a model and AI Search connection configured in Azure AI Foundry
- Basic Python knowledge
- Azure CLI
- Git
# Install Azure CLI (Ubuntu)
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# Login and set subscription
az login
az account set --subscription <YOUR_SUBSCRIPTION_ID>
-
Verify Python Version:
python --version # Should be 3.10 or higher
-
Create & activate virtual environment:
python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment:
- Copy
.env.example
to.env
- Update with your Azure credentials
- Copy
-
Start Jupyter:
jupyter notebook
- Azure authentication and setup
- Environment configuration
- Quick start with AI Foundry
- Core concepts and SDKs
- Basic chat completion
- Embeddings and vector search
- RAG for health knowledge
- Advanced models (Phi-4)
- Health Advisor Agent basics
- Code interpreter for health metrics
- File search capabilities
- Bing grounding for medical info
- AI Search integration
- Azure Functions deployment
- Observability setup
- Performance monitoring
- Agent evaluation
- Health advice safety checks
azure-ai-foundry-workshop/
βββ docs/
β βββ 1-introduction/
β β βββ 1-authentication.ipynb
β β βββ 2-environment_setup.ipynb
β β βββ 3-quick_start.ipynb
β βββ 2-notebooks/
β β βββ 1-chat_completion/
β β β βββ 1-basic-chat-completion.ipynb
β β β βββ 2-embeddings.ipynb
β β β βββ 3-basic-rag.ipynb
β β β βββ 4-phi-4.ipynb
β β βββ 2-agent_service/
β β β βββ 1-basics.ipynb
β β β βββ 2-code_interpreter.ipynb
β β β βββ 3-file-search.ipynb
β β β βββ 4-bing_grounding.ipynb
β β β βββ 5-agents-aisearch.ipynb
β β β βββ 6-agents-az-functions.ipynb
β β βββ 3-quality_attributes/
β β βββ 1-Observability.ipynb
β β βββ 2-evaluation.ipynb
β βββ agents/
β βββ evaluation/
β βββ models/
β βββ sdk/
βββ .env
βββ .env.local
βββ requirements.txt
If you encounter issues:
-
Check Prerequisites:
- Verify Python version
- Confirm Azure CLI installation
- Check environment variables
-
Common Solutions:
- Restart Jupyter kernel
- Reactivate virtual environment
- Clear notebook output and restart
-
Get Help:
- Check Azure AI Foundry docs
- Search open issues
- Submit a new issue
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
- Follow PEP 8 style guide
- Add tests for new features
- Update documentation
- Keep examples simple and clear
This project follows the Microsoft Open Source Code of Conduct.
MIT License
Copyright (c) Microsoft
See LICENSE.txt for details.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos must follow Microsoft's Trademark & Brand Guidelines.