0Pricing
Cloud & IT Cert Prep · Lesson

The 6-Rs Migration Framework

Apply the Rehost, Replatform, Rearchitect, Rebuild, Replace, and Retire strategies to a portfolio of on-premises applications and select the best path for each.

The 6-Rs Migration Framework is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What Is the 6-Rs Framework?

The 6-Rs Migration Framework is a structured approach for categorising how each on-premises workload should move to the cloud. Microsoft and the broader industry use these six strategies — also called migration patterns — to make portfolio decisions efficient and consistent. Rather than applying a one-size-fits-all approach, architects assess each application individually and assign it the most appropriate R.

Rehost: Lift and Shift

Rehost (Lift and Shift) means moving a workload to Azure with no code changes. You take the existing VM image or application binary and run it on Azure IaaS. This is the fastest strategy and is typically used for legacy applications that are difficult to modify or for organisations with tight migration deadlines. Azure Migrate's replication engine automates rehosting for most Windows and Linux VMs.

# Trigger a replication for lift-and-shift using Azure CLI
az migrate server migration start-replication \
  --resource-group myRG \
  --project-name myMigrateProject \
  --machine-name 'web-server-01'

Replatform: Small Cloud Optimisations

Replatform (also called Lift, Tinker, and Shift) involves minor optimisations during migration without changing the core architecture. Examples include moving a self-managed MySQL database from a VM to Azure Database for MySQL, or swapping a self-hosted SMTP relay for Azure Communication Services. You gain managed-service benefits — patching, backups, scaling — without rewriting application logic.

# Example: Create a managed MySQL Flexible Server (replaces IaaS VM running MySQL)
az mysql flexible-server create \
  --name mydb-flexible \
  --resource-group myRG \
  --location eastus \
  --sku-name Standard_D2ds_v4 \
  --tier GeneralPurpose

Rearchitect: Redesign for the Cloud

Rearchitect (or Refactor) means significantly changing the application's architecture to take advantage of cloud-native capabilities. A monolithic .NET application might be broken into microservices deployed on Azure Container Apps, or a cron-job-based batch system might be reimplemented as Azure Functions. Rearchitecting produces the greatest long-term benefits in scalability and cost but requires the most investment.

Rebuild: Rewrite from Scratch

Rebuild means discarding the existing application entirely and building a new cloud-native solution. This strategy is chosen when the legacy application is too costly to maintain, uses an end-of-life technology stack, or simply cannot meet business requirements even if migrated. Rebuild delivers maximum cloud-native advantage but has the highest time-to-value. Azure PaaS and serverless services like Azure App Service, Azure Functions, and Cosmos DB are common targets.

Replace: Adopt SaaS Solutions

Replace means replacing an existing on-premises application with a commercially available SaaS product that delivers equivalent or superior functionality. For example, replacing an on-premises CRM with Dynamics 365, or a legacy file server with SharePoint Online. Replace eliminates infrastructure management entirely. The tradeoff is reduced customisation and potentially significant data migration and change management effort.

Retire: Decommission What You Don't Need

Retire is the simplest strategy — you identify applications that are no longer used, redundant, or superseded, and decommission them instead of migrating them. Discovery data gathered by Azure Migrate often reveals a significant percentage (sometimes 20–30%) of on-premises servers have very low utilisation or no active users. Retiring these applications reduces migration scope, licensing costs, and operational complexity.

# Query Azure Migrate to find servers with low CPU utilisation (candidates for Retire)
az offazure vmware machine list \
  --resource-group myRG \
  --site-name mySite \
  --query "[?properties.percentageCoresUtilization < '5'].properties.displayName"

Choosing the Right R for Each App

Selecting the appropriate R requires analysing four factors for each application: business criticality, technical complexity, migration timeline, and total cost of ownership. A simple web front-end with no integration dependencies is a good Rehost candidate. An application with hundreds of stored procedures and custom database features may need Rearchitect or Rebuild. Low-value internal tools are prime Retire or Replace candidates.

Portfolio Assessment in Azure Migrate

Azure Migrate provides a Business Case feature that automatically suggests a migration strategy for discovered servers based on utilisation data, licensing, and Azure pricing. It groups workloads into Rehost, Replatform, and End-of-Support buckets, giving you a head start on 6-Rs classification. You can override any recommendation and add your own business context before finalising the migration plan.

# Create a business case assessment in Azure Migrate
az migrate assessment create \
  --resource-group myRG \
  --project-name myMigrateProject \
  --name businessCase01 \
  --type BusinessCase

Sequencing the Migration Waves

Once each application has an assigned R, you group them into migration waves. Low-risk Rehost candidates typically form the first wave to build team confidence and tooling familiarity. Rearchitect and Rebuild projects run in parallel workstreams with longer timelines. Dependencies between applications — for example, a web tier that calls a shared database — must be respected so that related apps migrate together or in the correct order.

6-Rs and the Cloud Adoption Framework

The 6-Rs align with the Adopt phase of Microsoft's Cloud Adoption Framework. The CAF provides wave-planning templates, RACI matrices, and workload assessment questionnaires that operationalise the 6-Rs at enterprise scale. Governance guardrails established during the Ready phase — landing zones, policies, identity — must be in place before migration waves begin so that migrated workloads land in a compliant environment from day one.

Quick Check

Test your understanding of Microsoft Azure Fundamentals (AZ-900) concepts from this lesson.

Lesson Recap

In this lesson you learned: the 6-Rs framework (Rehost, Replatform, Rearchitect, Rebuild, Replace, Retire) provides a vocabulary for migration decisions, each R has a different cost-vs-speed trade-off, and Azure Migrate's Business Case can auto-suggest strategies based on utilisation data. Next up we explore how Azure Migrate discovers and assesses on-premises servers.

Frequently asked questions

Is the “The 6-Rs Migration Framework” lesson free?

Yes — the full text of “The 6-Rs Migration Framework” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.

What will I learn in “The 6-Rs Migration Framework”?

Apply the Rehost, Replatform, Rearchitect, Rebuild, Replace, and Retire strategies to a portfolio of on-premises applications and select the best path for each. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cloud & IT Cert Prep?

No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “The 6-Rs Migration Framework” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cloud & IT Cert Prep lesson?

Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. The 6-Rs Migration Framework
  2. Azure Migrate: Discovery and Assessment
  3. Rehost with Azure Migrate (Lift and Shift)
  4. Database Migration Best Practices
← Back to Cloud & IT Cert Prep