The hardest part of a .NET cloud migration is deciding what kind of migration each application needs. Some workloads can move largely unchanged. Others need a managed platform, a framework upgrade, or a redesign before the move will produce any benefit. A few should stay where they are until their dependencies are understood.
Flexera's 2026 State of the Cloud report reflects that difficulty: respondents identified understanding application dependencies as the leading migration challenge at 54%, followed by assessing technical feasibility at 44%. In a long-running .NET estate, the decisive dependencies often sit outside the application code in IIS, SQL Server, the Global Assembly Cache, native components, authentication, and file-system assumptions.
This framework connects those constraints to four choices: rehost, replatform, refactor, or rebuild.
Define the Migration Before Selecting a Platform
An infrastructure move places the existing Windows server and IIS workload on a cloud virtual machine such as Azure Virtual Machines, Amazon EC2, or Google Compute Engine. It changes little in the application and usually offers the quickest route out of a data center, but it also carries most of the existing operational and licensing costs with it.
A platform move runs the application on a managed service such as Azure App Service or AWS Elastic Beanstalk. The provider handles more patching, scaling, and load balancing, but the application must fit the platform's restrictions.
A containerized or modernized move packages the workload into Docker images and may run it on AKS, EKS, GKE, or another container service. This route often includes a framework upgrade and therefore introduces more engineering variables.
Runtime matters. .NET Framework 4.x remains tied to Windows, while modern .NET is cross-platform and works naturally in Linux containers. Microsoft announced that .NET 8 and .NET 9 reach end of support on November 10, 2026. .NET 10 is the current LTS release and is supported through November 2028. By contrast, .NET Framework 4.8 and 4.8.1 remain supported as a component of Windows. That does not give .NET Framework a forward feature roadmap, but it does mean a cloud move need not be combined with a framework migration by default.
Test Whether the Application Is Ready
Microsoft's App Service migration guidance identifies several features that block or complicate a direct PaaS move:
COM and COM+ components are unsupported. Replace them with managed code or keep the application in a Windows container or VM.
GAC-registered assemblies must be shipped with the application because the Global Assembly Cache is unavailable.
ISAPI filters and server-installed MSI dependencies need special handling and may rule out App Service.
Local-drive and UNC-path assumptions must move to services such as Azure Files or Blob Storage.
Multiple IIS application pools and Windows Authentication require a different hosting or identity design.
Two less visible patterns cause many post-migration failures. In-process session state and memory caches stop behaving predictably when requests are balanced across instances. IIS-specific configuration can also encode native modules, path assumptions, and deployment behavior that do not exist on a managed platform.
Delay the migration if server dependencies are undocumented, the application has no automated build, or testing is too weak to show whether the migrated version still works. Those are preparation problems, and they are cheaper to solve before cutover.
Choose Among Rehost, Replatform, Refactor, and Rebuild
The broader vocabulary comes from AWS's migration strategies, often called the Rs. Four options involve substantial engineering decisions for a .NET application.
Rehost
Move the application to a cloud VM without changing its architecture: the same .NET Framework, IIS configuration, and SQL Server, now on Azure VM or EC2. This is usually the fastest option with the lowest code risk, but it provides the fewest cloud-native benefits.
Replatform
Keep most of the code and adopt managed services. The application may move to App Service or Elastic Beanstalk while the database moves to Azure SQL or Amazon RDS. A Web Forms application may need a Windows container; a modern ASP.NET Core API may require little more than configuration and identity changes.
Refactor or rearchitect
Change the application itself by moving from .NET Framework to modern .NET, separating a monolith, or adopting managed identity and cloud configuration. This is the most expensive migration path short of a rebuild. Large estates often benefit from migrating first and refactoring later so that the team is not debugging an architecture change and a platform change at the same time.
Rebuild
Replace the implementation with a new cloud-native system. Rebuild only when the existing application has little reusable value or when the business rules have changed beyond recognition. It is not a default response to technical debt.
Application profile
Recommended strategy
Relative effort
.NET Framework 4.x with heavy COM or GAC dependencies and a near-term deadline
Rehost to a VM and modernize later
.NET Framework 4.x with few native dependencies and a need for managed hosting
Replatform in a Windows container or compatible PaaS
Modern .NET application tightly coupled to SQL Server
Replatform with a managed database
Strategic application with scaling limits and a capable team
Refactor to .NET 10 and containers
Aging application with changed business needs and little reusable logic
The effort bands are comparative, not estimates. If the organization lacks migration experience, it can be useful to study how top .NET development companies sequence similar work, but the final choice still depends on the application's actual dependencies.
Compare Azure, AWS, and Google Cloud on Fit
All three major platforms can run .NET well. The meaningful differences are tooling, licensing, and the skills the team already has.
Azure usually offers the shortest path for Microsoft-centric estates through App Service, Azure Migrate, AKS, and Azure SQL. AWS provides Elastic Beanstalk, ECS, App Runner, and EKS. AWS Transform for .NET became generally available in May 2025 and is designed to port Windows .NET Framework workloads to cross-platform .NET on Linux. Google Cloud's main fit is containerized .NET on Cloud Run or GKE.
Licensing can outweigh a small difference in compute price. Azure Hybrid Benefit can apply eligible Windows Server and SQL Server licenses with active Software Assurance to Azure. On AWS, License Mobility through Software Assurance can cover SQL Server in eligible configurations, while Windows Server bring-your-own-license generally requires Dedicated Hosts.
Factor
Azure
AWS
Google Cloud
Elastic Beanstalk, ECS, App Runner, and EKS
Azure Migrate with app and code assessment
Migration Center plus manual work
Azure Hybrid Benefit for Windows and SQL
SQL License Mobility and Windows BYOL on Dedicated Hosts
Sole tenant nodes for eligible BYOL
Modernization away from Windows or SQL
Container-first and cost-sensitive workloads
Modern .NET applications run in slim Linux containers across providers. .NET Framework applications require Windows, including Windows Containers, which are heavier and more expensive. Multi-cloud adds value only when a specific regulatory or resilience requirement justifies its operational cost.
Plan the Database Migration Separately
Start by selecting a target that supports the SQL Server features the application actually uses. Azure SQL Managed Instance offers high compatibility, including SQL Agent, cross-database queries, CLR, Service Broker, and Microsoft Entra authentication. Azure SQL Database is a leaner service that replaces some instance-level features with alternatives. Amazon RDS for SQL Server offers another managed path with relatively few engine changes.
Authentication is often the first code change. Integrated-security connection strings and network trust do not transfer directly. Azure workloads commonly move to managed identity; AWS workloads may use IAM-based authentication where supported.
Do not stop at connectivity tests. Compare important Entity Framework and EF Core queries under production-like data because provider behavior, isolation defaults, and execution plans can change. The safest sequence is schema validation, test migration, reconciliation, a rehearsed cutover, and replication or synchronization that reduces the final switch to a short window.
Use a Phased Migration Process
- Assess. Inventory framework versions, project types, dependencies, server configuration, identity, and data flows with Azure Migrate, AWS Migration Hub, or AWS Transform for .NET.
- Pilot. Move one low-risk application or module. The pilot should expose unknown dependencies while rollback remains simple.
- Build the landing zone. Define networking, identity, managed data services, monitoring, and CI/CD as code so environments do not drift.
- Cut over in waves. Give every wave a success threshold and a tested rollback path. Keep the original environment available until the replacement proves stable under real traffic.
- Validate. Compare latency, throughput, errors, and resource use with the pre-migration baseline.
Build the Full Cost Model
Budget for compute, storage, Windows and SQL licensing, migration tooling, and engineering time. Add the costs that basic rehost estimates miss: replacing unsupported features, changing authentication, data-transfer charges, and running old and new environments in parallel.
Cost category
Increased by
Reduced by
Rehosting Windows and SQL unchanged
Modern .NET on Linux and eligible Hybrid Benefit
Refactoring and rebuilding
Rehosting and limited replatforming
Oversized lift-and-shift VMs
Right-sizing and managed or serverless platforms
Long periods of dual running
Rehearsed phased cutovers
Rehosting moves cost from engineering to operations. Refactoring does the reverse. Flexera reported cloud waste rising to 29% in 2026, which is a useful warning against moving oversized servers without a later optimization plan.
Cover Both Sides of the Skills Gap
A migration requires cloud engineering and legacy .NET knowledge at the same time. Cloud specialists understand infrastructure as code, containers, managed identity, and CI/CD. Long-serving application engineers understand why native components, stored procedures, and configuration choices exist. Missing either perspective creates expensive surprises.
Options include training the current team, hiring permanent cloud engineers, or adding specialists for the migration period. A time-bounded engagement can work well when migration is a temporary surge, and organizations may hire .NET developers for your project for that purpose. Define the outcome and end date so temporary capacity does not become an unexamined standing cost.
Avoid Predictable Migration Failures
Externalize session state and shared cache before scaling across instances.
Rehearse certificate installation, DNS changes, and TTL timing.
Manage configuration as code rather than reproducing web.config assumptions by hand.
Find COM, ISAPI, MSI, and file-system dependencies during assessment, not during cutover.
Test rollback for every wave.
After cutover, replace local monitoring with Application Insights, CloudWatch, or another suitable observability stack. Run a deliberate cost review after 30 to 90 days of real usage, then right-size capacity and consider reservations only where demand is predictable.
The migration should leave the application easier to change, not merely hosted somewhere else. Once it is observable and stable in the cloud, framework upgrades and architecture changes can proceed as separate, measurable projects.
Frequently Asked Questions
How long does a .NET cloud migration take?
A well-understood rehost may take weeks. A dependency-heavy refactor usually takes months. A credible estimate follows dependency assessment and a pilot; it does not precede them.
Must .NET Framework be upgraded before migration?
No. .NET Framework 4.8 and 4.8.1 are supported as a Windows component. Many teams rehost or replatform first, then modernize the framework in a separate project.
Can Web Forms run in containers?
Yes, in Windows Containers, which provide the full .NET Framework API surface and can support GAC and COM dependencies. They cost more to run than Linux containers and are usually a bridge rather than a long-term target.
Is Azure or AWS better for .NET?
Azure is often the shortest path for a Microsoft estate and can maximize existing licenses through Azure Hybrid Benefit. AWS can be attractive when the goal is to leave Windows or SQL Server behind, especially with AWS Transform for .NET. Choose according to licensing, dependencies, and team experience.
Can the migration avoid downtime?
Near-zero downtime is possible with parallel environments, database synchronization, a low-traffic switch, and tested rollback. The target should be a short and controlled interruption rather than an absolute promise of zero.