Azure Migrate is a tool to facilitate rehosting servers in Azure. It comprises a portal for analyzing and migrating the servers, a virtual appliance that runs on-premises for inventory and assessment, and a replication agent for migrations. Azure Migrate works with both Microsoft Hyper-V and VMWare VCenter virtualization environments. Azure Migrate is also extensible, with offerings from independent software vendors to enhance both assessment and migration functionality.

Travis Roberts

Travis Roberts is a Cloud Infrastructure Architect at a Minnesota based consulting firm. Travis has 20 years of IT experience in the legal, pharmaceutical and marketing industries, and has worked with IT hardware manufacturers and managed service providers. Travis has held numerous technical certifications over the span of his career from Microsoft, VMware, Citrix and Cisco.

The journey to the cloud offers multiple routes, but they all fall into one of three categories: rehost, replatform, or refactor. Rehosting, also referred to as “lift and shift,” is the path of least resistance to the cloud. The process involves moving existing on-premises environments to Infrastructure as a Service (IaaS) servers.

In most scenarios, refactoring applications is the most desirable path to the cloud. Refactoring takes advantage of cloud scalability. However, legacy applications that cannot take advantage of cloud-native services or other factors, such as regulatory requirements, may prevent replatforming or refactoring. This article focuses on rehosting servers. Specifically, it discusses migrating servers from an on-premises data center to Azure, using Azure Migrate.

Azure Migrate ^

Azure Migrate supports assessing and migrating on-premises databases and web apps to Azure; it is not limited to server migration. It also supports offline data migration to Azure with the Data Box family of products.

At the center of Azure Migration management is a portal focused on assessments and migration. The Assessment portal facilitates the discovery and planning of migrations. Assessments are conducted as-is; alternatively, they may be performance-based. An as-is assessment matches the destination Azure servers as closely as possible to the on-premises settings. The performance-based option examines trends in performance data to determine the best sizing for the destination servers. This takes more time, but it also correctly sizes the Azure servers, potentially saving money on Azure VMs.

The migration portal provides for enabling and monitoring the replication of on-premises VMs to Azure as well as conducting test failovers to validate that VMs and applications will work properly in Azure. Server migration is triggered from the portal once the environment is tested and ready.

The steps below walk through deploying, analyzing, and migrating VMs from a Hyper-V environment to Azure.

Deploying Azure Migrate ^

The process starts by logging into the portal and navigating to Azure Migrate. Once you are in Azure Migrate, the page displays.

Azure Migrate Getting Started

Azure Migrate Getting Started

There are options to assess and migrate servers, databases, and web apps, as well as an option to migrate data into Azure with Data Box. Select Assess and migrate servers to continue.

With Servers selected under Migration goals, click Getting Started to begin the process.

Azure Migrate Add tools

Azure Migrate Add tools

Adding a tool starts the migration project. Select the required Subscription and select or create a Resource Group. Give the project a name and select the relevant region for Geography. Click Next when finished.

Migrate project

Migrate project

The next option is to select an assessment tool. Notice the options are not limited to Azure products; third-party assessment tools can be chosen as well. For this example, we use Azure Migrate: Server Assessment. Select that option and click Next.

Select assessment tool

Select assessment tool

Similar to assessment tools, migration tools offer both Azure and third-party options. This example uses Azure Migrate: Server Migration. Select that option and click Next.

Select migration tool

Select migration tool

Verify the selected options at the Review + add tool(s) screen and click Add tool(s) to finish adding the assessment and migration tool. This starts the Azure Migrate deployment.

Add a tool

Add a tool

Deploying the Assessment Appliance ^

The Assessment tools and Migration tools options are displayed once the deployment is finished. The next step is to deploy the assessment appliance into the on-premises environment. Start by clicking Discover in Assessment tools.

Assessment and migration tools

Assessment and migration tools

Clicking Discover starts a three-step process for deploying the Migrate appliance. At the top of the Discover Machines window, there is a drop-down to select whether the virtualization environment is running on Hyper-V or VMware. This example uses Hyper-V. The steps for VMware are similar.

Select Hyper V or VMware

Select Hyper V or VMware

Once the virtualization environment is selected, download the VHD file.

Download VHD file

Download VHD file

Once downloaded, verify the virtualization host meets the prerequisites listed in the second step. If it does, unzip and deploy the virtual appliance using the VHD or OVA file.

Once the Azure Migrate appliance has started, accept the license terms and create a new password to finish the installation.

License terms

License terms

Create new password

Create new password

All configurations can be set from the web interface once the appliance has started. Connect to the appliance from a web browser. The appliance is available on port 44368 using Administrator as the user; the password set up in the previous step.

https://<appliance-ip-or-name>:44368

username: Administrator

Password: Set up in the previous step

Once logged in to the Microsoft Azure Appliance Configuration Manager, start Set up prerequisites by accepting the license terms. Set a proxy if in use, and then verify the time is in sync and the latest Azure Migrate updates are installed. Click Continue once complete.

Azure Migrate Appliance set up prerequisites

Azure Migrate Appliance set up prerequisites

