Sitemap
Arjun PT

Arjun PT

DevOps engineer who love to share stories, ideas, projects, and perspectives on Technology

Azure Migrate

6 min readJun 20, 2023

--

Press enter or click to view image in full size
  • we have a company smart hotel and smart hotel host their application on hyper-v on prem machine.
  • they have couple of webserver, sql backend database and ubuntu server which using as a WAF
  • we are going to lift and shift approach for migrating it to the cloud

Stage 1:
we are going to replicate this env in azure
we will deploy a template which will deploy on a hyperv on prem env

stage2:

we will do on prem env discovery and assesment
we will use the tool azure migrate which help in discorvey
discovery is like it will find out what are the dependencies on server, what compute we need to use
in this stage we will move the linux and ubuntu machine using azure migrate tool

stage3:

Get Arjun PT’s stories in your inbox

Join Medium for free to get updates from this writer.

In this stage we will migrate the databases to azure
DMS and DMA are the tool we will be using in this stage

Press enter or click to view image in full size
Press enter or click to view image in full size

we need to create the project with an resource group and details mentioned below

Press enter or click to view image in full size

Inside the migration goals we have the server database and web app there we have a quick start option for discover.

  • we have to choose the virtualization platform like hyperv, xen , vmware
  • we have to generate a project key after giving the appliance name
  • Download the azure migrate appliance as a vhd file
Press enter or click to view image in full size
Press enter or click to view image in full size
  • RDP into the on premise server
  • open the hyperv manager from the tool section
  • click on action and import the vhd file
Press enter or click to view image in full size
  • Choose the first option
Press enter or click to view image in full size
  • This error is expected so choose the switch whicha are inernally avaialble
Press enter or click to view image in full size
  • once done click on thr azure migrate and start the server
Press enter or click to view image in full size
  • why we doing this is that azure migrate appliance need access to internet to upload data to azure and also it need access to hypervhost
  • it will automatically isntall and configure the pre requisite steps
  • In the register with azure migrate section we have to give the key that we generated from azure portal
Press enter or click to view image in full size
Press enter or click to view image in full size
  • update the discovery source with fQDN in order to find the services that are running inside this server
  • once done the valdiate will got successful
  • Then start the discovery
Press enter or click to view image in full size
Press enter or click to view image in full size
  • once discovered we will get those details on the azure portal
  • see in the screenshot we can see the number of servers
Press enter or click to view image in full size
  • click on the asses option if we want to asses the vm
Press enter or click to view image in full size
  • once the assesment is done we will get an report like this
  • where we can know the server is ready or do we have any warning
  • we can avoid warning. sometimes we can see error like unkown OS and all
  • if we get the unknown OS warning then click on that to get more about it
Press enter or click to view image in full size
  • we have done with assesment part

Next we have to do the dependency visualization

  • click on the groups
  • for the dependencies to work we have to install those agents
Press enter or click to view image in full size
Press enter or click to view image in full size
  • we have to create the workspace then we can install th agents
  • copy the link and install it on the on prem server
Press enter or click to view image in full size
  • inside the agent managment we can find the workspace id and the key
  • while configuring the microsot agent we have to give those credentials
Press enter or click to view image in full size
  • All the agent installation is completed
Press enter or click to view image in full size
Press enter or click to view image in full size
  • we need to create a azure storage account. This is for storing the reosirces
    click create reosurce -> storage account -> go with default configuration
Press enter or click to view image in full size
  • create a private endpoint on the provider virtual netwrok that is used by the sql resource
  • got to the resource group where all the resources are listed
Press enter or click to view image in full size
  • create a new private endpoint for the db instance.
Press enter or click to view image in full size
  • once done we have to go to the migration tab
Press enter or click to view image in full size
  • we need to download and install it on our onpremise host. This is a azure site recovery agent
Press enter or click to view image in full size
  • just upload the key for completing the registration process. key are provided in the same page itself we need to download it from the portal and upload. select connect to azure site recovery without a proxy server
  • registration is completed
Press enter or click to view image in full size
  • once done we can go to the azure migrate tool and strat the replciation process
Press enter or click to view image in full size
  • choose the group and assesment name and tick all the vms
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
  • we are not making changes on the disk part right now and also in the tags section
  • we can get the status from overview section and click on the replicating machine to get the status of vm. it will take 30 to 45 min to replicate
Press enter or click to view image in full size
  • change the ip from dynamic to static on all the vms
  • go to compute and network for updating those setting
  • inside the internal NAT seich chnage the IP address to static
Press enter or click to view image in full size

once replication is completed do the migration that on the step3. we can choose the migration of vm one by one or can perfomr bulk

Press enter or click to view image in full size
  • on job we can see the progress
Press enter or click to view image in full size
Press enter or click to view image in full size

Start from the 50.0 minute to see the database migration

--

--

Arjun PT
Arjun PT

Written by Arjun PT

DevOps engineer who love to share stories, ideas, projects, and perspectives on Technology