AZ-305 Learning Portal
Objective 4.3 35 minmedium priorityazure-migratedatabase-migration-servicerehostreplatformrefactorrearchitectdata-boxmigration-strategies

4.3 — Design Migrations

Design cloud migration solutions by selecting the right migration strategy (the 8 Rs), using Azure Migrate and Azure Database Migration Service, planning connectivity, and minimizing downtime through staged cutover approaches.

Concept — What & Why

Migration Strategy Framework: The 8 Rs

Rehost (Lift and Shift)Move workloads to Azure with minimal or no changes. VM to Azure VM using Azure Migrate replication. Fastest path with lowest risk. Does not leverage cloud-native features but provides immediate cloud benefits (OpEx model, elastic capacity, reduced datacenter costs).Replatform (Lift, Adjust, Shift)Make minimal platform changes to leverage managed services. Example: on-premises SQL Server to Azure SQL Managed Instance, or file server to Azure Files. Reduces operational overhead while requiring minimal application code changes.RefactorRestructure application code to better leverage cloud services without changing core architecture. Example: Replace file-based logging with Application Insights, replace custom auth with Entra ID, replace local caching with Redis. Moderate code changes, significant operational improvement.RearchitectRedesign application architecture for cloud-native patterns. Example: Monolith to microservices on AKS, batch processing to event-driven with Functions. Highest effort and risk, maximum cloud benefit.Azure MigrateThe central hub for Azure migration. Provides discovery and assessment of on-premises VMs (VMware, Hyper-V, physical), dependency mapping, cost estimation for Azure equivalents, and replication-based migration for VMs. Integrates with Site Recovery for replication.Azure Database Migration Service (DMS)A managed service for online (minimal downtime) and offline database migrations to Azure. Supports SQL Server to Azure SQL Database/Managed Instance, PostgreSQL, MySQL, and MongoDB. Online migrations use continuous replication to minimize cutover downtime to minutes.

8 Rs Quick Reference

StrategyEffortRiskCloud BenefitTypical Timeline
RehostLowLowLowWeeks
ReplatformMediumLow-MediumMedium1–3 months
RefactorMedium-HighMediumHigh2–6 months
RearchitectVery HighHighVery High6–18 months
Replace (SaaS)MediumMediumHigh1–3 months
RetireLowLowHigh (cost savings)Immediate
RetainMinimalLowNoneN/A
RebuildVery HighVery HighMaximum6+ months
Deep Dive — How It Works

Migration Planning and Execution

Five-Phase Migration Journey

PhaseKey ActivitiesKey Tools
PlanDiscover, assess, dependency map, cost estimateAzure Migrate Assessment, Azure Pricing Calculator
PrepareLanding zones, networking (VPN/ExpressRoute), RBAC, team trainingAzure landing zones framework
ExecuteReplicate, test failover, cut over, validateAzure Migrate Replication, DMS
EvaluatePerformance vs. baseline, security posture, cost validationAzure Monitor, Cost Management
DecommissionRetire source systems, license savingsManual or automated

Hybrid Connectivity During Migration

OptionBandwidthLatencySetup TimeBest For
VPN Gateway100 Mbps–10 GbpsVariable (internet)DaysSmall-scale, temporary
ExpressRoute1–100 GbpsConsistent, lowWeeks–monthsLarge-scale, mission-critical
Both (recommended)ExpressRoute primary + VPN backupExpressRoute latencyWeeks–monthsEnterprise migrations

VM Migration Pattern

The cutover process minimizes downtime:

  1. Initial replication (full disk copy) — hours to days
  2. Delta sync (continuous, catch changes)
  3. Test failover — validate in Azure without stopping source
  4. Final sync and stop source application
  5. Cutover (minutes of actual downtime)
  6. Redirect DNS/load balancer to Azure VMs

Database Migration Strategies

ApproachDowntimeUse Case
Offline migrationHoursSmall databases, acceptable maintenance window
Online migration (DMS)Minutes (cutover only)Large databases, minimal downtime requirement
Backup/restoreHours to daysSimple, no DMS complexity
Transactional replicationNear-zeroComplex, requires schema compatibility

Online DMS migration: Uses continuous replication during the cutover window. Only a brief transaction-replay period at cutover creates minutes of downtime versus hours for offline migration.

Azure Data Box for Large Data Transfers

ToolVolumeTransfer MethodUse Case
AzCopyAnyNetwork (internet or ExpressRoute)Normal network transfers
Data Box DiskUp to 35 TBPhysical (ship drives)When network transfer would take weeks
Data BoxUp to 80 TBPhysical (ship appliance)Large migrations with limited bandwidth
Data Box HeavyUp to 1 PBPhysical (pallet)Petabyte-scale migrations

Rule of thumb: If network transfer would take more than 7–10 days, use Azure Data Box physical transfer.

Azure Hybrid Benefit

  • Windows Server VMs: Use existing licenses to save ~40% on VM compute
  • SQL Server on Azure VMs: Use existing licenses to save ~55%
  • Azure SQL Database (vCore model): Apply SQL Server licenses for additional savings
Hands-On Lab

