Migrate AWS EC2 to Azure VM using nodsjs code

I need to migrate an AWS EC2 instance to Azure VM using nodejs code. I checked the instructions from the Azure website.

https://azure.microsoft.com/en-in/blog/seamlessly-migrate-your-application-from-aws-to-azure-in-4-simple-steps/

So my simple question is: I can port my EC2 to Azure using only nodejs code. Or Can I replicate the link above using the nodejs application

+7
amazon-ec2 azure
source share
1 answer

This is a fairly open-ended question, and a lot depends on how your application is configured and what are the goals for migrating to Azure. With that said, there are several ways to investigate that may help.

Infrastructure as a Service

You mention an “EC2 instance,” so I assume this is the only virtual machine, not a cluster. You can configure virtual machines in Azure and select templates for virtual machines, for example. here are the preconfigured Node.js fields that you could use as a starting point: https://azuremarketplace.microsoft.com/en-us/marketplace/apps/category/compute?operatingSystem=acom-linux&search=node.js

After configuration, deploy to the virtual machine, as usual, you are deploying the application; make sure you install any dependencies your application requires. Ideally, you would have to automate and write scripts, and not work directly on the field :-)

Platform as a Service

Azure also has an interesting PaaS offering in the form of the Azure App Service, and Linux on the App Service is now in preview mode. (See https://docs.microsoft.com/en-us/azure/app-service/app-service-linux-readme )

You can use two methods:

Other considerations

If your application uses services that run on other virtual machines (for example, a standalone database), consider moving it to Azure in parts to make it easier, and prove at each step that everything is still working properly . For example: port application servers first. Then the database. Then any other services. This is not recommended for production databases (you may encounter any number of problems, such as terminating connections or creating unexpected locks); and you'll want to be careful about bandwidth costs in both directions.

0
source share

All Articles