Share via

how to migrate on primes server 2008r2 to azure vm

Ahmed Ragab (OneraSystems) 20 Reputation points
2026-03-02T11:14:17.09+00:00

how to migrate on primes server 2008r2 to azure vm

Azure Migrate
Azure Migrate

A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.

{count} votes

Answer accepted by question author
  1. Q&A Assist
    2026-03-02T11:14:33.91+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To migrate an on-premises Windows Server 2008 R2 server to an Azure VM, use Azure Migrate (recommended) or Azure Site Recovery. Both approaches rely on replication of the on-premises server to Azure, then failover and cutover.

    1. Review prerequisites and architecture
      • Review the Azure Migrate agent-based migration architecture and limitations for Windows Server 2008/2008 R2.
      • Windows Server 2008/2008 R2 are End of Life; plan OS upgrades after migration as needed.
    2. Prepare Azure
      • Ensure an Azure subscription, resource group, and target region are ready.
      • Ensure the migrated VM will have network connectivity (virtual network, subnet, NSG rules, etc.).
    3. Discover and replicate the on-premises server
      • Use Azure Migrate: Server Migration to discover the on-premises Windows Server 2008 R2 machine.
      • Enable replication from on-premises to Azure using the Azure Migrate Migration and modernization tool.
    4. Test migration
      • Run a test migration to create a test VM in Azure and validate OS boot, application behavior, and connectivity.
    5. Migrate (cutover)
      • Perform the actual migration (failover) to Azure so that the replicated VM becomes the production Azure VM.
    6. Complete the migration
      • After confirming the Azure VM is working as expected:
        1. In the Azure Migrate Migration and modernization tool, right-click the migrated VM and select Stop replication. This:
          • Stops replication for the on-premises machine.
          • Removes the machine from the Replicated servers count.
          • Cleans up replication state information.
        2. Verify and troubleshoot any Windows activation issues on the Azure VM.
        3. Perform post-migration application tweaks (host names, connection strings, web server configuration, etc.).
        4. Perform final application and migration acceptance testing.
        5. Cut over production traffic to the Azure VM.
        6. Remove the on-premises VM from local inventory and backups.
        7. Update internal documentation with the new Azure VM location and IP.

    2. Alternative: Migrate with Azure Site Recovery

    Azure Site Recovery can also be used, but is recommended primarily for disaster recovery. For Windows Server 2008/2008 R2 migration it is still supported.

    1. Check OS support and limitations
      • Supported: Windows Server 2008 R2 SP1 (64-bit, Standard/Enterprise/Datacenter) on VMware VMs, Hyper-V VMs, and physical servers.
      • Server Core is not supported.
      • Ensure latest service pack and Windows updates are installed.
      • Ensure .NET Framework 3.5 SP1 is installed for the mobility service.
      • Only crash-consistent recovery points are supported for Windows Server 2008 SP2; set app-consistent snapshot frequency to Off.
    2. Prepare Azure
      • In the Azure portal, create a Recovery Services vault:
        • Create a resource > Management Tools > Backup and Site Recovery.
        • Name the vault (for example, W2K8-migration), choose subscription, create a resource group (for example, w2k8migrate), and select the Azure region.
      • Pin the vault to the dashboard if desired.
    3. Prepare on-premises environment
      • For VMware: set up the on-premises Configuration Server on VMware.
      • If not possible on VMware, set up the Configuration Server on a physical server or other VM.
    4. Set up the target environment
      • In the vault, select Prepare infrastructure > Target.
      • Select the Azure subscription and Resource Manager deployment model.
      • Site Recovery validates compatible storage accounts and networks.
    5. Create a replication policy
      • Go to Site Recovery infrastructure > Replication Policies > +Replication Policy.
      • Configure:
        • Policy name.
        • RPO threshold (alert if exceeded).
        • Recovery point retention (hours; up to 24 for premium storage, 72 for standard storage).
        • App-consistent snapshot frequency: set to Off for Windows Server 2008 to avoid false critical health alerts.
    6. Enable replication
      • Enable replication for the Windows Server 2008 R2 SP1 server to be migrated using the Site Recovery workflow for VMware/physical or Hyper-V as appropriate.
    7. Run a test migration (test failover)
      • After initial replication completes and status is Protected, run a test failover to Azure.
      • Use an isolated network to validate OS boot, application behavior, and RDP connectivity.
    8. Migrate (failover) to Azure
      • In Settings > Replicated items, select the server and choose Failover.
      • Select the latest Recovery Point.
      • Select Shut down machine before beginning failover (Site Recovery attempts shutdown but continues even if it fails).
      • Monitor progress on the Jobs page and verify the Azure VM appears and runs correctly.
    9. Complete migration and clean up
      • In Replicated items, right-click the server and select Complete Migration. This:
        • Finishes the migration.
        • Stops replication and Site Recovery billing for that server.
        • Cleans up replication data (does not delete the migrated VM).
    10. Post-migration notes and troubleshooting
    • If dynamic disks appear offline or as foreign after failover, use diskmgmt.msc to import/reactivate them and fix “Failed redundancy” on mirrored sets.
    • Ensure the vmstorfl.sys driver exists at C:\Windows\system32\drivers\vmstorfl.sys. If missing, create a dummy file using:
      • copy nul c:\Windows\system32\drivers\vmstorfl.sys
    • For 32-bit Windows Server 2008 SP2 VMs where RDP fails immediately after failover:
      • Restart the VM from the Azure portal.
      • Verify Remote Desktop is allowed and that firewall rules/NSGs are not blocking RDP.
    • Perform at least one successful test failover per server before final migration.

    References:

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bharath Y P 5,620 Reputation points Microsoft External Staff Moderator
    2026-03-02T12:53:47.0633333+00:00

    Hello Ahmed Ragab (OneraSystems), it sounds like you’re looking to lift-and-shift your on-prem Windows Server 2008 R2 into an Azure VM. The easiest, most supported way is to use Azure Migrate (for discovery/assessment) together with Azure Site Recovery (for replication/migration). Here’s a high-level process you can follow:

    1. Prepare your environment • Decide if your source is physical, Hyper-V, VMware or another cloud. • Make sure the machine meets the OS and disk requirements (e.g., dynamic disks, driver vmstorfl.sys, no encrypted volumes). • Plan your downtime window and ensure no active connections during the final migration.
    2. Set up Azure Migrate • In the Azure portal, create an Azure Migrate project. • Download and install the Azure Migrate appliance on your network. • Discover and assess your Windows Server 2008 R2 machine for sizing, performance and cost.
    3. Configure replication with Azure Site Recovery (ASR) • In your Recovery Services vault, enable replication for your Migrate project. • Install the ASR mobility agent on the 2008 R2 machine. • Configure target settings (subscription, resource group, virtual network, storage type).
    4. Run a test migration • Perform a non-disruptive test failover into an isolated network to make sure the VM boots and apps respond. • Validate disk integrity, network access and RDP connectivity.
    5. Perform the planned migration • Shut down or quiesce your applications to minimize data loss. • In the Azure Migrate project, right-click your replicated machine and choose “Migrate.” • Let ASR handle the failover and final synchronization. • After migration completes, you’ll find your server as a VM under Azure > Virtual Machines.
    6. Post-migration tasks • Update any licensing benefits (Azure Hybrid Benefit). • Reconfigure backup (Azure Backup) and monitoring. • If you need to upgrade the OS (for example, to Server 2019), you can select “Upgrade available” during migration.

    Hope this helps! If you need more details or run into errors, let me know.

    Reference docs

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.