This script is a intended for moving a VHD to Azure using PowerShell with Azure Resource Manager 5.1 module. Then in the Azure portal we will create an image from the VHD, this will help us to be able to provision VMs from that image. 

For the complete step-by-step please refer to:

Feel free to contribute to the Github repo: