Starting with an OVA.
- Extract .vmdk using tar
- Convert .vmdk with 'qemu-img convert -O vpc <vmdk_name> <vhd_name>
- Check size of vhd image with 'qemu-img info --output json <vhd_name>
- Create disk on azure with 'az disk create -name <some_name> -g <resource_group> -l <region> --for-upload --upload-size-bytes <size in bytes from step #3> --sku standard_lrs
- Get error message telling me that the upload size minus 512 vhd header is not an even multiple of 1M
- Add 512 to upload-size-bytes in step 4. Success
- Grant write access with 'az disk grant-access <args...>'
- Upload vhd with 'azcopy copy <vhd_name> <sas_uri from step 7> --blob-type PageBlob'
- Get error message telling me that the vhd size does not exactly match the requested upload-size-bytes which is 512 bytes larger
- Adjust size of vhd image with 'qemu-img resize <vhd> +512, retry upload. Success
- revoce write access with 'az disk revoke-access <args...>'
- Error message telling me that value in VHD footer indicates that disk 'abcd' with blob <blob> is not supported VHD. Disk is expected to have cookie value 'conectix'
When I convert the image from .vmdk to .vhd what args should I put in so that I get the supported vhd footer added?