I am trying to create a VM on Azure, from VHD of an On Premise Server. As per the steps, I have created the VHD file of the C Drive of my server (including the system reserved partition), and have uploaded the same VHD to Blob Storage (as Page Blob). I have uploaded it through Portal.

Now as per next step, I am trying to create an Image from it, so that it can be used to create VM.

But I am getting the following error:

Failed to create image 'NewImage'. Error: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.

Not able to identify the actual error or problem in this.

2 Answers

Charles Xu On

To create the Azure VM from a VHD file which created on-premise. You need to do a lot of steps to prepare the VHD file. Not just convert the disk to the VHD file, you need to make sure it can run well on-premise.

The error you get does not show the reason that causes the accident. What I can provide are the steps that you can follow to create an available VHD file. And all the steps and recommends in Prepare a Windows VHD or VHDX to upload to Azure.

Hannel On

From description i believe the issue is with the way you converted the VHD. People always miss the section where is says the VHD must be Fixed Size VHD.

Not sure if disk2vhd has the option but you can use the Convert-VHD command in Hyper-V module or Microsoft VM Converter.

Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd -VHDType Fixed

Also, VHD images on Azure must have a virtual size aligned to 1 MB. Typically, VHDs created using Hyper-V are aligned correctly.