Skip to content

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.

License

Notifications You must be signed in to change notification settings

microsoft/AZD-for-beginners

Repository files navigation

AZD For Beginners: A Structured Learning Journey

AZD-for-beginners

GitHub watchers GitHub forks GitHub stars

Azure Discord Microsoft Foundry Discord

Getting Started with This Course

Follow these steps to begin your AZD learning journey:

  1. Fork the Repository: Click GitHub forks
  2. Clone the Repository: git clone https://github.com/microsoft/azd-for-beginners.git
  3. Join the Community: Azure Discord Communities for expert support
  4. Choose Your Learning Path: Select a chapter below that matches your experience level

Multi-Language Support

Automated Translations (Always Up-to-Date)

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

Course Overview

Master Azure Developer CLI (azd) through structured chapters designed for progressive learning. Special focus on AI application deployment with Microsoft Foundry integration.

Why This Course is Essential for Modern Developers

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

Learning Objectives

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

πŸ“š Learning Chapters

Select your learning path based on experience level and goals

πŸš€ Chapter 1: Foundation & Quick Start

Prerequisites: Azure subscription, basic command line knowledge
Duration: 30-45 minutes
Complexity: ⭐

What You'll Learn

  • Understanding Azure Developer CLI fundamentals
  • Installing AZD on your platform
  • Your first successful deployment

Learning Resources

Practical Exercises

# 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


πŸ€– Chapter 2: AI-First Development (Recommended for AI Developers)

Prerequisites: Chapter 1 completed
Duration: 1-2 hours
Complexity: ⭐⭐

What You'll Learn

  • Microsoft Foundry integration with AZD
  • Deploying AI-powered applications
  • Understanding AI service configurations

Learning Resources

Practical Exercises

# 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

πŸ’° Cost Considerations for AI Deployments

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 down to deallocate resources when not actively developing
  • Start with consumption-based billing, upgrade to PTU only for production
  • Use azd provision --preview to 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>

βš™οΈ Chapter 3: Configuration & Authentication

Prerequisites: Chapter 1 completed
Duration: 45-60 minutes
Complexity: ⭐⭐

What You'll Learn

  • Environment configuration and management
  • Authentication and security best practices
  • Resource naming and organization

Learning Resources

Practical Exercises

  • 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


πŸ—οΈ Chapter 4: Infrastructure as Code & Deployment

Prerequisites: Chapters 1-3 completed
Duration: 1-1.5 hours
Complexity: ⭐⭐⭐

What You'll Learn

  • Advanced deployment patterns
  • Infrastructure as Code with Bicep
  • Resource provisioning strategies

Learning Resources

Practical Exercises

  • Create custom Bicep templates
  • Deploy multi-service applications
  • Implement blue-green deployment strategies

πŸ’‘ Chapter Outcome: Deploy complex multi-service applications using custom infrastructure templates


🎯 Chapter 5: Multi-Agent AI Solutions (Advanced)

Prerequisites: Chapters 1-2 completed
Duration: 2-3 hours
Complexity: ⭐⭐⭐⭐

What You'll Learn

  • Multi-agent architecture patterns
  • Agent orchestration and coordination
  • Production-ready AI deployments

Learning Resources

Practical Exercises

# 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


πŸ” Chapter 6: Pre-Deployment Validation & Planning

Prerequisites: Chapter 4 completed
Duration: 1 hour
Complexity: ⭐⭐

What You'll Learn

  • Capacity planning and resource validation
  • SKU selection strategies
  • Pre-flight checks and automation

Learning Resources

Practical Exercises

  • Run capacity validation scripts
  • Optimize SKU selections for cost
  • Implement automated pre-deployment checks

πŸ’‘ Chapter Outcome: Validate and optimize deployments before execution


🚨 Chapter 7: Troubleshooting & Debugging

Prerequisites: Any deployment chapter completed
Duration: 1-1.5 hours
Complexity: ⭐⭐

What You'll Learn

  • Systematic debugging approaches
  • Common issues and solutions
  • AI-specific troubleshooting

