Getting errors when uploading VHD to azure

Yoav 20 Reputation points
2023-02-15T18:15:06.5833333+00:00

My developers uploaded a VHD to google drive for me to download and upload to my own azure account. I downloaded it to my SD card (an external storage device)

Whenever I upload the VHD to a resource group under "disks" on Azure Storage Explorer I get the following error. User's image

I would be very grateful for some help in what I am doing wrong and how I can upload this VHD.

P.s.: I would be grateful for solutions to this issue, not other ways the developers can give me access. These alternatives are limited due to some limitations on my account and other factors. Thank you.

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
259 questions
{count} votes

Accepted answer
  1. Abdul Sajid Mohammed 470 Reputation points Microsoft Employee
    2023-02-15T18:36:09.8966667+00:00

    Hello @yoav

    If you're encountering an error while uploading a .vhd file to Azure, there are a few things you can check to resolve the issue:

    1. Ensure that the .vhd file is in the correct format. Azure supports both .vhd and .vhdx formats, but the file must be in the fixed format, not dynamic.
    2. Check the size of the .vhd file. Azure has a maximum size limit of 2 TB for .vhd files. If your file is larger than this, you'll need to split it into multiple .vhd files.
    3. Ensure that the .vhd file is not corrupted. You can use the 'chkdsk' command in Windows to check the file system for errors.
    4. Ensure that you have the correct permissions to upload the .vhd file to Azure. You'll need to have the appropriate role-based access control (RBAC) permissions to upload the file.
    5. If you're using the Azure portal to upload the .vhd file, ensure that you have a stable internet connection and no interruption during the upload process can cause errors.

    If you've checked all of these items and are still encountering an error, you can try uploading the .vhd file using the Azure CLI or Azure PowerShell. These tools provide more detailed error messages that can help you troubleshoot the issue.

    You can also refer to the following Microsoft documentation for more information on preparing a Windows VHD to upload to Azure: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/virtual-machines/windows/prepare-for-upload-vhd-image.md

    Reference:

    Hope this helps. Let me know if you need further assistance.


1 additional answer

Sort by: Most helpful
  1. Yoav 20 Reputation points
    2023-02-15T19:50:56.1333333+00:00

    Thank you very much @Abdul Sajid Mohammed

    When I downloaded the file, Azure Storage Expolrere did not recognise it as .vhd. I don't think it was saved as such. So, I manually added ".vhd" to the file name. Then it worked fine.

    Do you think this may be the root cause of the issue and relate to point #1 that you outlined?

    I am very grateful for your help.

    Many thanks,

    Yoav


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.