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.
gwcodes
source share