On the Register with Azure Migrate screen, click Login to log into the Azure subscription used to set up Azure Migrate. Select the required options for Subscription and Migrate Project, and enter an Appliance Name. When you are finished, the Register with Azure Migrate screen will look similar to the image below. Click Register and Continue to move to the last step.

Register with Azure Migrate

Register with Azure Migrate

The last step provides host information and credentials for the virtualization environment (Hyper-V in this example). Enter a user name, password, and a friendly name for the credentials. Once the credentials are saved, add the server or cluster to the list of discovered hosts and validate it.

List of Hyper V hosts and clusters

List of Hyper V hosts and clusters

When discovery has finished, the host name and number of VMs is displayed along with the status, as shown below. Click Save and start discovery to continue.

Provide Hyper V host details

Provide Hyper V host details

The Azure Migrate Appliance initiates discovery of VMs on the host and configures the appliance. The time it takes to finish depends on the number of VMs. Wait for the process to finish before moving on to the next step.

Initiate discovery and configure appliance

Initiate discovery and configure appliance

Server Assessment ^

Back in the Azure Migrate portal, the Assess and Overview option is now available in the Assessment tool, and the number of discovered servers is displayed. If these options are not shown, click Refresh at the top of the window.

The Server Assessment tool makes recommendations and calculates pricing based on the size and performance data collected from the discovered VMs. The assessment properties are used as the basis for the sizing and pricing information. Click Assess to start an assessment.

Start an assessment

Start an assessment

Begin by giving the assessment a name. Next, go to View all in Assessment properties. The steps below walk through each section of the assessment properties.

Target Properties

Set the Target location, which is the region to which the VMs will be migrated. Select the Storage type if you have a preferred type, or leave on Automatic and the assessment will make a recommendation based on performance data.

Reserved instances provides a significant discount on the price of VMs with a one- to three-year spending commitment. If the VMs will be in use for longer than a year, select the applicable reserved instance option. Otherwise, select No reserved instances.

Assessment priorities Target properties

Assessment priorities Target properties

VM Size

There are two types of assessments: performance-based and as-is on-premises. The performance-based option makes an assessment based on performance data that the appliance collects, such as CPU, memory utilization, and disk IOPS. The as-is on-premises option makes a recommendation on the size of the on-premises VM. A performance-based assessment helps ensure the destination VM is the correct size. It prevents over-sizing and overpaying for VMs or under-sizing VMs, which can impact performance.

Leave the Sizing criterion option set to Performance-based and select All under VM series.

Assessment priorities VM size

Assessment priorities VM size

Pricing

The pricing options are dependent on organization-specific information. If the VMs do not run 24 hours a day, 7 days a week, the VM uptime can be modified to match your environment. For example, if moving lab VMs to Azure that only run 8 hours a day, the Hour(s) per day option would change from 24 to 8.

Leave Azure Hybrid Benefit set to Yes if the organization's licensing supports hybrid benefits; otherwise, select No.

Assessment properties Pricing

Assessment properties Pricing

Once finished, click Save to continue.

Selecting Servers

Back on the Assess Servers page, create a new group under Select or create a group. Give the group a name. Notice you can select all discovered VMs or filter them as necessary. Select the VMs for your assessment and click Create Assessment at the bottom of the screen.

Create server assessment

Create server assessment

Assessment Overview

The Assessment overview shows the new group and assessment. Notice the low confidence rating for the assessment. The confidence rating increases over time as more performance data is collected.

Assessment confidence rating

Assessment confidence rating

The Server Assessment can be changed by going into the Assessment and clicking Edit Properties. Servers can also be added or removed from the assessment by going into Groups and selecting the group that was created. The options to Add or Remove machines are at the top of the window.

Server assessment Modify groups

Server assessment Modify groups

Reviewing Assessments ^

Once an assessment is complete, the overview tab shows details about the computers inventoried, the number of assessments, and groups. A second assessment was added to the example below. As previously mentioned, the confidence rating increases for performance-based assessments as more data is collected. As-is assessments do not require confidence ratings.

Assessment overview

Assessment overview

Next, select an assessment to view Azure Readiness and Cost Details.

The Assessment Overview shows Azure readiness, the monthly cost assessment, and the storage cost assessment. Assessment Details can be found under Overview on the left side of the portal. Select Azure Readiness to review readiness details.

Server assessment overview

Server assessment overview

Notice the four different states of readiness. The VMs selected for this example are Hyper-V Generation 2, which uses the EFI boot type. Clicking the warning message next to the VM displays a web page that indicates the VM will be converted to a BIOS-based boot during migration.

Azure readiness details

Azure readiness details

Next, go to Cost Details. This displays estimated costs for computing and storage based on the assessment.

Monthly cost estimate

Monthly cost estimate

The details can be modified to compare different migration scenarios. For example, the disk type can be changed to faster SSD drives by going into Edit Properties and changing the storage type to Premium managed disks.

Edit storage type

Edit storage type

The changes are reflected in a new monthly cost estimate.

Updated monthly cost estimate

Updated monthly cost estimate

Server Migration ^

Go back to the Azure Migrate portal, go to Servers and click Discover under Migration Tools.

