Migrating Servers and Web Applications
This lesson explains the migration sequence and tools for servers and web applications.
Learning outcomes
After completing this lesson, you will be able to:
- Compare agentless and agent-based replication.
- Describe the stages of a server migration.
- Identify migration paths to platform services.
Migrating servers with Azure Migrate
The Migration and modernization tool in Azure Migrate replicates servers to Azure. Replication happens in the background, while the source keeps running, so a machine is usually down only for the final cutover.
Agentless and agent-based replication
VMware virtual machines can use agentless replication through the Azure Migrate appliance, with no software in the guest, and it is the normal choice. Agent-based replication installs a Mobility service on each machine, and uses a replication appliance. It supports physical servers, machines in other clouds and VMware machines for which agentless replication does not fit. Hyper-V virtual machines use a provider installed on the hosts.
A migration follows a standard sequence, and the test migration is the step that reduces risk the most.
-
Discover and assess
Identify machines, sizes and dependencies.
-
Replicate
Start replication, which sends an initial copy and then changes.
-
Test migrate
Start a copy in an isolated virtual network to check that the application works.
-
Migrate
Stop the source, send the final changes and start the Azure virtual machine.
-
Complete
Stop replication, remove software that is no longer needed and decommission the source.
A server migration
Migrating to a VMware service
Azure VMware Solution suits an organization wanting to leave a datacenter quickly, while retaining VMware tools. VMware HCX can migrate virtual machines to it, in bulk or live, without changing IP addresses or converting virtual machines. It avoids re-platforming, at the cost of dedicated hosts.
Migrating web applications
Web applications can often move to platform services with little effort. Azure Migrate assesses and can migrate ASP.NET and Java web applications to App Service or AKS at scale. For an individual application, a developer can simply redeploy it to App Service, after checking dependencies such as files stored locally on disk.
Application containerization offers another path, packaging existing applications into containers, for deployment on AKS or Azure Container Apps. Those moving to PaaS should watch for dependencies on the local file system, on Windows services, or on the registry, as well as on specific ports, since these often require small changes to an application.
Networks, identity and cutover
Migration needs more than a copy of the server. Applications often need connectivity to on-premises systems during the migration, so ExpressRoute or a VPN should be in place early. Domain controllers or synchronized identity may also be required, to allow workloads to authenticate after they move.
IP addresses usually change, so DNS records and firewall rules must be planned, and a short DNS TTL before cutover speeds the switch. A rollback plan should exist, and it often means simply restarting the source machines. Microsoft recommends that sources are kept for a time after migration, before being decommissioned.
Cutover readiness
Other cloud sources
Azure Migrate can also move servers from AWS and Google Cloud, treating them as physical machines through agent-based replication. Workloads that are moved in this way should be reassessed, because instance types do not map directly to Azure sizes.
Comparing paths
The following table recaps the migration paths by source and target.
| Source | Target | Tool |
|---|---|---|
| VMware virtual machines | Azure Virtual Machines | Azure Migrate, agentless |
| Physical servers or other clouds | Azure Virtual Machines | Azure Migrate, agent-based |
| Hyper-V virtual machines | Azure Virtual Machines | Azure Migrate, Hyper-V replication |
| VMware virtual machines, keeping VMware | Azure VMware Solution | VMware HCX |
| ASP.NET or Java web applications | App Service | Azure Migrate web app migration |
The following diagram shows the two replication paths of Azure Migrate and a test migration.

Source, target and tool
Planning server migration
A company is moving 200 VMware virtual machines and 40 physical Windows servers to Azure Virtual Machines. It wants to keep downtime to a minimum, and avoid installing agents where possible. Application teams must verify each application in Azure before cutover, with no effect on production. What should you recommend?
Use Azure Migrate. VMware machines use agentless replication, as the requirement prefers. Physical servers cannot use the agentless path, so they need agent-based replication with the Mobility service.
Test migrations into an isolated virtual network allow the application teams to verify each application with no production impact. Background replication means that downtime is limited to the final cutover. Backing up and restoring each server would result in far longer downtime, and Azure Site Recovery is designed for ongoing protection, rather than for permanent migration.
Can physical servers use agentless replication in Azure Migrate?
Show answer
No. They use agent-based replication with the Mobility service.
Exam Tips
Remember for the exam
- VMware: agentless. Physical servers and other clouds: agent-based with the Mobility service.
- Test migrations run in an isolated virtual network, with no impact on production.
- VMware HCX moves machines to Azure VMware Solution, without changing IP addresses.
- Plan DNS, firewall rules and rollback for cutover.