Scenario 1: Migrating one server to Azure
- The steps which we follow to migrate one server or from other clouds is almost the same.
- The supported operating systems are
- Linux
- Windows
- Source For migration: (Simulated)
- I will be creating an ubuntu 20.04 LTS vm in (AWS/Azure/GCP/Vmware)
- In the source we will be installing some sample application (Spring petclinic)
sudo apt update
sudo apt install openjdk-11-jdk -y
java -version
sudo mkdir /usr/share/spc
cd /usr/share/spc
sudo wget https://referenceapplicationskhaja.s3.us-west-2.amazonaws.com/spring-petclinic-2.4.2.jar
java -jar spring-petclinic-2.4.2.jar
- Now navigate to the publicip on port 8080
Order of Migration
- Consider the below architecture
- When we migrate, we follow the migration from least dependent server to the most dependent server
- In the above case, we should be migrating in the following order
- database server
- application/middle ware
- webserver