Azure Architecture Reference
Comprehensive guide for Azure services, patterns, and Cloud Adoption Framework implementation.
Cloud Adoption Framework
Framework Phases
Strategy
- Define business justification
- Expected business outcomes
- Business case development
- First project prioritization
Plan
- Digital estate assessment
- Initial organization alignment
- Skills readiness plan
- Cloud adoption plan
Ready
- Azure landing zone setup
- Azure setup guide
- Migration readiness
- Best practices validation
Adopt (Migrate + Innovate)
- Migration: Assess, migrate, optimize
- Innovate: Build cloud-native solutions
- Best practices and patterns
Govern
- Methodology for governance
- Governance benchmark
- Initial governance foundation
- Mature governance evolution
Manage
- Business commitments
- Operations baseline
- Platform and workload specialization
Azure Well-Architected Framework
Five Pillars
Cost Optimization
- Azure Cost Management and Billing
- Reserved instances and Savings Plans
- Azure Hybrid Benefit
- Auto-scaling and right-sizing
Operational Excellence
- Infrastructure as Code (ARM, Bicep, Terraform)
- Azure DevOps and GitHub Actions
- Azure Monitor and Application Insights
- Deployment slots and blue-green deployments
Performance Efficiency
- Azure CDN and Front Door
- Auto-scaling (VMSS, App Service)
- Caching (Redis, CDN)
- Performance diagnostics
Reliability
- Availability Zones and regions
- Azure Site Recovery
- Load Balancer and Traffic Manager
- Backup and disaster recovery
Security
- Azure AD (Entra ID)
- Network Security Groups and Firewalls
- Azure Key Vault
- Microsoft Defender for Cloud
Core Services Architecture
Compute
Virtual Machines
- VM sizes: General (D-series), Compute (F-series), Memory (E-series), GPU (N-series)
- Availability Sets (99.95% SLA)
- Availability Zones (99.99% SLA)
- VM Scale Sets for auto-scaling
- Best practices: Use managed disks, enable accelerated networking, use proximity placement groups
App Service
- Web Apps, API Apps, Mobile Apps
- Deployment slots for staging
- Auto-scaling based on metrics or schedule
- Supports .NET, Java, Node.js, Python, PHP, Ruby
- Best practices: Use deployment slots, enable auto-scaling, use App Service Plan efficiently
Azure Functions
- Consumption Plan (serverless)
- Premium Plan (VNet integration, no cold start)
- Dedicated Plan (App Service Plan)
- Durable Functions for orchestration
- Best practices: Keep functions small, use Premium for production, implement retry policies
Azure Kubernetes Service (AKS)
- Managed Kubernetes control plane
- Azure CNI or kubenet networking
- Azure AD integration
- Virtual nodes (Azure Container Instances)
- Best practices: Use system node pools, enable autoscaling, implement network policies
Container Instances
- Serverless containers
- Fast startup without infrastructure management
- Best for batch jobs and burstable workloads
Azure Batch
- Large-scale parallel and HPC workloads
- Auto-scaling compute nodes
- Task scheduling and dependencies
Storage
Blob Storage
- Storage tiers: Hot, Cool, Archive
- Access tiers: Premium, Standard
- Lifecycle management policies
- Immutable storage for compliance
- Best practices: Use lifecycle policies, enable soft delete, implement versioning
Azure Files
- SMB and NFS file shares
- Integration with Azure File Sync
- Premium tier for high performance
- Best practices: Use Premium for databases, implement snapshots
Disk Storage
- Managed Disks: Premium SSD, Standard SSD, Standard HDD, Ultra Disk
- Disk encryption with Azure Disk Encryption
- Snapshots and incremental backups
- Best practices: Use Premium SSD for production, enable encryption
Data Lake Storage Gen2
- Hierarchical namespace for big data
- Built on Blob Storage
- Integration with Azure Synapse and Databricks
- Best practices: Enable hierarchical namespace, use lifecycle policies
Azure NetApp Files
- Enterprise-grade NFS and SMB shares
- High performance and low latency
- Snapshots and data protection
Database
Azure SQL Database
- Serverless and provisioned compute
- Hyperscale for up to 100TB
- Elastic pools for multiple databases
- Auto-tuning and intelligent insights
- Best practices: Use serverless for dev/test, enable geo-replication
Azure SQL Managed Instance
- Near 100% compatibility with SQL Server
- VNet integration for isolation
- Native virtual network implementation
- Best practices: Use for lift-and-shift migrations
Cosmos DB
- Multi-model NoSQL database
- Global distribution with multi-master
- Consistency levels: Strong, Bounded staleness, Session, Consistent prefix, Eventual
- APIs: SQL, MongoDB, Cassandra, Gremlin, Table
- Best practices: Choose appropriate consistency, partition key design critical
Azure Database for PostgreSQL/MySQL/MariaDB
- Flexible Server (newer) vs Single Server (legacy)
- High availability with zone redundancy
- Read replicas for scaling
- Best practices: Use Flexible Server, enable HA, implement connection pooling
Azure Cache for Redis
- In-memory caching
- Clustering for scalability
- Geo-replication for disaster recovery
- Best practices: Use Premium tier for production, enable persistence
Networking
Virtual Network (VNet)
- CIDR planning (avoid overlaps)
- Subnets with Network Security Groups
- Service endpoints and Private Link
- VNet peering for connectivity
- Best practices: Plan IP address space, use NSGs, implement Private Link
Azure Load Balancer
- Layer 4 load balancing
- Standard SKU (zone-redundant, SLA)
- Health probes and distribution algorithms
- Best practices: Use Standard SKU, configure health probes
Application Gateway
- Layer 7 load balancing
- WAF (Web Application Firewall)
- URL-based routing and SSL termination
- Best practices: Enable WAF, use autoscaling
Azure Front Door
- Global load balancing and CDN
- WAF at edge
- Anycast for low latency
- Best practices: Use for global applications, enable caching
VPN Gateway and ExpressRoute
- Site-to-Site VPN for encrypted connectivity
- ExpressRoute for private, dedicated connection
- Virtual WAN for global transit network
- Best practices: Use ExpressRoute for production, implement redundancy
Azure Firewall
- Managed firewall service
- Application and network rules
- Threat intelligence
- Best practices: Use in hub-spoke topology, enable DNS proxy
Azure Private Link
- Private connectivity to Azure services
- No public internet exposure
- Available for PaaS services
- Best practices: Use for all PaaS services in production
Security and Identity
Azure Active Directory (Microsoft Entra ID)
- Identity and access management
- Conditional Access policies
- Multi-factor authentication
- B2B and B2C scenarios
- Best practices: Enable MFA, use Conditional Access, implement PIM
Azure Key Vault
- Secrets, keys, and certificates management
- Hardware Security Module (HSM) backed
- Soft delete and purge protection
- Best practices: Enable soft delete, use RBAC, implement Private Link
Microsoft Defender for Cloud
- Security posture management
- Threat protection for hybrid workloads
- Regulatory compliance dashboard
- Just-in-time VM access
- Best practices: Enable enhanced security, implement recommendations
Azure Policy
- Governance and compliance at scale
- Built-in and custom policies
- Deny, audit, append effects
- Best practices: Assign at management group level, test before enforce
Azure Sentinel
- Cloud-native SIEM and SOAR
- AI-powered threat detection
- Integration with Microsoft 365, third-party tools
- Best practices: Enable data connectors, create custom analytics rules
Architecture Patterns
High Availability
Zone-Redundant Pattern
Azure Front Door (global)
|
v
Application Gateway (zone-redundant)
|
v
VM Scale Set (across availability zones)
|
v
Azure SQL Database (zone-redundant)
Multi-Region Pattern
Azure Traffic Manager (DNS-based routing)
|
├── Region 1: App Service + SQL Database (primary)
└── Region 2: App Service + SQL Database (geo-replica)
Hub-Spoke Topology
Hub VNet
├── Azure Firewall
├── VPN Gateway
└── Shared Services
|
├── Spoke VNet 1 (Production)
├── Spoke VNet 2 (Development)
└── Spoke VNet 3 (DMZ)
Serverless Architecture
Event-Driven Pattern
Event Grid -> Azure Functions -> Cosmos DB
|
v
Service Bus -> Functions (processing)
API-First Pattern
API Management
|
├── Function App 1 (auth)
├── Function App 2 (business logic)
└── Function App 3 (data access)
Microservices on Azure
AKS-Based
Azure Front Door
|
v
Application Gateway + WAF
|
v
AKS (multiple microservices)
|
├── Cosmos DB (microservice A)
├── SQL Database (microservice B)
└── Service Bus (async communication)
Container Apps Pattern
Azure Container Apps
├── Dapr for state management
├── KEDA for event-driven scaling
└── Azure Monitor for observability
Data Platform
Data Sources
|
v
Event Hubs / IoT Hub
|
v
Stream Analytics (real-time processing)
|
v
Data Lake Storage Gen2
|
v
Azure Synapse Analytics
|
v
Power BI (visualization)
Landing Zone Design
Enterprise-Scale Landing Zone
Management Group Hierarchy
Tenant Root Group
├── Platform
│ ├── Management (monitoring, automation)
│ ├── Connectivity (hub networks, VPN)
│ └── Identity (domain controllers)
└── Landing Zones
├── Corp (internal workloads)
└── Online (internet-facing workloads)
Network Topology
Hub VNet (Connectivity subscription)
├── Azure Firewall
├── VPN Gateway
├── ExpressRoute Gateway
└── Bastion
Spoke VNets (Workload subscriptions)
├── Production VNet
├── Staging VNet
└── Development VNet
Governance
- Azure Policy for compliance
- Management groups for hierarchy
- RBAC assignments at appropriate scope
- Resource tags for cost allocation
- Azure Blueprints for repeatable deployments
Migration Strategies
Azure Migrate
Assess
- Discovery with Azure Migrate appliance
- Dependency analysis
- Performance-based sizing
- Cost estimation
Migrate
- Azure Migrate: Server Migration (agentless)
- Database Migration Service
- App Service Migration Assistant
- Data Box for large data transfers
Optimize
- Right-sizing recommendations
- Reserved instances
- Azure Hybrid Benefit
Migration Patterns
Rehost: Azure Migrate for VMs
Replatform: App Service, Azure SQL Database
Refactor: Container Apps, AKS, Functions
Rebuild: Azure-native services (Cosmos DB, Cognitive Services)
Cost Optimization
Compute Savings
- Azure Reserved Instances (1-year or 3-year, up to 72% savings)
- Azure Savings Plans for Compute (up to 65% savings)
- Spot VMs for fault-tolerant workloads (up to 90% savings)
- Azure Hybrid Benefit (use existing Windows Server/SQL licenses)
- Auto-shutdown for dev/test VMs
Storage Savings
- Blob Storage lifecycle policies (Hot -> Cool -> Archive)
- Azure Files: Standard tier for general use
- Managed Disks: Standard SSD instead of Premium if possible
- Delete unused snapshots and disks
Database Savings
- Serverless tier for Azure SQL Database
- Reserved capacity for Cosmos DB
- DTU model vs vCore (choose based on workload)
- Pause Azure Synapse when not in use
Monitoring
- Azure Cost Management + Billing
- Cost alerts and budgets
- Azure Advisor recommendations
- Resource tagging for cost allocation
Disaster Recovery
Azure Site Recovery
VM Replication
- Azure to Azure replication
- On-premises to Azure (VMware, Hyper-V, physical)
- RPO: 30 seconds to a few minutes
- Automated failover and failback
Recovery Plans
- Multi-tier application recovery
- Customizable scripts and manual actions
- Integration with Azure Automation
Backup Strategies
Azure Backup
- VM backups (application-consistent)
- SQL Server and SAP HANA in Azure VMs
- Azure Files backup
- Cross-region restore
Database Backup
- SQL Database: Automated backups (7-35 days)
- Cosmos DB: Continuous backup (30 days)
- Long-term retention policies
High Availability
RTO/RPO Targets
- Active-Active: Multi-region with Traffic Manager (near-zero)
- Active-Passive: Geo-replication with failover (minutes)
- Backup and Restore: Azure Backup (hours)
Monitoring and Observability
Azure Monitor
Components
- Metrics: Time-series data (1-minute resolution)
- Logs: Log Analytics workspace for queries (KQL)
- Alerts: Metric, log, and activity log alerts
- Dashboards: Custom visualizations
Application Insights
- APM for web applications
- Distributed tracing
- Live Metrics Stream
- Smart detection and anomaly detection
- Best practices: Instrument all applications, set up availability tests
Log Analytics
KQL Queries
// Performance analysis
Perf
| where CounterName == "% Processor Time"
| summarize avg(CounterValue) by bin(TimeGenerated, 5m), Computer
| render timechart
// Failed requests
requests
| where success == false
| summarize count() by resultCode, bin(timestamp, 1h)
Workbooks
- Interactive reports
- Parameterized queries
- Combining metrics and logs
Identity and Access
Azure AD Best Practices
- Enable MFA for all users
- Use Conditional Access policies
- Implement Privileged Identity Management (PIM)
- Regular access reviews
- Break-glass accounts
RBAC Design
Built-in Roles
- Owner: Full access including RBAC
- Contributor: Full access except RBAC
- Reader: Read-only access
- Custom roles for specific needs
Scope Hierarchy
Management Group (highest)
|
Subscription
|
Resource Group
|
Resource (lowest)
Best practices: Assign at highest appropriate scope, use groups not individual users, apply least privilege
1---2name: 084-azure-46bc118a3description: Azure Architecture Reference4---5# Azure Architecture Reference67Comprehensive guide for Azure services, patterns, and Cloud Adoption Framework implementation.89## Cloud Adoption Framework1011### Framework Phases12131. **Strategy**14 - Define business justification15 - Expected business outcomes16 - Business case development17 - First project prioritization18192. **Plan**20 - Digital estate assessment21 - Initial organization alignment22 - Skills readiness plan23 - Cloud adoption plan24253. **Ready**26 - Azure landing zone setup27 - Azure setup guide28 - Migration readiness29 - Best practices validation30314. **Adopt (Migrate + Innovate)**32 - Migration: Assess, migrate, optimize33 - Innovate: Build cloud-native solutions34 - Best practices and patterns35365. **Govern**37 - Methodology for governance38 - Governance benchmark39 - Initial governance foundation40 - Mature governance evolution41426. **Manage**43 - Business commitments44 - Operations baseline45 - Platform and workload specialization4647## Azure Well-Architected Framework4849### Five Pillars50511. **Cost Optimization**52 - Azure Cost Management and Billing53 - Reserved instances and Savings Plans54 - Azure Hybrid Benefit55 - Auto-scaling and right-sizing56572. **Operational Excellence**58 - Infrastructure as Code (ARM, Bicep, Terraform)59 - Azure DevOps and GitHub Actions60 - Azure Monitor and Application Insights61 - Deployment slots and blue-green deployments62633. **Performance Efficiency**64 - Azure CDN and Front Door65 - Auto-scaling (VMSS, App Service)66 - Caching (Redis, CDN)67 - Performance diagnostics68694. **Reliability**70 - Availability Zones and regions71 - Azure Site Recovery72 - Load Balancer and Traffic Manager73 - Backup and disaster recovery74755. **Security**76 - Azure AD (Entra ID)77 - Network Security Groups and Firewalls78 - Azure Key Vault79 - Microsoft Defender for Cloud8081## Core Services Architecture8283### Compute8485**Virtual Machines**86- VM sizes: General (D-series), Compute (F-series), Memory (E-series), GPU (N-series)87- Availability Sets (99.95% SLA)88- Availability Zones (99.99% SLA)89- VM Scale Sets for auto-scaling90- Best practices: Use managed disks, enable accelerated networking, use proximity placement groups9192**App Service**93- Web Apps, API Apps, Mobile Apps94- Deployment slots for staging95- Auto-scaling based on metrics or schedule96- Supports .NET, Java, Node.js, Python, PHP, Ruby97- Best practices: Use deployment slots, enable auto-scaling, use App Service Plan efficiently9899**Azure Functions**100- Consumption Plan (serverless)101- Premium Plan (VNet integration, no cold start)102- Dedicated Plan (App Service Plan)103- Durable Functions for orchestration104- Best practices: Keep functions small, use Premium for production, implement retry policies105106**Azure Kubernetes Service (AKS)**107- Managed Kubernetes control plane108- Azure CNI or kubenet networking109- Azure AD integration110- Virtual nodes (Azure Container Instances)111- Best practices: Use system node pools, enable autoscaling, implement network policies112113**Container Instances**114- Serverless containers115- Fast startup without infrastructure management116- Best for batch jobs and burstable workloads117118**Azure Batch**119- Large-scale parallel and HPC workloads120- Auto-scaling compute nodes121- Task scheduling and dependencies122123### Storage124125**Blob Storage**126- Storage tiers: Hot, Cool, Archive127- Access tiers: Premium, Standard128- Lifecycle management policies129- Immutable storage for compliance130- Best practices: Use lifecycle policies, enable soft delete, implement versioning131132**Azure Files**133- SMB and NFS file shares134- Integration with Azure File Sync135- Premium tier for high performance136- Best practices: Use Premium for databases, implement snapshots137138**Disk Storage**139- Managed Disks: Premium SSD, Standard SSD, Standard HDD, Ultra Disk140- Disk encryption with Azure Disk Encryption141- Snapshots and incremental backups142- Best practices: Use Premium SSD for production, enable encryption143144**Data Lake Storage Gen2**145- Hierarchical namespace for big data146- Built on Blob Storage147- Integration with Azure Synapse and Databricks148- Best practices: Enable hierarchical namespace, use lifecycle policies149150**Azure NetApp Files**151- Enterprise-grade NFS and SMB shares152- High performance and low latency153- Snapshots and data protection154155### Database156157**Azure SQL Database**158- Serverless and provisioned compute159- Hyperscale for up to 100TB160- Elastic pools for multiple databases161- Auto-tuning and intelligent insights162- Best practices: Use serverless for dev/test, enable geo-replication163164**Azure SQL Managed Instance**165- Near 100% compatibility with SQL Server166- VNet integration for isolation167- Native virtual network implementation168- Best practices: Use for lift-and-shift migrations169170**Cosmos DB**171- Multi-model NoSQL database172- Global distribution with multi-master173- Consistency levels: Strong, Bounded staleness, Session, Consistent prefix, Eventual174- APIs: SQL, MongoDB, Cassandra, Gremlin, Table175- Best practices: Choose appropriate consistency, partition key design critical176177**Azure Database for PostgreSQL/MySQL/MariaDB**178- Flexible Server (newer) vs Single Server (legacy)179- High availability with zone redundancy180- Read replicas for scaling181- Best practices: Use Flexible Server, enable HA, implement connection pooling182183**Azure Cache for Redis**184- In-memory caching185- Clustering for scalability186- Geo-replication for disaster recovery187- Best practices: Use Premium tier for production, enable persistence188189### Networking190191**Virtual Network (VNet)**192- CIDR planning (avoid overlaps)193- Subnets with Network Security Groups194- Service endpoints and Private Link195- VNet peering for connectivity196- Best practices: Plan IP address space, use NSGs, implement Private Link197198**Azure Load Balancer**199- Layer 4 load balancing200- Standard SKU (zone-redundant, SLA)201- Health probes and distribution algorithms202- Best practices: Use Standard SKU, configure health probes203204**Application Gateway**205- Layer 7 load balancing206- WAF (Web Application Firewall)207- URL-based routing and SSL termination208- Best practices: Enable WAF, use autoscaling209210**Azure Front Door**211- Global load balancing and CDN212- WAF at edge213- Anycast for low latency214- Best practices: Use for global applications, enable caching215216**VPN Gateway and ExpressRoute**217- Site-to-Site VPN for encrypted connectivity218- ExpressRoute for private, dedicated connection219- Virtual WAN for global transit network220- Best practices: Use ExpressRoute for production, implement redundancy221222**Azure Firewall**223- Managed firewall service224- Application and network rules225- Threat intelligence226- Best practices: Use in hub-spoke topology, enable DNS proxy227228**Azure Private Link**229- Private connectivity to Azure services230- No public internet exposure231- Available for PaaS services232- Best practices: Use for all PaaS services in production233234### Security and Identity235236**Azure Active Directory (Microsoft Entra ID)**237- Identity and access management238- Conditional Access policies239- Multi-factor authentication240- B2B and B2C scenarios241- Best practices: Enable MFA, use Conditional Access, implement PIM242243**Azure Key Vault**244- Secrets, keys, and certificates management245- Hardware Security Module (HSM) backed246- Soft delete and purge protection247- Best practices: Enable soft delete, use RBAC, implement Private Link248249**Microsoft Defender for Cloud**250- Security posture management251- Threat protection for hybrid workloads252- Regulatory compliance dashboard253- Just-in-time VM access254- Best practices: Enable enhanced security, implement recommendations255256**Azure Policy**257- Governance and compliance at scale258- Built-in and custom policies259- Deny, audit, append effects260- Best practices: Assign at management group level, test before enforce261262**Azure Sentinel**263- Cloud-native SIEM and SOAR264- AI-powered threat detection265- Integration with Microsoft 365, third-party tools266- Best practices: Enable data connectors, create custom analytics rules267268## Architecture Patterns269270### High Availability271272**Zone-Redundant Pattern**273```274Azure Front Door (global)275 |276 v277Application Gateway (zone-redundant)278 |279 v280VM Scale Set (across availability zones)281 |282 v283Azure SQL Database (zone-redundant)284```285286**Multi-Region Pattern**287```288Azure Traffic Manager (DNS-based routing)289 |290 ├── Region 1: App Service + SQL Database (primary)291 └── Region 2: App Service + SQL Database (geo-replica)292```293294### Hub-Spoke Topology295296```297Hub VNet298├── Azure Firewall299├── VPN Gateway300└── Shared Services301 |302 ├── Spoke VNet 1 (Production)303 ├── Spoke VNet 2 (Development)304 └── Spoke VNet 3 (DMZ)305```306307### Serverless Architecture308309**Event-Driven Pattern**310```311Event Grid -> Azure Functions -> Cosmos DB312 |313 v314 Service Bus -> Functions (processing)315```316317**API-First Pattern**318```319API Management320 |321 ├── Function App 1 (auth)322 ├── Function App 2 (business logic)323 └── Function App 3 (data access)324```325326### Microservices on Azure327328**AKS-Based**329```330Azure Front Door331 |332 v333Application Gateway + WAF334 |335 v336AKS (multiple microservices)337 |338 ├── Cosmos DB (microservice A)339 ├── SQL Database (microservice B)340 └── Service Bus (async communication)341```342343**Container Apps Pattern**344```345Azure Container Apps346├── Dapr for state management347├── KEDA for event-driven scaling348└── Azure Monitor for observability349```350351### Data Platform352353```354Data Sources355 |356 v357Event Hubs / IoT Hub358 |359 v360Stream Analytics (real-time processing)361 |362 v363Data Lake Storage Gen2364 |365 v366Azure Synapse Analytics367 |368 v369Power BI (visualization)370```371372## Landing Zone Design373374### Enterprise-Scale Landing Zone375376**Management Group Hierarchy**377```378Tenant Root Group379├── Platform380│ ├── Management (monitoring, automation)381│ ├── Connectivity (hub networks, VPN)382│ └── Identity (domain controllers)383└── Landing Zones384 ├── Corp (internal workloads)385 └── Online (internet-facing workloads)386```387388**Network Topology**389```390Hub VNet (Connectivity subscription)391├── Azure Firewall392├── VPN Gateway393├── ExpressRoute Gateway394└── Bastion395396Spoke VNets (Workload subscriptions)397├── Production VNet398├── Staging VNet399└── Development VNet400```401402**Governance**403- Azure Policy for compliance404- Management groups for hierarchy405- RBAC assignments at appropriate scope406- Resource tags for cost allocation407- Azure Blueprints for repeatable deployments408409## Migration Strategies410411### Azure Migrate4124131. **Assess**414 - Discovery with Azure Migrate appliance415 - Dependency analysis416 - Performance-based sizing417 - Cost estimation4184192. **Migrate**420 - Azure Migrate: Server Migration (agentless)421 - Database Migration Service422 - App Service Migration Assistant423 - Data Box for large data transfers4244253. **Optimize**426 - Right-sizing recommendations427 - Reserved instances428 - Azure Hybrid Benefit429430### Migration Patterns431432**Rehost**: Azure Migrate for VMs433**Replatform**: App Service, Azure SQL Database434**Refactor**: Container Apps, AKS, Functions435**Rebuild**: Azure-native services (Cosmos DB, Cognitive Services)436437## Cost Optimization438439### Compute Savings440- Azure Reserved Instances (1-year or 3-year, up to 72% savings)441- Azure Savings Plans for Compute (up to 65% savings)442- Spot VMs for fault-tolerant workloads (up to 90% savings)443- Azure Hybrid Benefit (use existing Windows Server/SQL licenses)444- Auto-shutdown for dev/test VMs445446### Storage Savings447- Blob Storage lifecycle policies (Hot -> Cool -> Archive)448- Azure Files: Standard tier for general use449- Managed Disks: Standard SSD instead of Premium if possible450- Delete unused snapshots and disks451452### Database Savings453- Serverless tier for Azure SQL Database454- Reserved capacity for Cosmos DB455- DTU model vs vCore (choose based on workload)456- Pause Azure Synapse when not in use457458### Monitoring459- Azure Cost Management + Billing460- Cost alerts and budgets461- Azure Advisor recommendations462- Resource tagging for cost allocation463464## Disaster Recovery465466### Azure Site Recovery467468**VM Replication**469- Azure to Azure replication470- On-premises to Azure (VMware, Hyper-V, physical)471- RPO: 30 seconds to a few minutes472- Automated failover and failback473474**Recovery Plans**475- Multi-tier application recovery476- Customizable scripts and manual actions477- Integration with Azure Automation478479### Backup Strategies480481**Azure Backup**482- VM backups (application-consistent)483- SQL Server and SAP HANA in Azure VMs484- Azure Files backup485- Cross-region restore486487**Database Backup**488- SQL Database: Automated backups (7-35 days)489- Cosmos DB: Continuous backup (30 days)490- Long-term retention policies491492### High Availability493494**RTO/RPO Targets**495- Active-Active: Multi-region with Traffic Manager (near-zero)496- Active-Passive: Geo-replication with failover (minutes)497- Backup and Restore: Azure Backup (hours)498499## Monitoring and Observability500501### Azure Monitor502503**Components**504- Metrics: Time-series data (1-minute resolution)505- Logs: Log Analytics workspace for queries (KQL)506- Alerts: Metric, log, and activity log alerts507- Dashboards: Custom visualizations508509**Application Insights**510- APM for web applications511- Distributed tracing512- Live Metrics Stream513- Smart detection and anomaly detection514- Best practices: Instrument all applications, set up availability tests515516### Log Analytics517518**KQL Queries**519```kusto520// Performance analysis521Perf522| where CounterName == "% Processor Time"523| summarize avg(CounterValue) by bin(TimeGenerated, 5m), Computer524| render timechart525526// Failed requests527requests528| where success == false529| summarize count() by resultCode, bin(timestamp, 1h)530```531532**Workbooks**533- Interactive reports534- Parameterized queries535- Combining metrics and logs536537## Identity and Access538539### Azure AD Best Practices540541- Enable MFA for all users542- Use Conditional Access policies543- Implement Privileged Identity Management (PIM)544- Regular access reviews545- Break-glass accounts546547### RBAC Design548549**Built-in Roles**550- Owner: Full access including RBAC551- Contributor: Full access except RBAC552- Reader: Read-only access553- Custom roles for specific needs554555**Scope Hierarchy**556```557Management Group (highest)558 |559Subscription560 |561Resource Group562 |563Resource (lowest)564```565566Best practices: Assign at highest appropriate scope, use groups not individual users, apply least privilege