Hands-On: Assess and Migrate VMs with Azure Migrate

Step 1: Create Azure Migrate Project

  1. Navigate to Azure Migrate > Create project
  2. Select subscription, resource group, region
  3. Under Servers, databases and web apps, click Discover, assess and migrate

Step 2: Deploy Discovery Appliance

  1. Click Discover > Discover using appliance
  2. Select virtualization type: VMware, Hyper-V, or Physical
  3. Download OVA (VMware) or Hyper-V VHD installer
  4. Deploy appliance in on-premises environment
  5. Register appliance with project key and configure vCenter/Hyper-V credentials
  6. Allow 24 hours for full discovery

Step 3: Create Assessment

  1. In Azure Migrate > Assessments > Create assessment
  2. Select discovered servers to include
  3. Configure:
    • Target region, currency, pricing model
    • Reserved instance: 1-year reserved (recommended for cost accuracy)
    • Sizing: Performance-based (right-size based on actual utilization data)
  4. Review: Readiness status, estimated monthly cost, recommended VM sizes

Step 4: Replicate VM to Azure

  1. Under Migration tools > Replicate
  2. Source: On-premises VMware/Hyper-V
  3. Select VMs to replicate
  4. Configure target: Subscription, resource group, target VM size, managed disk
  5. Start replication — initial sync begins (full disk copy)

Step 5: Test Migration and Cutover

  1. After replication sync is healthy: Select VM > Test migration
  2. Select isolated VNet for testing — validates without impacting production
  3. Validate application connectivity and functionality in test environment
  4. Clean up test migration resources
  5. When ready: Select VM > Migrate
  6. Check Shutdown machines before migration to minimize data loss
  7. After cutover: Update DNS records, decommission source VMs

Step 6: Migrate Database with DMS (Online)

  1. Navigate to Azure Database Migration Service > Create
  2. Select Premium pricing tier (required for online migrations)
  3. Create migration project: Source = SQL Server, Target = Azure SQL Managed Instance
  4. Configure source and target connection details
  5. Start online migration — DMS continuously replicates changes
  6. Monitor sync status in Migration details
  7. At cutover window: Stop writes on source, complete migration in DMS portal
Exam Angle — What AZ-305 Tests

AZ-305 Exam Focus

AZ-305 tests your ability to select the right migration strategy for a given workload description and identify which tools to use for each phase. Scenarios describe a workload and ask which of the 8 Rs applies, or which tool (Azure Migrate vs. DMS vs. Data Box) is appropriate.

Exam Trap

Rehost Equals Full Cloud Benefit: Rehost (lift-and-shift) is the FASTEST strategy but provides the LEAST cloud-native benefit. The workload runs on Azure VMs but doesn't leverage PaaS services, managed databases, or auto-scaling. Recognize that rehost is the correct answer when speed and minimal disruption are the primary requirements — not when cloud optimization is the goal.

Exam Trap

DMS for VM Migration: Azure Database Migration Service is for DATABASE migrations (SQL Server, PostgreSQL, MySQL, MongoDB). Azure Migrate handles VM replication and migration. These are distinct tools for distinct migration types. DMS is not used for VM workloads.

Exam Trap

Data Box for All Large Transfers: Data Box is for scenarios where network transfer would take an impractically long time (weeks to months) due to limited bandwidth. If the organization has ExpressRoute or high-bandwidth internet, network transfer via AzCopy is faster and simpler than ordering and shipping physical hardware.

Exam Trap

Online DMS = Zero Downtime: Online DMS migration minimizes but does not eliminate downtime. There is still a brief cutover window (minutes) when writes are stopped on the source, DMS applies the final changes, and the connection string is updated. "Near-zero downtime" is correct; "zero downtime" is not.

Exam Tip

Managed Instance for SQL Server Lift-and-Shift: When a scenario describes migrating on-premises SQL Server with SQL Agent jobs, CLR, linked servers, or SSIS packages — the answer is Azure SQL Managed Instance with Replatform strategy. Azure SQL Database lacks these features; Managed Instance provides near-complete SQL Server compatibility.

Must Memorize

Strategy Selection Triggers: Rehost = move fast, minimal changes. Replatform = managed services (SQL MI, App Service), minimal code. Refactor = change code to use Azure SDKs (Entra ID, Application Insights, Redis). Rearchitect = microservices, serverless. Replace = SaaS (Microsoft 365, Dynamics). Retire = decommission. Retain = keep on-premises (mainframe, hardware requirements).

Question — click to flip

Q: What is the difference between Rehost and Replatform migration strategies?

Question — click to flip

Q: When should you use Azure Data Box instead of network transfer for data migration?

Question — click to flip

Q: What is the difference between online and offline database migration in Azure DMS?

Question — click to flip

Q: A company has a SQL Server with SQL Agent jobs and CLR procedures and wants to move to Azure PaaS with minimal code changes. Which strategy and service?

Question — click to flip

Q: What does the Evaluate phase of the migration journey assess?

Question — click to flip

Q: What is Azure Hybrid Benefit and when does it apply to migrations?

Sources & Further Reading