Share via


Failed to create image . The size must be a whole number (in MBs).

Question

Monday, April 11, 2016 2:09 PM

Hi Guys

i convert VHD from dynamic expended to fixed and upload it to windows Azure

now when i trying to create image i got this error

The VHD https://*******.blob.core.windows.net/vhd/****.vhd has an unsupported virtual size of 72777277440 bytes. The size must be a whole number (in MBs).

anyone know how to fix it

All replies (3)

Monday, April 11, 2016 2:59 PM | 1 vote

Hi,

Yes I've had this before, I assume you've copied this up from Hyper-V. So the size you have is actually ~69405.82MB.

Back on Hyper-V use the Resize-VHD cmdlet in PowerShell and make this 69500MB/80GB or similar then re-upload to Azure, you should then be able to create an image from it.

https://technet.microsoft.com/en-us/library/hh848535.aspx


Tuesday, April 12, 2016 3:09 PM

Hi,

i resize the vhd to be 70GB and it worked

Thank you dear :)


Tuesday, April 12, 2016 4:07 PM

Great news, you're welcome!