Skip to content

Latest commit

 

History

History
132 lines (94 loc) · 2.79 KB

File metadata and controls

132 lines (94 loc) · 2.79 KB

Chapter 8: Production & Enterprise Patterns

📚 Course: AZD For Beginners | ⏱️ Duration: 2-3 hours | ⭐ Complexity: Advanced


Overview

This chapter covers enterprise-ready deployment patterns, security hardening, monitoring, and cost optimization for production AI workloads.

Validated against azd 1.23.12 in March 2026.

Learning Objectives

By completing this chapter, you will:

  • Deploy multi-region resilient applications
  • Implement enterprise security patterns
  • Configure comprehensive monitoring
  • Optimize costs at scale
  • Set up CI/CD pipelines with AZD

📚 Lessons

# Lesson Description Time
1 Production AI Practices Enterprise deployment patterns 90 min

🚀 Production Checklist

  • Multi-region deployment for resilience
  • Managed identity for authentication (no keys)
  • Application Insights for monitoring
  • Cost budgets and alerts configured
  • Security scanning enabled
  • CI/CD pipeline integration
  • Disaster recovery plan

🏗️ Architecture Patterns

Pattern 1: Microservices AI

graph LR
    Gateway[API Gateway] --> AI[AI Service] --> Models[Microsoft Foundry Models]
    Gateway --> Auth[Auth Service]
    AI --> Data[Data Store]
Loading

Pattern 2: Event-Driven AI

graph LR
    EventGrid[Event Grid] --> Functions[Functions] --> Pipeline[AI Pipeline]
Loading

🔐 Security Best Practices

// Use managed identity
identity: {
  type: 'SystemAssigned'
}

// Private endpoints for AI services
properties: {
  publicNetworkAccess: 'Disabled'
  networkAcls: {
    defaultAction: 'Deny'
  }
}

💰 Cost Optimization

Strategy Savings
Scale to zero (Container Apps) 60-80%
Use consumption tiers for dev 50-70%
Scheduled scaling 30-50%
Reserved capacity 20-40%
# Set budget alerts
az consumption budget create \
  --budget-name "AI-Budget" \
  --amount 500 \
  --category Cost \
  --time-grain Monthly

📊 Monitoring Setup

# Stream logs
azd monitor --logs

# Check Application Insights
azd monitor --overview

# View metrics
az monitor metrics list --resource <resource-id>

🔗 Navigation

Direction Chapter
Previous Chapter 7: Troubleshooting
Course Complete Course Home

📖 Related Resources