Tài Liệu Học Microsoft Azure - Từ Cơ Bản Đến Nâng Cao
Mục Lục
- Giới Thiệu Về Cloud Computing và Azure
- Các Gói Dịch Vụ Azure
- Cấp Độ Cơ Bản
- Cấp Độ Trung Cấp
- Cấp Độ Nâng Cao
- Thực Hành và Lab
- Chứng Chỉ Azure
- Tài Liệu Tham Khảo
1. Giới Thiệu Về Cloud Computing và Azure {#gioi-thieu}
Cloud Computing là gì?
Cloud Computing (điện toán đám mây) là việc cung cấp các dịch vụ máy tính qua internet, bao gồm máy chủ, lưu trữ, cơ sở dữ liệu, mạng, phần mềm, phân tích và trí tuệ nhân tạo.
Microsoft Azure
Azure là nền tảng điện toán đám mây của Microsoft, cung cấp hơn 200 dịch vụ khác nhau để xây dựng, triển khai và quản lý ứng dụng.
Mô Hình Dịch Vụ Cloud
- IaaS (Infrastructure as a Service): Cung cấp hạ tầng máy tính
- PaaS (Platform as a Service): Cung cấp nền tảng phát triển
- SaaS (Software as a Service): Cung cấp phần mềm hoàn chỉnh
Mô Hình Triển Khai
- Public Cloud: Đám mây công cộng
- Private Cloud: Đám mây riêng
- Hybrid Cloud: Đám mây kết hợp
2. Các Gói Dịch Vụ Azure {#cac-goi-dich-vu}
2.1. Azure Free Account
Đặc điểm:
- 12 tháng dịch vụ miễn phí
- $200 credit trong 30 ngày đầu
- 25+ dịch vụ luôn miễn phí
Dịch vụ miễn phí bao gồm:
- Virtual Machines (750 giờ/tháng)
- Blob Storage (5GB)
- SQL Database (250GB)
- App Service (10 web apps)
2.2. Pay-As-You-Go
Đặc điểm:
- Trả theo sử dụng thực tế
- Không cam kết dài hạn
- Linh hoạt scale up/down
2.3. Azure for Students
Đặc điểm:
- $100 credit miễn phí
- Không cần thẻ tín dụng
- Truy cập các dịch vụ phát triển
2.4. Enterprise Agreement (EA)
Đặc điểm:
- Dành cho doanh nghiệp lớn
- Cam kết 3 năm
- Giảm giá đáng kể
- Quản lý tập trung
2.5. Cloud Solution Provider (CSP)
Đặc điểm:
- Thông qua đối tác Microsoft
- Hỗ trợ và tư vấn chuyên nghiệp
- Thanh toán linh hoạt
2.6. Azure Reserved Instances
Đặc điểm:
- Cam kết 1-3 năm
- Tiết kiệm đến 72%
- Phù hợp với workload ổn định
3. Cấp Độ Cơ Bản {#cap-do-co-ban}
3.1. Tạo Tài Khoản và Làm Quen Giao Diện
Bước 1: Đăng Ký Azure
- Truy cập portal.azure.com
- Tạo tài khoản Microsoft
- Xác thực thông tin
- Kích hoạt Azure subscription
Bước 2: Khám Phá Azure Portal
- Dashboard và customization
- Resource groups
- Marketplace
- Cloud Shell
- Notifications và Activity Log
3.2. Khái Niệm Cơ Bản
Azure Regions và Availability Zones
- Region: Khu vực địa lý chứa datacenter
- Availability Zone: Datacenter riêng biệt trong region
- Region Pairs: Cặp region để backup và disaster recovery
Resource Management
- Resource: Dịch vụ có thể quản lý
- Resource Group: Container chứa các resource liên quan
- Subscription: Đơn vị thanh toán và quản lý
- Management Group: Quản lý nhiều subscription
3.3. Dịch Vụ Cơ Bản
Virtual Machines (VMs)
Khái niệm:
- Máy ảo chạy trên Azure infrastructure
- Hỗ trợ Windows và Linux
- Nhiều kích thước khác nhau
VM Series:
- A-Series: Entry-level, dev/test
- B-Series: Burstable performance
- D-Series: General purpose
- E-Series: Memory optimized
- F-Series: Compute optimized
Thực hành:
- Tạo VM Windows Server
- Cấu hình Network Security Group
- Kết nối qua RDP
- Cài đặt IIS web server
Azure Storage
Loại Storage:
- Blob Storage: Object storage
- File Storage: Managed file shares
- Queue Storage: Message queuing
- Table Storage: NoSQL key-value
Storage Tiers:
- Hot: Dữ liệu truy cập thường xuyên
- Cool: Dữ liệu truy cập ít (30 ngày)
- Archive: Dữ liệu lưu trữ dài hạn
Virtual Network (VNet)
Thành phần:
- Address Space
- Subnets
- Network Security Groups (NSG)
- Route Tables
- VPN Gateway
Bài tập thực hành:
- Tạo VNet với multiple subnets
- Cấu hình NSG rules
- Kết nối VMs trong cùng VNet
- Thiết lập site-to-site VPN
3.4. Quản Lý và Giám Sát
Azure Monitor
- Metrics và Logs
- Alerts và Notifications
- Application Insights
- Log Analytics
Cost Management
- Cost Analysis
- Budgets và Alerts
- Cost Optimization recommendations
4. Cấp Độ Trung Cấp {#cap-do-trung-cap}
4.1. Platform as a Service (PaaS)
Azure App Service
Tính năng:
- Web Apps
- API Apps
- Mobile Apps
- Function Apps
Deployment Options:
- Git deployment
- GitHub Actions
- Azure DevOps
- FTP/WebDeploy
Thực hành:
- Deploy web app từ GitHub
- Cấu hình custom domain
- Thiết lập SSL certificate
- Configure application settings
Azure SQL Database
Deployment Models:
- Single Database
- Elastic Pool
- Managed Instance
Performance Tiers:
- Basic: 5 DTU
- Standard: 10-3000 DTU
- Premium: 125-4000 DTU
- vCore-based: General Purpose, Business Critical
Bài tập:
- Tạo SQL Database
- Configure firewall rules
- Migrate from on-premises
- Setup backup và restore
4.2. Container Services
Azure Container Instances (ACI)
- Serverless containers
- Fast startup
- Per-second billing
Azure Kubernetes Service (AKS)
- Managed Kubernetes
- Auto-scaling
- Integrated monitoring
Lab Exercise:
- Deploy containerized app to ACI
- Create AKS cluster
- Deploy multi-container application
- Configure ingress controller
4.3. Serverless Computing
Azure Functions
Triggers:
- HTTP trigger
- Timer trigger
- Blob trigger
- Queue trigger
- Event Grid trigger
Programming Languages:
- C#, Java, JavaScript
- Python, PowerShell
- Custom handlers
Logic Apps
- Visual workflow designer
- 200+ connectors
- B2B integration
4.4. Security và Identity
Azure Active Directory (Azure AD)
Features:
- Single Sign-On (SSO)
- Multi-Factor Authentication (MFA)
- Conditional Access
- Identity Protection
Azure Key Vault
- Secrets management
- Key management
- Certificate management
- Hardware Security Module (HSM)
Security Best Practices:
- Implement least privilege access
- Enable MFA for all accounts
- Use managed identities
- Regular security assessments
5. Cấp Độ Nâng Cao {#cap-do-nang-cao}
5.1. Advanced Networking
Azure Load Balancer vs Application Gateway
Load Balancer:
- Layer 4 (Transport)
- Internal và External
- TCP/UDP traffic
Application Gateway:
- Layer 7 (Application)
- Web Application Firewall
- SSL termination
- URL-based routing
Azure Traffic Manager
- DNS-based load balancing
- Geographic routing
- Performance routing
- Weighted routing
ExpressRoute
- Dedicated connection to Azure
- Bandwidth options: 50Mbps - 10Gbps
- Private connectivity
5.2. High Availability và Disaster Recovery
Availability Sets vs Availability Zones
Availability Sets:
- Fault domains
- Update domains
- 99.95% SLA
Availability Zones:
- Physically separate locations
- 99.99% SLA
- Zone-redundant services
Azure Site Recovery
- VM replication
- Failover và failback
- Disaster recovery planning
- Business continuity
5.3. DevOps và Automation
Azure DevOps Services
Components:
- Azure Repos (Git)
- Azure Pipelines (CI/CD)
- Azure Boards (Work tracking)
- Azure Test Plans
- Azure Artifacts
Infrastructure as Code (IaC)
Azure Resource Manager (ARM) Templates:
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [],
"outputs": {}
}
Terraform for Azure:
- Cross-cloud compatibility
- State management
- Plan và apply workflow
Azure PowerShell và CLI:
- Scripting và automation
- Cross-platform support
- REST API integration
5.4. Advanced Data Services
Azure Cosmos DB
Multi-model database:
- Document (SQL API)
- Key-value (Table API)
- Graph (Gremlin API)
- Column-family (Cassandra API)
Global Distribution:
- Multi-region writes
- Automatic failover
- Consistency levels
Azure Synapse Analytics
- Data warehouse
- Big data analytics
- Data integration
- Machine learning
Azure Data Factory
- Data pipeline orchestration
- 90+ data connectors
- Data transformation
- Hybrid data integration
5.5. AI và Machine Learning
Azure Cognitive Services
Vision Services:
- Computer Vision
- Face API
- Custom Vision
Language Services:
- Text Analytics
- Translator
- Language Understanding (LUIS)
Speech Services:
- Speech to Text
- Text to Speech
- Speech Translation
Azure Machine Learning
- AutoML capabilities
- MLOps pipeline
- Model deployment
- Responsible AI
6. Thực Hành và Lab {#thuc-hanh-lab}
Lab 1: Thiết Lập Môi Trường Cơ Bản
Mục tiêu: Tạo và cấu hình infrastructure cơ bản
Các bước:
- Tạo Resource Group
- Tạo Virtual Network với 3 subnets
- Deploy 2 VMs trong subnets khác nhau
- Cấu hình Network Security Groups
- Test connectivity giữa VMs
Lab 2: Web Application với Database
Mục tiêu: Deploy ứng dụng web có kết nối database
Architecture:
- App Service cho web application
- Azure SQL Database
- Application Insights cho monitoring
Implementation:
- Tạo SQL Database
- Deploy web app từ GitHub
- Configure connection strings
- Setup monitoring và alerts
Lab 3: Container và Microservices
Mục tiêu: Triển khai ứng dụng microservices
Components:
- Azure Container Registry
- Azure Kubernetes Service
- Multiple containerized services
- Load balancing và service discovery
Lab 4: Serverless Architecture
Mục tiêu: Xây dựng serverless solution
Solution:
- Azure Functions cho business logic
- Cosmos DB cho data storage
- Event Grid cho event routing
- Logic Apps cho workflow
Lab 5: DevOps Pipeline
Mục tiêu: Thiết lập CI/CD pipeline
Pipeline stages:
- Source control với Azure Repos
- Build với Azure Pipelines
- Testing và quality gates
- Deployment to multiple environments
Lab 6: Disaster Recovery
Mục tiêu: Implement DR solution
Components:
- Primary và secondary regions
- Azure Site Recovery
- Traffic Manager for failover
- Backup strategies
7. Chứng Chỉ Azure {#chung-chi-azure}
7.1. Fundamentals Level
AZ-900: Azure Fundamentals
Nội dung:
- Cloud concepts
- Azure services
- Security, privacy, compliance
- Azure pricing và support
Thời gian: 60 phút Số câu hỏi: 40-60 câu Điểm đạt: 700/1000
7.2. Associate Level
AZ-104: Azure Administrator
Skills measured:
- Manage Azure identities
- Implement và manage storage
- Deploy và manage compute resources
- Configure và manage virtual networking
- Monitor và backup Azure resources
AZ-204: Azure Developer
Skills measured:
- Develop Azure compute solutions
- Develop for Azure storage
- Implement Azure security
- Monitor, troubleshoot và optimize
- Connect to và consume Azure services
AZ-305: Azure Solutions Architect
Skills measured:
- Design identity, governance, monitoring
- Design data storage solutions
- Design business continuity solutions
- Design infrastructure solutions
7.3. Expert Level
AZ-400: DevOps Engineer
Skills measured:
- Configure processes và communications
- Design và implement source control
- Design và implement build và release pipelines
- Develop security và compliance plan
- Implement instrumentation strategy
7.4. Specialty Certifications
- AZ-120: SAP on Azure
- AZ-140: Windows Virtual Desktop
- DP-100: Data Scientist
- DP-203: Data Engineer
- AI-102: AI Engineer
8. Tài Liệu Tham Khảo {#tai-lieu-tham-khao}
8.1. Official Documentation
- Microsoft Learn: Khóa học miễn phí từ Microsoft
- Azure Documentation: docs.microsoft.com/azure
- Azure Architecture Center: Patterns và best practices
- Azure Updates: Thông tin về features mới
8.2. Community Resources
- Azure Friday: Weekly video series
- Azure Podcast: Industry insights
- Reddit r/AZURE: Community discussions
- Stack Overflow: Technical Q&A
8.3. Hands-on Learning
- Azure Free Account: 12 tháng dịch vụ miễn phí
- Microsoft Learn Sandbox: Môi trường thực hành
- Azure Labs: Guided lab exercises
- GitHub Azure Samples: Code examples
8.4. Books và Resources
- "Azure for Architects" by Ritesh Modi
- "Learn Azure in a Month of Lunches" by Iain Foulds
- "Azure Security Center" by Yuri Diogenes
- "Pro Azure Governance and Security" by Peter De Tender
8.5. Practice Tests
- MeasureUp: Official practice tests
- Whizlabs: Comprehensive test preparation
- Examtopics: Community-driven questions
- Pluralsight: Video-based learning với assessments
Lộ Trình Học Tập Đề Xuất
Tuần 1-2: Fundamentals
- Hoàn thành AZ-900 learning path
- Thực hành với Azure Free Account
- Làm quen với Azure Portal
Tuần 3-6: Core Services
- Deep dive vào Compute, Storage, Networking
- Thực hiện Labs 1-2
- Chuẩn bị AZ-104 hoặc AZ-204
Tuần 7-10: Specialized Areas
- Chọn specialization (Admin, Developer, Architect)
- Thực hiện advanced labs
- Tham gia community forums
Tuần 11-12: Certification
- Review và practice tests
- Lấy chứng chỉ đầu tiên
- Plan cho chứng chỉ tiếp theo
Kết Luận
Azure là một nền tảng mạnh mẽ với rất nhiều dịch vụ và khả năng. Việc học Azure cần sự kiên trì và thực hành thường xuyên. Hãy bắt đầu với những khái niệm cơ bản, sau đó dần dần nâng cao kỹ năng thông qua các project thực tế.
Lời khuyên cuối:
- Luôn thực hành hands-on
- Tham gia community để học hỏi
- Cập nhật kiến thức thường xuyên
- Áp dụng vào project thực tế
- Đặt mục tiêu chứng chỉ cụ thể
Nhận xét