学习指南 - 综合学习目标 学习路径导航 课程主页: AZD 初学者指南 开始学习: 第1章:基础与快速入门 进度跟踪: 课程完成 简介 本综合学习指南提供了结构化的学习目标、关键概念、实践练习和评估材料,帮助您掌握 Azure Developer CLI (azd)。使用本指南跟踪您的学习进度,确保覆盖所有重要主题。 学习目标 完成本学习指南后,您将能够: 掌握 Azure Developer CLI 的所有基础和高级概念 培养部署和管理 Azure 应用程序的实际技能 提升解决问题和优化部署的信心 理解生产级部署实践和安全注意事项 学习成果 完成本学习指南的所有章节后,您将能够: 使用 azd 设计、部署和管理完整的应用程序架构 实施全面的监控、安全和成本优化策略
学习路径导航
本综合学习指南提供了结构化的学习目标、关键概念、实践练习和评估材料,帮助您掌握 Azure Developer CLI (azd)。使用本指南跟踪您的学习进度,确保覆盖所有重要主题。
完成本学习指南后,您将能够:
完成本学习指南的所有章节后,您将能够:
时长: 30-45 分钟 | 难度: ⭐
azd version 验证azd up 和 azd deploy 有什么区别?时长: 1-2 小时 | 难度: ⭐⭐
时长: 45-60 分钟 | 难度: ⭐⭐
时长: 1-1.5 小时 | 难度: ⭐⭐⭐
时长: 2-3 小时 | 难度: ⭐⭐⭐⭐
时长: 1 小时 | 难度: ⭐⭐
时长: 1-1.5 小时 | 难度: ⭐⭐
时长: 2-3 小时 | 难度: ⭐⭐⭐⭐
练习 1.1: 安装与设置
# Complete these tasks: 1. Install azd using your preferred method 2. Install Azure CLI and authenticate 3. Verify installation with: azd version 4. Test connectivity with: azd auth login 5. Explore available templates: azd template list
练习 1.2: 首次部署
# Deploy a simple web application: 1. Initialize project: azd init --template todo-nodejs-mongo 2. Review project structure and configuration files 3. Deploy to Azure: azd up 4. Test the deployed application 5. Clean up resources: azd down
练习 1.3: 项目结构分析
Analyze the following components: 1. azure.yaml - service definitions and hooks 2. infra/ directory - Bicep templates and modules 3. src/ directory - application source code 4. .azure/ directory - environment configurations
azd up 时会发生什么?# Create and configure multiple environments: 1. Create development environment: azd env new development 2. Create staging environment: azd env new staging 3. Create production environment: azd env new production 4. Configure different settings for each environment 5. Deploy the same application to different environments
练习 2.2: 高级配置
# Modify azure.yaml to include: 1. Multiple services with different configurations 2. Pre and post deployment hooks 3. Environment-specific parameters 4. Custom resource naming patterns
练习 2.3: 安全配置
# Implement security best practices: 1. Configure managed identity for service authentication 2. Set up Azure Key Vault for secrets management 3. Implement least-privilege access controls 4. Enable HTTPS and secure communication protocols
练习 3.1: 自定义基础设施
// Create custom Bicep templates for: 1. Web application with custom domain and SSL 2. Database with backup and high availability 3. Storage account with access policies 4. Monitoring and logging configuration 5. Network security groups and virtual networks
练习 3.2: 多服务应用程序
# Deploy a microservices architecture: 1. Frontend web application 2. Backend API service 3. Database service 4. Message queue service 5. Background worker service
练习 3.3: 数据库集成
# Implement database deployment patterns: 1. Deploy PostgreSQL with connection pooling 2. Implement schema migrations 3. Configure backup and recovery procedures 4. Set up read replicas for performance 5. Implement data seeding for different environments
练习 4.1:容量规划
# Implement capacity validation: 1. Create scripts to check Azure quotas 2. Validate service availability in target regions 3. Estimate resource costs for different SKUs 4. Plan for scaling and growth requirements 5. Document capacity requirements for each environment
练习 4.2:飞行前验证
# Build comprehensive validation pipeline: 1. Authentication and permissions validation 2. Template syntax and parameter validation 3. Resource naming and availability checks 4. Network connectivity and security validation 5. Cost estimation and budget verification
练习 4.3:SKU 优化
# Optimize service configurations: 1. Compare performance characteristics of different SKUs 2. Implement cost-effective development configurations 3. Design high-performance production configurations 4. Create monitoring dashboards for resource utilization 5. Set up auto-scaling policies
练习 5.1:故障排除场景
# Practice resolving common issues: 1. Authentication and authorization failures 2. Resource provisioning conflicts 3. Application startup and runtime errors 4. Network connectivity problems 5. Performance and scaling issues
练习 5.2:监控实施
# Set up comprehensive monitoring: 1. Application performance monitoring with Application Insights 2. Infrastructure monitoring with Azure Monitor 3. Custom dashboards and alerting rules 4. Log aggregation and analysis 5. Health check endpoints and automated testing
练习 5.3:事件响应
# Build incident response procedures: 1. Create runbooks for common problems 2. Implement automated recovery procedures 3. Set up notification and escalation workflows 4. Practice disaster recovery scenarios 5. Document lessons learned and improvements
练习 6.1:CI/CD 集成
# Implement automated deployment pipelines: 1. GitHub Actions workflow for azd deployments 2. Azure DevOps pipeline integration 3. Multi-stage deployment with approvals 4. Automated testing and quality gates 5. Security scanning and compliance checks
练习 6.2:自定义模板开发
# Create and publish custom templates: 1. Design template for your organization's architecture 2. Implement parameterization and customization options 3. Add comprehensive documentation and examples 4. Test template across different environments 5. Publish and maintain template in template gallery
练习 6.3:企业实施
# Implement enterprise-grade features: 1. Multi-tenant architecture with proper isolation 2. Centralized logging and monitoring 3. Compliance and governance controls 4. Cost allocation and chargeback mechanisms 5. Disaster recovery and business continuity
复杂度:初级
时长:1-2 周
使用以下技术构建并部署个人作品集网站:
交付成果:
复杂度:中级
时长:2-3 周
创建一个全栈任务管理应用,包括:
交付成果:
复杂度:高级
时长:4-6 周
设计并实现一个基于微服务的电商平台:
参考示例:请参阅 微服务架构 以获取生产就绪的模板和部署指南
交付成果:
在每个模块后完成以下评估:
模块 1 评估:基础概念与安装
模块 2 评估:配置与环境
模块 3 评估:部署与资源配置
模块 4 评估:部署前验证
模块 5 评估:故障排除与调试
模块 6 评估:高级主题
设计并实现一个完整的解决方案,展示对所有概念的掌握:
要求:
评估标准:
通过以下可衡量的成果跟踪每章的学习进度:
章节导航:
学习进度跟踪:使用这份结构化指南,通过循序渐进的实践学习掌握Azure Developer CLI,同时获得可衡量的成果和职业发展收益。
免责声明:
本文档使用AI翻译服务Co-op Translator进行翻译。尽管我们努力确保翻译的准确性,但请注意,自动翻译可能包含错误或不准确之处。原始语言的文档应被视为权威来源。对于重要信息,建议使用专业人工翻译。我们对因使用此翻译而产生的任何误解或误读不承担责任。