Here's example steps for uploading a Windows VHD to Azure. I initially built mine using this Packer script,
then used PowerShell to convert it - Convert-VHD -VHDType Fixed -Path <source.vhdx> -DestinationPath WindowsServer2016Insider.vhd
, and last the Azure CLI 2.0 to upload it.
az login
# If you need to use a specific subscription, then
# az account set --subscription <subscription name>
# Resource group to contain all resources