I am following these https://docs.microsoft.com/en-us/azure/virtual-machines/linux/upload-vhd instructions to create a VM in Azure. At this stage though
az disk create --resource-group myResourceGroup --name myManagedDisk \ --source https://mystorageaccount.blob.core.windows.net/mydisks/myDisk.vhd
i get the following error
Only blobs formatted as VHDs can be imported.
I believe the VHD is a Linux OS.
Any ideas to what i have missed or does someone have a link to a better resource that can help me get this VM installed?
I follow the guide you mentioned above and I am able to create the disk without any issue.
As CtrlDot mentioned above, please make sure that the uploaded vhd is marked as page blob.
To verify this, please run the command below:
If it is page blob and you are still getting error, then please make sure that your source vhd has met the following requirements: