Chapter 2: AI-First Development
March 26, 2026 ยท View on GitHub
๐ Course: AZD For Beginners | โฑ๏ธ Duration: 1-2 hours | โญ Complexity: Intermediate
Overview
This chapter focuses on deploying AI-powered applications using Azure Developer CLI and Microsoft Foundry services. From simple AI chat apps to intelligent agents with tools.
Validation note (2026-03-25): The command flow and extension guidance in this chapter were reviewed against
azd1.23.12and the current preview AI agent extension releaseazure.ai.agents0.1.18-preview. If you are on an older AZD build, update first and then continue with the exercises.
Learning Objectives
By completing this chapter, you will:
- Deploy AI applications using pre-built AZD templates
- Understand Microsoft Foundry integration with AZD
- Configure and customize AI agents with tools
- Deploy RAG (Retrieval-Augmented Generation) applications
๐ Lessons
| # | Lesson | Description | Time |
|---|---|---|---|
| 1 | Microsoft Foundry Integration | Connect AZD with Foundry services | 30 min |
| 2 | AI Agents Guide | Deploy intelligent agents with tools | 45 min |
| 3 | AI Model Deployment | Deploy and configure AI models | 30 min |
| 4 | AI Workshop Lab | Hands-on: Make your AI solution AZD-ready | 60 min |
๐ Quick Start
# Option 1: RAG Chat Application
azd init --template azure-search-openai-demo
azd up
# Option 2: AI Agents
azd init --template get-started-with-ai-agents
azd up
# Option 3: Quick Chat App
azd init --template openai-chat-app-quickstart
azd up
๐ค Featured AI Templates
| Template | Description | Services |
|---|---|---|
| azure-search-openai-demo | RAG chat with citations | OpenAI + AI Search |
| get-started-with-ai-agents | AI agent with tools | AI Agent Service |
| openai-chat-app-quickstart | Basic AI chat | OpenAI + Container Apps |
๐ฐ Cost Awareness
| Environment | Estimated Monthly Cost |
|---|---|
| Development | $80-150 |
| Staging | $150-300 |
| Production | $300-3,500+ |
Tip: Run azd down after testing to avoid charges.
๐ Navigation
| Direction | Chapter |
|---|---|
| Previous | Chapter 1: Foundation |
| Next | Chapter 3: Configuration |
| Skip to | Chapter 8: Production Patterns |