How to migrate my EC2 instance with Ubuntu Machine from AWS completely into Microsoft Azure using Azure migrate?

Neelesh Srivastava 0 Reputation points
2025-06-30T03:41:09.3166667+00:00

How to migrate my EC2 instance with Ubuntu Machine from AWS completely into Microsoft Azure using Azure migrate?I have an Web app running on that instance with several dependencies and I do not want to set it up manually. The machine is on Ubuntu, and I want to migrate that machine completely onto Azure and then delete that instance from AWS. Please provide complete process to achieve the same.

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
929 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ashok Gandhi Kotnana 10,430 Reputation points Microsoft External Staff Moderator
    2025-06-30T03:48:57.47+00:00

    @Neelesh Srivastava

    To migrate your EC2 instance running Ubuntu from AWS to Microsoft Azure using Azure Migrate, follow these steps:

    1.Verify Prerequisites: Ensure that your AWS EC2 instance is running a supported version of Ubuntu. You can check the OS version using commands like hostnamectl or uname -a.

    2.Prepare Azure Resources:

    Create an Azure Migrate project in the Azure portal. You need Contributor or Owner permissions to do this.

    Verify that your Azure account has the necessary permissions to create a VM and write to an Azure managed disk.

    3.Prepare AWS EC2 Instance:

    Make sure your Ubuntu instance complies with the supported configurations for migration to Azure.

    Install the Azure Migrate Mobility service on your AWS VM to enable replication.

    4.Set Up Replication:

    In the Azure Migrate project, set up the replication appliance and deploy the configuration server.

    Enable replication for your Ubuntu VM.

    5.Run a Test Migration:

    It’s highly recommended to run a test migration to ensure everything works as expected before performing the full migration.

    6.Migrate the VM:

    After verifying that the test migration works, initiate the migration process from the Azure Migrate project.

    Select the option to shut down the virtual machine and perform a planned migration with no data loss.

    7.Complete the Migration:

    Once the migration is finished, stop the migration process in Azure to clean up the replication state.

    Verify and troubleshoot any potential issues, such as activation problems on the Azure VM.

    8.Post-Migration Tasks:

    Perform any necessary application tweaks, such as updating host names, database connection strings, and web server configurations.

    Conduct final application testing to ensure everything is functioning correctly in Azure.

    9.Cut Over Traffic:

    Once you are satisfied with the migration, redirect traffic to the new Azure VM instance.

    10.Delete AWS Instance:

    After confirming that your application is running smoothly in Azure, you can safely delete the original EC2 instance from AWS.

    By following these steps, you can migrate your Ubuntu EC2 instance to Azure while minimizing manual setup.

    Note: Please let me know if you need more details I can come over a call explain you in detailed

    Reference:
    https://learn.microsoft.com/en-us/azure/migrate/migrate-support-matrix-physical?view=migrate-classic
    https://learn.microsoft.com/en-us/azure/site-recovery/migrate-tutorial-aws-azure

    https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-aws-virtual-machines?view=migrate-classic

    let us know if any help, we will always help as you needed.!

    User's image Please do not forget to "Accept the answer” and upvote it wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.


Your answer

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