Follow these steps to begin your AZD learning journey:
- Fork the Repository: Click
- Clone the Repository:
git clone https://github.com/microsoft/azd-for-beginners.git - Join the Community: Azure Discord Communities for expert support
- Choose Your Learning Path: Select a chapter below that matches your experience level
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 | Korean | Lithuanian | Malay | Marathi | Nepali | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Thai | Turkish | Ukrainian | Urdu | Vietnamese
Master Azure Developer CLI (azd) through structured chapters designed for progressive learning. Special focus on AI application deployment with Microsoft Foundry integration.
Based on Microsoft Foundry Discord community insights, 45% of developers want to use AZD for AI workloads but encounter challenges with:
- Complex multi-service AI architectures
- Production AI deployment best practices
- Azure AI service integration and configuration
- Cost optimization for AI workloads
- Troubleshooting AI-specific deployment issues
By completing this structured course, you will:
- Master AZD Fundamentals: Core concepts, installation, and configuration
- Deploy AI Applications: Use AZD with Microsoft Foundry services
- Implement Infrastructure as Code: Manage Azure resources with Bicep templates
- Troubleshoot Deployments: Resolve common issues and debug problems
- Optimize for Production: Security, scaling, monitoring, and cost management
- Build Multi-Agent Solutions: Deploy complex AI architectures
Select your learning path based on experience level and goals
Prerequisites: Azure subscription, basic command line knowledge
Duration: 30-45 minutes
Complexity: β
- Understanding Azure Developer CLI fundamentals
- Installing AZD on your platform
- Your first successful deployment
- π― Start Here: What is Azure Developer CLI?
- π Theory: AZD Basics - Core concepts and terminology
- βοΈ Setup: Installation & Setup - Platform-specific guides
- π οΈ Hands-On: Your First Project - Step-by-step tutorial
- π Quick Reference: Command Cheat Sheet
# Quick installation check
azd version
# Deploy your first application
azd init --template todo-nodejs-mongo
azd upπ‘ Chapter Outcome: Successfully deploy a simple web application to Azure using AZD
β Success Validation:
# After completing Chapter 1, you should be able to:
azd version # Shows installed version
azd init --template todo-nodejs-mongo # Initializes project
azd up # Deploys to Azure
azd show # Displays running app URL
# Application opens in browser and works
azd down --force --purge # Cleans up resourcesπ Time Investment: 30-45 minutes
π Skill Level After: Can deploy basic applications independently
β Success Validation:
# After completing Chapter 1, you should be able to:
azd version # Shows installed version
azd init --template todo-nodejs-mongo # Initializes project
azd up # Deploys to Azure
azd show # Displays running app URL
# Application opens in browser and works
azd down --force --purge # Cleans up resourcesπ Time Investment: 30-45 minutes
π Skill Level After: Can deploy basic applications independently
Prerequisites: Chapter 1 completed
Duration: 1-2 hours
Complexity: ββ
- Microsoft Foundry integration with AZD
- Deploying AI-powered applications
- Understanding AI service configurations
- π― Start Here: Microsoft Foundry Integration
- π Patterns: AI Model Deployment - Deploy and manage AI models
- π οΈ Workshop: AI Workshop Lab - Make your AI solutions AZD-ready
- π₯ Interactive Guide: Workshop Materials - Browser-based learning with MkDocs * DevContainer Environment
- π Templates: Microsoft Foundry Templates
- π Examples: AZD Deployment Examples
# Deploy your first AI application
azd init --template azure-search-openai-demo
azd up
# Try additional AI templates
azd init --template openai-chat-app-quickstart
azd init --template agent-openai-python-promptyπ‘ Chapter Outcome: Deploy and configure an AI-powered chat application with RAG capabilities
β Success Validation:
# After Chapter 2, you should be able to:
azd init --template azure-search-openai-demo
azd up
# Test the AI chat interface
# Ask questions and get AI-powered responses with sources
# Verify search integration works
azd monitor # Check Application Insights shows telemetry
azd down --force --purgeπ Time Investment: 1-2 hours
π Skill Level After: Can deploy and configure production-ready AI applications
π° Cost Awareness: Understand $80-150/month dev costs, $300-3500/month production costs
Development Environment (Estimated $80-150/month):
- Azure OpenAI (Pay-as-you-go): $0-50/month (based on token usage)
- AI Search (Basic tier): $75/month
- Container Apps (Consumption): $0-20/month
- Storage (Standard): $1-5/month
Production Environment (Estimated $300-3,500+/month):
- Azure OpenAI (PTU for consistent performance): $3,000+/month OR Pay-as-go with high volume
- AI Search (Standard tier): $250/month
- Container Apps (Dedicated): $50-100/month
- Application Insights: $5-50/month
- Storage (Premium): $10-50/month
π‘ Cost Optimization Tips:
- Use Free Tier Azure OpenAI for learning (50,000 tokens/month included)
- Run
azd downto deallocate resources when not actively developing - Start with consumption-based billing, upgrade to PTU only for production
- Use
azd provision --previewto estimate costs before deployment - Enable auto-scaling: pay only for actual usage
Cost Monitoring:
# Check estimated monthly costs
azd provision --preview
# Monitor actual costs in Azure Portal
az consumption budget list --resource-group <your-rg>Prerequisites: Chapter 1 completed
Duration: 45-60 minutes
Complexity: ββ
- Environment configuration and management
- Authentication and security best practices
- Resource naming and organization
- π Configuration: Configuration Guide - Environment setup
- π Security: Authentication patterns and managed identity - Authentication patterns
- π Examples: Database App Example - AZD Database Examples
- Configure multiple environments (dev, staging, prod)
- Set up managed identity authentication
- Implement environment-specific configurations
π‘ Chapter Outcome: Manage multiple environments with proper authentication and security
Prerequisites: Chapters 1-3 completed
Duration: 1-1.5 hours
Complexity: βββ
- Advanced deployment patterns
- Infrastructure as Code with Bicep
- Resource provisioning strategies
- π Deployment: Deployment Guide - Complete workflows
- ποΈ Provisioning: Provisioning Resources - Azure resource management
- π Examples: Container App Example - Containerized deployments
- Create custom Bicep templates
- Deploy multi-service applications
- Implement blue-green deployment strategies
π‘ Chapter Outcome: Deploy complex multi-service applications using custom infrastructure templates
Prerequisites: Chapters 1-2 completed
Duration: 2-3 hours
Complexity: ββββ
- Multi-agent architecture patterns
- Agent orchestration and coordination
- Production-ready AI deployments
- π€ Featured Project: Retail Multi-Agent Solution - Complete implementation
- π οΈ ARM Templates: ARM Template Package - One-click deployment
- π Architecture: Multi-agent coordination patterns - Patterns
# Deploy the complete retail multi-agent solution
cd examples/retail-multiagent-arm-template
./deploy.sh
# Explore agent configurations
az deployment group show --resource-group <rg-name> --name <deployment-name>π‘ Chapter Outcome: Deploy and manage a production-ready multi-agent AI solution with Customer and Inventory agents
Prerequisites: Chapter 4 completed
Duration: 1 hour
Complexity: ββ
- Capacity planning and resource validation
- SKU selection strategies
- Pre-flight checks and automation
- π Planning: Capacity Planning - Resource validation
- π° Selection: SKU Selection - Cost-effective choices
- β Validation: Pre-flight Checks - Automated scripts
- Run capacity validation scripts
- Optimize SKU selections for cost
- Implement automated pre-deployment checks
π‘ Chapter Outcome: Validate and optimize deployments before execution
Prerequisites: Any deployment chapter completed
Duration: 1-1.5 hours
Complexity: ββ
- Systematic debugging approaches
- Common issues and solutions
- AI-specific troubleshooting
- π§ Common Issues: Common Issues - FAQ and solutions
- π΅οΈ Debugging: Debugging Guide - Step-by-step strategies
- π€ AI Issues: AI-Specific Troubleshooting - AI service problems
- Diagnose deployment failures
- Resolve authentication issues
- Debug AI service connectivity
π‘ Chapter Outcome: Independently diagnose and resolve common deployment issues
Prerequisites: Chapters 1-4 completed
Duration: 2-3 hours
Complexity: ββββ
- Production deployment strategies
- Enterprise security patterns
- Monitoring and cost optimization
- π Production: Production AI Best Practices - Enterprise patterns
- π Examples: Microservices Example - Complex architectures
- π Monitoring: Application Insights integration - Monitoring
- Implement enterprise security patterns
- Set up comprehensive monitoring
- Deploy to production with proper governance
π‘ Chapter Outcome: Deploy enterprise-ready applications with full production capabilities
β οΈ WORKSHOP STATUS: Active Development
The workshop materials are currently being developed and refined. Core modules are functional, but some advanced sections are incomplete. We're actively working to complete all content. Track progress β
Comprehensive hands-on learning with browser-based tools and guided exercises
Our workshop materials provide a structured, interactive learning experience that complements the chapter-based curriculum above. The workshop is designed for both self-paced learning and instructor-led sessions.
- Browser-Based Interface: Complete MkDocs-powered workshop with search, copy, and theme features
- GitHub Codespaces Integration: One-click development environment setup
- Structured Learning Path: 7-step guided exercises (3.5 hours total)
- Discovery β Deployment β Customization: Progressive methodology
- Interactive DevContainer Environment: Pre-configured tools and dependencies
The workshop follows a Discovery β Deployment β Customization methodology:
-
Discovery Phase (45 mins)
- Explore Microsoft Foundry templates and services
- Understand multi-agent architecture patterns
- Review deployment requirements and prerequisites
-
Deployment Phase (2 hours)
- Hands-on deployment of AI applications with AZD
- Configure Azure AI services and endpoints
- Implement security and authentication patterns
-
Customization Phase (45 mins)
- Modify applications for specific use cases
- Optimize for production deployment
- Implement monitoring and cost management
# Option 1: GitHub Codespaces (Recommended)
# Click "Code" β "Create codespace on main" in the repository
# Option 2: Local Development
git clone https://github.com/microsoft/azd-for-beginners.git
cd azd-for-beginners/workshop
# Follow the setup instructions in workshop/README.mdBy completing the workshop, participants will:
- Deploy Production AI Applications: Use AZD with Microsoft Foundry services
- Master Multi-Agent Architectures: Implement coordinated AI agent solutions
- Implement Security Best Practices: Configure authentication and access control
- Optimize for Scale: Design cost-effective, performant deployments
- Troubleshoot Deployments: Resolve common issues independently
- π₯ Interactive Guide: Workshop Materials - Browser-based learning environment
- π Step-by-Step Instructions: Guided Exercises - Detailed walkthroughs
- π οΈ AI Workshop Lab: AI Workshop Lab - AI-focused exercises
- π‘ Quick Start: Workshop Setup Guide - Environment configuration
Perfect for: Corporate training, university courses, self-paced learning, and developer bootcamps.
Azure Developer CLI (azd) is a developer-centric command-line interface that accelerates the process of building and deploying applications to Azure. It provides:
- Template-based deployments - Use pre-built templates for common application patterns
- Infrastructure as Code - Manage Azure resources using Bicep or Terraform
- Integrated workflows - Seamlessly provision, deploy, and monitor applications
- Developer-friendly - Optimized for developer productivity and experience
Why AZD for AI Solutions? AZD addresses the top challenges AI developers face:
- AI-Ready Templates - Pre-configured templates for Azure OpenAI, Cognitive Services, and ML workloads
- Secure AI Deployments - Built-in security patterns for AI services, API keys, and model endpoints
- Production AI Patterns - Best practices for scalable, cost-effective AI application deployments
- End-to-End AI Workflows - From model development to production deployment with proper monitoring
- Cost Optimization - Smart resource allocation and scaling strategies for AI workloads
- Microsoft Foundry Integration - Seamless connection to Microsoft Foundry model catalog and endpoints
Start here if you're deploying AI applications!
Note: These templates demonstrate various AI patterns. Some are external Azure Samples, others are local implementations.
| Template | Chapter | Complexity | Services | Type |
|---|---|---|---|---|
| Get started with AI chat | Chapter 2 | ββ | AzureOpenAI + Azure AI Model Inference API + Azure AI Search + Azure Container Apps + Application Insights | External |
| Get started with AI agents | Chapter 2 | ββ | Azure AI Agent Service + AzureOpenAI + Azure AI Search + Azure Container Apps + Application Insights | External |
| Azure Search + OpenAI Demo | Chapter 2 | ββ | AzureOpenAI + Azure AI Search + App Service + Storage | External |
| OpenAI Chat App Quickstart | Chapter 2 | β | AzureOpenAI + Container Apps + Application Insights | External |
| Agent OpenAI Python Prompty | Chapter 5 | βββ | AzureOpenAI + Azure Functions + Prompty | External |
| Contoso Chat RAG | Chapter 8 | ββββ | AzureOpenAI + AI Search + Cosmos DB + Container Apps | External |
| Retail Multi-Agent Solution | Chapter 5 | ββββ | AzureOpenAI + AI Search + Storage + Container Apps + Cosmos DB | Local |
Production-ready application templates mapped to learning chapters
| Template | Learning Chapter | Complexity | Key Learning |
|---|---|---|---|
| openai-chat-app-quickstart | Chapter 2 | β | Basic AI deployment patterns |
| azure-search-openai-demo | Chapter 2 | ββ | RAG implementation with Azure AI Search |
| ai-document-processing | Chapter 4 | ββ | Document Intelligence integration |
| agent-openai-python-prompty | Chapter 5 | βββ | Agent framework and function calling |
| contoso-chat | Chapter 8 | βββ | Enterprise AI orchestration |
| retail-multi-agent-solution | Chapter 5 | ββββ | Multi-agent architecture with Customer and Inventory agents |
π Local vs. External Examples:
Local Examples (in this repo) = Ready to use immediately
External Examples (Azure Samples) = Clone from linked repositories
- Retail Multi-Agent Solution - Complete production-ready implementation with ARM templates
- Multi-agent architecture (Customer + Inventory agents)
- Comprehensive monitoring and evaluation
- One-click deployment via ARM template
Comprehensive container deployment examples in this repository:
- Container App Examples - Complete guide to containerized deployments
- Simple Flask API - Basic REST API with scale-to-zero
- Microservices Architecture - Production-ready multi-service deployment
- Quick Start, Production, and Advanced deployment patterns
- Monitoring, security, and cost optimization guidance
Clone these Azure Samples repositories to get started:
- Simple Web App - Node.js + MongoDB - Basic deployment patterns
- Static Website - React SPA - Static content deployment
- Container App - Python Flask - REST API deployment
- Database App - C# + SQL - Database connectivity patterns
- Functions + Cosmos DB - Serverless data workflow
- Java Microservices - Multi-service architectures
- Container Apps Jobs - Background processing
- Enterprise ML Pipeline - Production-ready ML patterns
- Official AZD Template Gallery - Curated collection of official and community templates
- Azure Developer CLI Templates - Microsoft Learn template documentation
- Examples Directory - Local learning examples with detailed explanations
- Command Cheat Sheet - Essential azd commands organized by chapter
- Glossary - Azure and azd terminology
- FAQ - Common questions organized by learning chapter
- Study Guide - Comprehensive practice exercises
- AI Workshop Lab - Make your AI solutions AZD-deployable (2-3 hours)
- Interactive Workshop Guide - Browser-based workshop with MkDocs and DevContainer Environment
- Structured Learning Path -7-step guided exercises (Discovery β Deployment β Customization)
- AZD For Beginners Workshop - Complete hands-on workshop materials with GitHub Codespaces integration
Common issues beginners face and immediate solutions:
# Install AZD first
# Windows (PowerShell):
winget install microsoft.azd
# macOS:
brew tap azure/azd && brew install azd
# Linux:
curl -fsSL https://aka.ms/install-azd.sh | bash
# Verify installation
azd version# List available subscriptions
az account list --output table
# Set default subscription
az account set --subscription "<subscription-id-or-name>"
# Set for AZD environment
azd env set AZURE_SUBSCRIPTION_ID "<subscription-id>"
# Verify
az account show# Try different Azure region
azd env set AZURE_LOCATION "westus2"
azd up
# Or use smaller SKUs in development
# Edit infra/main.parameters.json:
{
"sku": "B1" // Instead of "P1V2"
}# Option 1: Clean and retry
azd down --force --purge
azd up
# Option 2: Just fix infrastructure
azd provision
# Option 3: Check detailed logs
azd show
azd logs# Re-authenticate
az logout
az login
azd auth logout
azd auth login
# Verify authentication
az account show# AZD generates unique names, but if conflict:
azd down --force --purge
# Then retry with fresh environment
azd env new dev-v2
azd upNormal wait times:
- Simple web app: 5-10 minutes
- App with database: 10-15 minutes
- AI applications: 15-25 minutes (OpenAI provisioning is slow)
# Check progress
azd show
# If stuck >30 minutes, check Azure Portal:
azd monitor
# Look for failed deployments# Check your Azure role
az role assignment list --assignee $(az account show --query user.name -o tsv)
# You need at least "Contributor" role
# Ask your Azure admin to grant:
# - Contributor (for resources)
# - User Access Administrator (for role assignments)# Show all service endpoints
azd show
# Or open Azure Portal
azd monitor
# Check specific service
azd env get-values
# Look for *_URL variables- Common Issues Guide: Detailed Solutions
- AI-Specific Issues: AI Troubleshooting
- Debugging Guide: Step-by-step Debugging
- Get Help: Azure Discord #azure-developer-cli
Common issues beginners face and immediate solutions:
β "azd: command not found"
# Install AZD first
# Windows (PowerShell):
winget install microsoft.azd
# macOS:
brew tap azure/azd && brew install azd
# Linux:
curl -fsSL https://aka.ms/install-azd.sh | bash
# Verify installation
azd versionβ "No subscription found" or "Subscription not set"
# List available subscriptions
az account list --output table
# Set default subscription
az account set --subscription "<subscription-id-or-name>"
# Set for AZD environment
azd env set AZURE_SUBSCRIPTION_ID "<subscription-id>"
# Verify
az account showβ "InsufficientQuota" or "Quota exceeded"
# Try different Azure region
azd env set AZURE_LOCATION "westus2"
azd up
# Or use smaller SKUs in development
# Edit infra/main.parameters.json:
{
"sku": "B1" // Instead of "P1V2"
}β "azd up" fails halfway through
# Option 1: Clean and retry
azd down --force --purge
azd up
# Option 2: Just fix infrastructure
azd provision
# Option 3: Check detailed logs
azd show
azd logsβ "Authentication failed" or "Token expired"
# Re-authenticate
az logout
az login
azd auth logout
azd auth login
# Verify authentication
az account showβ "Resource already exists" or naming conflicts
# AZD generates unique names, but if conflict:
azd down --force --purge
# Then retry with fresh environment
azd env new dev-v2
azd upβ Template deployment taking too long
Normal wait times:
- Simple web app: 5-10 minutes
- App with database: 10-15 minutes
- AI applications: 15-25 minutes (OpenAI provisioning is slow)
# Check progress
azd show
# If stuck >30 minutes, check Azure Portal:
azd monitor
# Look for failed deploymentsβ "Permission denied" or "Forbidden"
# Check your Azure role
az role assignment list --assignee $(az account show --query user.name -o tsv)
# You need at least "Contributor" role
# Ask your Azure admin to grant:
# - Contributor (for resources)
# - User Access Administrator (for role assignments)β Can't find deployed application URL
# Show all service endpoints
azd show
# Or open Azure Portal
azd monitor
# Check specific service
azd env get-values
# Look for *_URL variables- Common Issues Guide: Detailed Solutions
- AI-Specific Issues: AI Troubleshooting
- Debugging Guide: Step-by-step Debugging
- Get Help: Azure Discord #azure-developer-cli
Track your learning progress through each chapter:
- Chapter 1: Foundation & Quick Start β
- Chapter 2: AI-First Development β
- Chapter 3: Configuration & Authentication β
- Chapter 4: Infrastructure as Code & Deployment β
- Chapter 5: Multi-Agent AI Solutions β
- Chapter 6: Pre-Deployment Validation & Planning β
- Chapter 7: Troubleshooting & Debugging β
- Chapter 8: Production & Enterprise Patterns β
After completing each chapter, verify your knowledge by:
- Practical Exercise: Complete the chapter's hands-on deployment
- Knowledge Check: Review the FAQ section for your chapter
- Community Discussion: Share your experience in Azure Discord
- Next Chapter: Move to the next complexity level
Upon completing all chapters, you will have:
- Production Experience: Deployed real AI applications to Azure
- Professional Skills: Enterprise-ready deployment capabilities
- Community Recognition: Active member of Azure developer community
- Career Advancement: In-demand AZD and AI deployment expertise
- Technical Issues: Report bugs and request features
- Learning Questions: Microsoft Azure Discord Community and
- AI-Specific Help: Join the
- Documentation: Official Azure Developer CLI documentation
Recent Poll Results from #Azure Channel:
- 45% of developers want to use AZD for AI workloads
- Top challenges: Multi-service deployments, credential management, production readiness
- Most requested: AI-specific templates, troubleshooting guides, best practices
Join our community to:
- Share your AZD + AI experiences and get help
- Access early previews of new AI templates
- Contribute to AI deployment best practices
- Influence future AI + AZD feature development
We welcome contributions! Please read our Contributing Guide for details on:
- Content Improvements: Enhance existing chapters and examples
- New Examples: Add real-world scenarios and templates
- Translation: Help maintain multi-language support
- Bug Reports: Improve accuracy and clarity
- Community Standards: Follow our inclusive community guidelines
This project is licensed under the MIT License - see the LICENSE file for details.
Our team produces other comprehensive learning courses:
π Ready to Start Learning?
Beginners: Start with Chapter 1: Foundation & Quick Start
AI Developers: Jump to Chapter 2: AI-First Development
Experienced Developers: Begin with Chapter 3: Configuration & Authentication
Next Steps: Begin Chapter 1 - AZD Basics β