Migration tool discovery

Migration tool discovery

Select the virtualization type and the region, and confirm the target region. Click Create resources to continue.

Azure Migrate Discover machines

Azure Migrate Discover machines

Next, download the Hyper-V Replication Provider and install it on the source Hyper-V servers. Once installed, download the registration key and register the provider with Azure Migrate. Note that the link for the Replication Provider and the registration key are found in step 1, shown below.

Download replication provider

Download replication provider

Browse and select the registration key to register the Replication Provider. Add proxy information if required and finish the installation.

Azure Site Recovery registration

Azure Site Recovery registration

Once the Replication Provider is installed, go back to the portal. You will see an option to finalize registration. Select that to continue. If you do not see it, close the Discover machines tab and go back to Discover from the Migration Tools.

Finalize registration

Finalize registration

Once the registration is finished, go to Azure Migrate: Server Migration and select Replicate. Select your virtualization source (Hyper-V for this example) and click Next.

Replicate source settings

Replicate source settings

In Virtual machines, there is an option to select a previous assessment or to specify migration settings manually. Select Yes, apply migration settings from an Azure migration assessment. After that, select the assessment to use for the migration. Select the Group and Assessment to use for the migration. Next, select the servers to migrate. For this example, the servers 2019Svr04 and 2019Svr05 are migrated.

Select virtual machines to migrate

Select virtual machines to migrate

In Target settings, select a Resource Group, Replication Storage Account, Virtual Network, and Subnet to replicate the VMs. Also indicate whether the VMs will use Windows Server Hybrid benefits.

Replicate target settings

Replicate target settings

Verify the settings for the Azure VM size under Compute. Set the OS type and add an availability set if needed. Click Next to continue.

Replicate compute settings

Replicate compute settings

Next, select the disks to replicate. This example uses only one OS disk for each virtual machine.

Replicate Disks Settings

Click Review + Start replication, and Replicate to start the replication process.

Replicate review and start replication

Replicate review and start replication

Once replication has started, the number of servers is displayed under Replicating Servers (as shown below).

Replicating servers

Replicating servers

Click Replicating servers to view the details, including the progress of the servers. The status is shown as Protected once the initial synchronization has finished, and the health is shown as Healthy.

Replication status protected

Replication status protected

Test Migration

The following steps test a migration to verify it runs successfully. This is important to run prior to the actual migration to ensure it will be successful without impacting production servers. Start by navigating to Azure Migrate and select Replicating servers under Migration tools.

Migration tools replicating servers

Migration tools replicating servers

Click a server to view its migration status. At the top, select Test migration to start the test.

Start migration test

Start migration test

Select a Virtual Network for the test. Microsoft recommends selecting a non-production network to isolate traffic and not impact production workloads. Click Test migration to run the test.

Test migration network

Test migration network

The status of the test can be monitored by clicking the Replicating Machine in Azure Migrate and clicking Initiating test failover under Status.

Migration test jobs

Migration test jobs

Once successful, a new virtual machine with the server name and -test appended to it will show in Virtual machines.

New test virtual machine

New test virtual machine

The VM is now available for testing. A test can be run on multiple VMs if necessary. Once testing is finished, go back into the VM in Azure Migrate > Migration tools > Replicating servers and click the server to view its properties. At the top of the window is an option to Clean up test migration. Run this process to remove the test VM.

There are also options to add notes, indicate the test is complete, and delete the VM. Check the box and click Cleanup Test.

The status changes to Completing test failover cleanup. Click the status to view the progress.

Clean up test failover

Clean up test failover

Once the cleanup has finished, the status of the tested server shows the date of the last migration test.

Test migration status

Test migration status

Virtual Machine Migration ^

Now that the test migration is completed, the next step is to run the migration. This finalizes the migration by shutting down the on-premises VM and bringing the VM online in Azure. Start by going to Migration tools > Replicating servers and select the server to migrate.

Verify the health and replication are healthy and click Migrate at the top of the window.

Start server migration

Start server migration

Next is the option to shut down the VM prior to migration. This prevents data loss between the time of the final sync and when it is brought online in Azure. Shutting the server down also causes downtime as the server is migrated. If uptime is more important than data loss, leave it running. This example will shut the VM down for the migration. Click Migrate to continue.

Shutdown for migration

Shutdown for migration

Verify replication has started by going to Replicated machines and verifying the status.

Migration status

Migration status

Click the status to see the progress of the migration.

Migration steps

Migration steps

Once all steps are successful, the migrated server is running in Azure and the source VM is shut down.

Finished migration

Finished migration

Conclusion ^

Azure Migrate offers a comprehensive solution for moving both Hyper-V or VMware on-premises virtual machines into Azure. It is also extensible, providing connectivity for add-in third-party application integrations for both Azure assessments and migrations. It also provides a migration framework for SQL databases, web applications, and data migration. This makes Azure Migrate a flexible solution for any environment moving to Azure.

Are you an IT pro? Apply for membership!

Your question was not answered? Ask in the forum!

1+

Users who have LIKED this post:

  • avatar
Share
0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

© 4sysops 2006 - 2019

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account