Welcome to the comprehensive guide for Azure Developer CLI (azd)! This repository is designed to help developers at all levels from students to professional developers learn and master Azure Developer CLI for efficient cloud deployments.
185
stars
491
commits
CSS
primary language
Jul 29, 2026
updated

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/AZD-for-beginners.git cd AZD-for-beginners git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'CMD (Windows):
git clone --filter=blob:none --sparse https://github.com/microsoft/AZD-for-beginners.git cd AZD-for-beginners git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"This gives you everything you need to complete the course with a much faster download.
π This course is validated against
azd 1.27.1(July 2026). Runazd versionto check your build, andazd upgradeto get the latest.
Azure Developer CLI has grown beyond traditional web apps and APIs. Today, azd is the single tool for deploying any application to Azureβincluding AI-powered applications and intelligent agents.
Here's what that means for you:
azd init β azd up workflow you already know.azure.ai.agents extension now covers the whole journeyβazd ai agent init to scaffold, azd ai agent invoke to test (with response-timing output), azd ai agent eval generate and azd ai agent optimize to measure and improve quality, and azd ai agent delete to clean up.azure.ai.skills and azure.ai.connectionsβlet you manage reusable agent skills and Foundry connections directly with azd.azd init idempotent (safe to re-run), made azd auth login clear stale tokens automatically, and added a friendly azd tool first-run setup prompt.Note for Aspire users: Microsoft now refers to the product simply as Aspire (formerly ".NET Aspire"). azd's Aspire support is unchangedβonly the name was updated.
If you've used azd before, AI support is a natural extensionβnot a separate tool or an advanced track. If you're starting fresh, you'll learn one workflow that works for everything.
Azure Developer CLI (azd) is a developer-friendly command-line tool that makes it simple to deploy applications to Azure. Instead of manually creating and connecting dozens of Azure resources, you can deploy entire applications with a single command.
azd up# This single command does everything:
# β
Creates all Azure resources
# β
Configures networking and security
# β
Builds your application code
# β
Deploys to Azure
# β
Gives you a working URL
azd up
That's it! No Azure Portal clicking, no complex ARM templates to learn first, no manual configuration - just working applications on Azure.
This is the most common question beginners ask. Here's the simple answer:
| Feature | Azure CLI (az) | Azure Developer CLI (azd) |
|---|---|---|
| Purpose | Manage individual Azure resources | Deploy complete applications |
| Mindset | Infrastructure-focused | Application-focused |
| Example | az webapp create --name myapp... | azd up |
| Learning Curve | Must know Azure services | Just know your app |
| Best For | DevOps, Infrastructure | Developers, Prototyping |
| Scenario | Use This |
|---|---|
| "I want to deploy my web app quickly" | azd up |
| "I need to create just a storage account" | az storage account create |
| "I'm building a full AI application" | azd init --template azure-search-openai-demo |
| "I need to debug a specific Azure resource" | az resource show |
| "I want production-ready deployment in minutes" | azd up --environment production |
AZD uses Azure CLI under the hood. You can use both:
# Deploy your app with AZD
azd up
# Then fine-tune specific resources with Azure CLI
az webapp config set --name myapp --always-on true
Don't start from scratch! Awesome AZD is the community collection of ready-to-deploy templates:
| Resource | Description |
|---|---|
| π Awesome AZD Gallery | Browse 200+ templates with one-click deploy |
| π Submit a Template | Contribute your own template to the community |
| π GitHub Repository | Star and explore the source |
# RAG Chat with Microsoft Foundry Models + AI Search
azd init --template azure-search-openai-demo
# Quick AI Chat Application
azd init --template openai-chat-app-quickstart
# AI Agents with Foundry Agents
azd init --template get-started-with-ai-agents
Before you start, make sure your machine is ready for the template you want to deploy:
Windows:
.\validate-setup.ps1
macOS / Linux:
bash ./validate-setup.sh
If any required check fails, fix that first and then continue with the quick start.
Windows:
winget install microsoft.azd
macOS:
brew tap azure/azd && brew install azd
Linux:
curl -fsSL https://aka.ms/install-azd.sh | bash
# Optional if you plan to use Azure CLI commands directly in this course
az login
# Required for AZD workflows
azd auth login
If you are not sure which one you need, follow the full setup flow in Installation & Setup.
# Initialize from a template
azd init --template todo-nodejs-mongo
# Deploy to Azure (creates everything!)
azd up
π That's it! Your app is now live on Azure.
# Remove all resources when done experimenting
azd down --force --purge
This course is designed for progressive learning - start where you're comfortable and work your way up:
| Your Experience | Start Here |
|---|---|
| Brand new to Azure | Chapter 1: Foundation |
| Know Azure, new to AZD | Chapter 1: Foundation |
| Want to deploy AI apps | Chapter 2: AI-First Development |
| Want hands-on practice | π Interactive Workshop - 3-4 hour guided lab |
| Need production patterns | Chapter 8: Production & Enterprise |
git clone https://github.com/YOUR-USERNAME/azd-for-beginners.gitPrefer to Clone Locally?
This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:
git clone --filter=blob:none --sparse https://github.com/microsoft/AZD-for-beginners.git cd AZD-for-beginners git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'This gives you everything you need to complete the course with a much faster download.
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:
By completing this structured course, you will:
Before you begin Chapter 1, make sure you have the following in place. The installation steps later in this guide assume these basics are already handled.
git clone, azd auth login, and azd up.Working in an enterprise subscription? If your Azure environment is managed by an administrator, confirm ahead of time that you can deploy resources in the subscription or resource group you plan to use. If not, ask for a sandbox subscription or Contributor access before you start.
New to Azure? Start with your own Azure trial or pay-as-you-go subscription at https://aka.ms/azurefreetrial so you can complete the exercises end to end without waiting on tenant-level approvals.
Each chapter has a dedicated README with learning objectives, quick starts, and exercises:
| Chapter | Topic | Lessons | Duration | Complexity |
|---|---|---|---|---|
| Ch 1: Foundation | Getting Started | AZD Basics | Installation | First Project | 30-45 min | β |
| Ch 2: AI Development | AI-First Apps | Foundry Integration | AI Agents | Model Deployment | Workshop | 1-2 hrs | ββ |
| Ch 3: Configuration | Auth & Security | Configuration | Auth & Security | 45-60 min | ββ |
| Ch 4: Infrastructure | IaC & Deployment | Deployment Guide | Provisioning | 1-1.5 hrs | βββ |
| Ch 5: Multi-Agent | AI Agent Solutions | Retail Scenario | Coordination Patterns | 2-3 hrs | ββββ |
| Ch 6: Pre-Deployment | Planning & Validation | Preflight Checks | Capacity Planning | SKU Selection | App Insights | 1 hr | ββ |
| Ch 7: Troubleshooting | Debug & Fix | Common Issues | Debugging | AI Issues | 1-1.5 hrs | ββ |
| Ch 8: Production | Enterprise Patterns | Production Practices | 2-3 hrs | ββββ |
| π Workshop | Hands-On Lab | Introduction | Selection | Validation | Deconstruction | Configuration | Customization | Teardown | Wrap-up | 3-4 hrs | ββ |
Total Course Duration: ~10-14 hours | Skill Progression: Beginner β Production-Ready
Select your learning path based on experience level and goals
Prerequisites: Azure subscription, basic command line knowledge
Duration: 30-45 minutes
Complexity: β
# 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
π Skill Level After: Can deploy basic applications independently
Prerequisites: Chapter 1 completed
Duration: 1-2 hours
Complexity: ββ
# 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):
Production Environment (Estimated $300-3,500+/month):
π‘ Cost Optimization Tips:
azd down to deallocate resources when not actively developingazd provision --preview to estimate costs before deploymentCost 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: ββ
π‘ Chapter Outcome: Manage multiple environments with proper authentication and security
Prerequisites: Chapters 1-3 completed
Duration: 1-1.5 hours
Complexity: βββ
π‘ Chapter Outcome: Deploy complex multi-service applications using custom infrastructure templates
Prerequisites: Chapters 1-2 completed
Duration: 2-3 hours
Complexity: ββββ
# 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: ββ
π‘ Chapter Outcome: Validate and optimize deployments before execution
Prerequisites: Any deployment chapter completed
Duration: 1-1.5 hours
Complexity: ββ
π‘ Chapter Outcome: Independently diagnose and resolve common deployment issues
Prerequisites: Chapters 1-4 completed
Duration: 2-3 hours
Complexity: ββββ
π‘ 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.
The workshop follows an 8-module progressive methodology that takes you from discovery to deployment mastery:
| Module | Topic | What You'll Do | Duration |
|---|---|---|---|
| 0. Introduction | Workshop Overview | Understand learning objectives, prerequisites, and workshop structure | 15 min |
| 1. Selection | Template Discovery | Explore AZD templates and select the right AI template for your scenario | 20 min |
| 2. Validation | Deploy & Verify | Deploy the template with azd up and validate infrastructure works | 30 min |
| 3. Deconstruction | Understand Structure | Use GitHub Copilot to explore template architecture, Bicep files, and code organization | 30 min |
| 4. Configuration | azure.yaml Deep Dive | Master azure.yaml configuration, lifecycle hooks, and environment variables | 30 min |
| 5. Customization | Make It Yours | Enable AI Search, tracing, evaluation, and customize for your scenario | 45 min |
| 6. Teardown | Clean Up | Safely deprovision resources with azd down --purge | 15 min |
| 7. Wrap-up | Next Steps | Review accomplishments, key concepts, and continue your learning journey | 15 min |
Workshop Flow:
Introduction β Selection β Validation β Deconstruction β Configuration β Customization β Teardown β Wrap-up
β β β β β β β β
Overview Find the Deploy & Explore Master Customize Clean up Review &
right verify code & azure.yaml for your resources next steps
template structure scenario
# 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.md
By completing the workshop, participants will:
Perfect for: Corporate training, university courses, self-paced learning, and developer bootcamps.
Beyond the basics, AZD provides powerful features for production deployments:
Why AZD for AI Solutions? AZD addresses the top challenges AI developers face:
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 | ββ | Foundry Agents + 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
Comprehensive container deployment examples in this repository:
Clone these Azure Samples repositories to get started:
npx skills add microsoft/github-copilot-for-azure
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 status
azd show
# Option 4: Check logs in Azure Monitor
azd monitor --logs
# Re-authenticate for AZD
azd auth logout
azd auth login
# Optional: refresh Azure CLI too if you are running az commands
az logout
az 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 up
Normal wait times:
# Check progress
azd show
# If stuck >30 minutes, check Azure Portal:
azd monitor --overview
# 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
Track your learning progress through each chapter:
After completing each chapter, verify your knowledge by:
Upon completing all chapters, you will have:
Recent Poll Results from #Azure Channel:
Join our community to:
We welcome contributions! Please read our Contributing Guide for details on:
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 β
CSS
53.0%
PowerShell
22.2%
Shell
15.7%
HTML
9.1%
Welcome to the comprehensive guide for Azure Developer CLI (azd)! This repository is designed to help developers at all levels from students to professional developers learn and master Azure Developer CLI for efficient cloud deployments.
185
stars
491
commits
CSS
primary language
Jul 29, 2026
updated

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/AZD-for-beginners.git cd AZD-for-beginners git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'CMD (Windows):
git clone --filter=blob:none --sparse https://github.com/microsoft/AZD-for-beginners.git cd AZD-for-beginners git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"This gives you everything you need to complete the course with a much faster download.
π This course is validated against
azd 1.27.1(July 2026). Runazd versionto check your build, andazd upgradeto get the latest.
Azure Developer CLI has grown beyond traditional web apps and APIs. Today, azd is the single tool for deploying any application to Azureβincluding AI-powered applications and intelligent agents.
Here's what that means for you:
azd init β azd up workflow you already know.azure.ai.agents extension now covers the whole journeyβazd ai agent init to scaffold, azd ai agent invoke to test (with response-timing output), azd ai agent eval generate and azd ai agent optimize to measure and improve quality, and azd ai agent delete to clean up.azure.ai.skills and azure.ai.connectionsβlet you manage reusable agent skills and Foundry connections directly with azd.azd init idempotent (safe to re-run), made azd auth login clear stale tokens automatically, and added a friendly azd tool first-run setup prompt.Note for Aspire users: Microsoft now refers to the product simply as Aspire (formerly ".NET Aspire"). azd's Aspire support is unchangedβonly the name was updated.
If you've used azd before, AI support is a natural extensionβnot a separate tool or an advanced track. If you're starting fresh, you'll learn one workflow that works for everything.
Azure Developer CLI (azd) is a developer-friendly command-line tool that makes it simple to deploy applications to Azure. Instead of manually creating and connecting dozens of Azure resources, you can deploy entire applications with a single command.
azd up# This single command does everything:
# β
Creates all Azure resources
# β
Configures networking and security
# β
Builds your application code
# β
Deploys to Azure
# β
Gives you a working URL
azd up
That's it! No Azure Portal clicking, no complex ARM templates to learn first, no manual configuration - just working applications on Azure.
This is the most common question beginners ask. Here's the simple answer:
| Feature | Azure CLI (az) | Azure Developer CLI (azd) |
|---|---|---|
| Purpose | Manage individual Azure resources | Deploy complete applications |
| Mindset | Infrastructure-focused | Application-focused |
| Example | az webapp create --name myapp... | azd up |
| Learning Curve | Must know Azure services | Just know your app |
| Best For | DevOps, Infrastructure | Developers, Prototyping |
| Scenario | Use This |
|---|---|
| "I want to deploy my web app quickly" | azd up |
| "I need to create just a storage account" | az storage account create |
| "I'm building a full AI application" | azd init --template azure-search-openai-demo |
| "I need to debug a specific Azure resource" | az resource show |
| "I want production-ready deployment in minutes" | azd up --environment production |
AZD uses Azure CLI under the hood. You can use both:
# Deploy your app with AZD
azd up
# Then fine-tune specific resources with Azure CLI
az webapp config set --name myapp --always-on true
Don't start from scratch! Awesome AZD is the community collection of ready-to-deploy templates:
| Resource | Description |
|---|---|
| π Awesome AZD Gallery | Browse 200+ templates with one-click deploy |
| π Submit a Template | Contribute your own template to the community |
| π GitHub Repository | Star and explore the source |
# RAG Chat with Microsoft Foundry Models + AI Search
azd init --template azure-search-openai-demo
# Quick AI Chat Application
azd init --template openai-chat-app-quickstart
# AI Agents with Foundry Agents
azd init --template get-started-with-ai-agents
Before you start, make sure your machine is ready for the template you want to deploy:
Windows:
.\validate-setup.ps1
macOS / Linux:
bash ./validate-setup.sh
If any required check fails, fix that first and then continue with the quick start.
Windows:
winget install microsoft.azd
macOS:
brew tap azure/azd && brew install azd
Linux:
curl -fsSL https://aka.ms/install-azd.sh | bash
# Optional if you plan to use Azure CLI commands directly in this course
az login
# Required for AZD workflows
azd auth login
If you are not sure which one you need, follow the full setup flow in Installation & Setup.
# Initialize from a template
azd init --template todo-nodejs-mongo
# Deploy to Azure (creates everything!)
azd up
π That's it! Your app is now live on Azure.
# Remove all resources when done experimenting
azd down --force --purge
This course is designed for progressive learning - start where you're comfortable and work your way up:
| Your Experience | Start Here |
|---|---|
| Brand new to Azure | Chapter 1: Foundation |
| Know Azure, new to AZD | Chapter 1: Foundation |
| Want to deploy AI apps | Chapter 2: AI-First Development |
| Want hands-on practice | π Interactive Workshop - 3-4 hour guided lab |
| Need production patterns | Chapter 8: Production & Enterprise |
git clone https://github.com/YOUR-USERNAME/azd-for-beginners.gitPrefer to Clone Locally?
This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:
git clone --filter=blob:none --sparse https://github.com/microsoft/AZD-for-beginners.git cd AZD-for-beginners git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'This gives you everything you need to complete the course with a much faster download.
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:
By completing this structured course, you will:
Before you begin Chapter 1, make sure you have the following in place. The installation steps later in this guide assume these basics are already handled.
git clone, azd auth login, and azd up.Working in an enterprise subscription? If your Azure environment is managed by an administrator, confirm ahead of time that you can deploy resources in the subscription or resource group you plan to use. If not, ask for a sandbox subscription or Contributor access before you start.
New to Azure? Start with your own Azure trial or pay-as-you-go subscription at https://aka.ms/azurefreetrial so you can complete the exercises end to end without waiting on tenant-level approvals.
Each chapter has a dedicated README with learning objectives, quick starts, and exercises:
| Chapter | Topic | Lessons | Duration | Complexity |
|---|---|---|---|---|
| Ch 1: Foundation | Getting Started | AZD Basics | Installation | First Project | 30-45 min | β |
| Ch 2: AI Development | AI-First Apps | Foundry Integration | AI Agents | Model Deployment | Workshop | 1-2 hrs | ββ |
| Ch 3: Configuration | Auth & Security | Configuration | Auth & Security | 45-60 min | ββ |
| Ch 4: Infrastructure | IaC & Deployment | Deployment Guide | Provisioning | 1-1.5 hrs | βββ |
| Ch 5: Multi-Agent | AI Agent Solutions | Retail Scenario | Coordination Patterns | 2-3 hrs | ββββ |
| Ch 6: Pre-Deployment | Planning & Validation | Preflight Checks | Capacity Planning | SKU Selection | App Insights | 1 hr | ββ |
| Ch 7: Troubleshooting | Debug & Fix | Common Issues | Debugging | AI Issues | 1-1.5 hrs | ββ |
| Ch 8: Production | Enterprise Patterns | Production Practices | 2-3 hrs | ββββ |
| π Workshop | Hands-On Lab | Introduction | Selection | Validation | Deconstruction | Configuration | Customization | Teardown | Wrap-up | 3-4 hrs | ββ |
Total Course Duration: ~10-14 hours | Skill Progression: Beginner β Production-Ready
Select your learning path based on experience level and goals
Prerequisites: Azure subscription, basic command line knowledge
Duration: 30-45 minutes
Complexity: β
# 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
π Skill Level After: Can deploy basic applications independently
Prerequisites: Chapter 1 completed
Duration: 1-2 hours
Complexity: ββ
# 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):
Production Environment (Estimated $300-3,500+/month):
π‘ Cost Optimization Tips:
azd down to deallocate resources when not actively developingazd provision --preview to estimate costs before deploymentCost 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: ββ
π‘ Chapter Outcome: Manage multiple environments with proper authentication and security
Prerequisites: Chapters 1-3 completed
Duration: 1-1.5 hours
Complexity: βββ
π‘ Chapter Outcome: Deploy complex multi-service applications using custom infrastructure templates
Prerequisites: Chapters 1-2 completed
Duration: 2-3 hours
Complexity: ββββ
# 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: ββ
π‘ Chapter Outcome: Validate and optimize deployments before execution
Prerequisites: Any deployment chapter completed
Duration: 1-1.5 hours
Complexity: ββ
π‘ Chapter Outcome: Independently diagnose and resolve common deployment issues
Prerequisites: Chapters 1-4 completed
Duration: 2-3 hours
Complexity: ββββ
π‘ 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.
The workshop follows an 8-module progressive methodology that takes you from discovery to deployment mastery:
| Module | Topic | What You'll Do | Duration |
|---|---|---|---|
| 0. Introduction | Workshop Overview | Understand learning objectives, prerequisites, and workshop structure | 15 min |
| 1. Selection | Template Discovery | Explore AZD templates and select the right AI template for your scenario | 20 min |
| 2. Validation | Deploy & Verify | Deploy the template with azd up and validate infrastructure works | 30 min |
| 3. Deconstruction | Understand Structure | Use GitHub Copilot to explore template architecture, Bicep files, and code organization | 30 min |
| 4. Configuration | azure.yaml Deep Dive | Master azure.yaml configuration, lifecycle hooks, and environment variables | 30 min |
| 5. Customization | Make It Yours | Enable AI Search, tracing, evaluation, and customize for your scenario | 45 min |
| 6. Teardown | Clean Up | Safely deprovision resources with azd down --purge | 15 min |
| 7. Wrap-up | Next Steps | Review accomplishments, key concepts, and continue your learning journey | 15 min |
Workshop Flow:
Introduction β Selection β Validation β Deconstruction β Configuration β Customization β Teardown β Wrap-up
β β β β β β β β
Overview Find the Deploy & Explore Master Customize Clean up Review &
right verify code & azure.yaml for your resources next steps
template structure scenario
# 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.md
By completing the workshop, participants will:
Perfect for: Corporate training, university courses, self-paced learning, and developer bootcamps.
Beyond the basics, AZD provides powerful features for production deployments:
Why AZD for AI Solutions? AZD addresses the top challenges AI developers face:
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 | ββ | Foundry Agents + 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
Comprehensive container deployment examples in this repository:
Clone these Azure Samples repositories to get started:
npx skills add microsoft/github-copilot-for-azure
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 status
azd show
# Option 4: Check logs in Azure Monitor
azd monitor --logs
# Re-authenticate for AZD
azd auth logout
azd auth login
# Optional: refresh Azure CLI too if you are running az commands
az logout
az 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 up
Normal wait times:
# Check progress
azd show
# If stuck >30 minutes, check Azure Portal:
azd monitor --overview
# 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
Track your learning progress through each chapter:
After completing each chapter, verify your knowledge by:
Upon completing all chapters, you will have:
Recent Poll Results from #Azure Channel:
Join our community to:
We welcome contributions! Please read our Contributing Guide for details on:
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 β
CSS
53.0%
PowerShell
22.2%
Shell
15.7%
HTML
9.1%