Let’s say you need to retain your hardcoded IP Address when you migrate VMWare VM’s to Azure using Azure Site Recovery, in this case I want to my server to retain it’s IP Address of 10.0.198.203
Here’s how you complete this.
Login to the Azure Portal
Open your Site Recovery Vault
Select “Replicated Items”
Select the virtual machine
Open “Compute and Network”
Click “Edit”
Select the network interface
In the Private IP address section overwrite Dynamic with the IP Address you want to assign to this VM