I had to delete a VM but kept the VHD and want to recreate the VM with this one since there is necessary data on it. What I did in the web interface:
- Made sure the vhd is unattached
- clicked in the vhd status page "create new virtual machine"
- choose a size and left the rest as it was
- created the vm
Now it says:
Error at provision. Creating a virtual machine from Marketplace image requires Plan information in the request. VM: '/subscriptions/a566b4bb-3fe4-4e2b-88ec-bb627e8c2d89/resourceGroups/dev-ext-west-host-/providers/Microsoft.Compute/virtualMachines/'.. VMMarketplaceInvalidInput
I really need to get the vm running again with this vhd, any ideas on this one?
EDIT: I did follow these steps for creating it: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/create-vm-specialized-portal#create-a-vm-from-a-disk