Learning Resources

Practical Exercises

  • Diagnose deployment failures
  • Resolve authentication issues
  • Debug AI service connectivity

πŸ’‘ Chapter Outcome: Independently diagnose and resolve common deployment issues


🏒 Chapter 8: Production & Enterprise Patterns

Prerequisites: Chapters 1-4 completed
Duration: 2-3 hours
Complexity: ⭐⭐⭐⭐

What You'll Learn

  • Production deployment strategies
  • Enterprise security patterns
  • Monitoring and cost optimization

Learning Resources

Practical Exercises

  • 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 Overview: Hands-On Learning Experience

⚠️ 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 β†’

Interactive Workshop Materials

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.

πŸ› οΈ Workshop Features

  • 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

πŸ“š Workshop Structure

The workshop follows a Discovery β†’ Deployment β†’ Customization methodology:

  1. Discovery Phase (45 mins)

    • Explore Microsoft Foundry templates and services
    • Understand multi-agent architecture patterns
    • Review deployment requirements and prerequisites
  2. Deployment Phase (2 hours)

    • Hands-on deployment of AI applications with AZD
    • Configure Azure AI services and endpoints
    • Implement security and authentication patterns
  3. Customization Phase (45 mins)

    • Modify applications for specific use cases
    • Optimize for production deployment
    • Implement monitoring and cost management

πŸš€ Getting Started with the Workshop

# 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

🎯 Workshop Learning Outcomes

By 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

πŸ“– Workshop Resources

Perfect for: Corporate training, university courses, self-paced learning, and developer bootcamps.


πŸ“– What is Azure Developer CLI?

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

AZD + Microsoft Foundry: Perfect for AI Deployments

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

🎯 Templates & Examples Library

Featured: Microsoft Foundry Templates

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

Featured: Complete Learning Scenarios

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

Learning by Example Type

πŸ“Œ Local vs. External Examples:
Local Examples (in this repo) = Ready to use immediately
External Examples (Azure Samples) = Clone from linked repositories

Local Examples (Ready to Use)

  • 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

Local Examples - Container Applications (Chapters 2-5)

Comprehensive container deployment examples in this repository:

External Examples - Simple Applications (Chapters 1-2)

Clone these Azure Samples repositories to get started:

External Examples - Database Integration (Chapter 3-4)

External Examples - Advanced Patterns (Chapters 4-8)

External Template Collections


πŸ“š Learning Resources & References

Quick References

Hands-On Workshops

External Learning Resources


πŸ”§ Quick Troubleshooting Guide

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

πŸ“š Full Troubleshooting Resources


πŸ”§ Quick Troubleshooting Guide

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

πŸ“š Full Troubleshooting Resources


πŸŽ“ Course Completion & Certification

Progress Tracking

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 βœ…

Learning Verification

After completing each chapter, verify your knowledge by:

  1. Practical Exercise: Complete the chapter's hands-on deployment
  2. Knowledge Check: Review the FAQ section for your chapter
  3. Community Discussion: Share your experience in Azure Discord
  4. Next Chapter: Move to the next complexity level

Course Completion Benefits

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

🀝 Community & Support

Get Help & Support

Community Insights from Microsoft Foundry Discord

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

Contributing to the Course

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

πŸ“„ Course Information

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related Microsoft Learning Resources

Our team produces other comprehensive learning courses:

Azure / Edge / MCP / Agents

AZD for Beginners Edge AI for Beginners MCP for Beginners AI Agents for Beginners


Generative AI Series

Generative AI for Beginners Generative AI (.NET) Generative AI (Java) Generative AI (JavaScript)


Core Learning

ML for Beginners Data Science for Beginners AI for Beginners Cybersecurity for Beginners Web Dev for Beginners IoT for Beginners XR Development for Beginners


Copilot Series

Copilot for AI Paired Programming Copilot for C#/.NET Copilot Adventure


πŸ—ΊοΈ Course Navigation

πŸš€ 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 β†’

About

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.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published