Why does Azure Storage Explorer removes the .vhd extension on upload

Mihai 1 Reputation point
2020-12-30T20:15:21.02+00:00

Hello, it looks like on upload, the Azure Storage Explorer removes the file extension. I tried uploading a .vhd file, and it was uploaded without the extension. Of course when trying to create a Drive from the Blob storage file, I was unable to use the uploaded file, with the message "the extension needs to be .vhd". As there's no "rename" button in Azure Storage Explorer, had to "clone", to filename.vhd, thus using twice the space in Azure. Could you check why the extension is removed?

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
230 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,427 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. deherman-MSFT 33,456 Reputation points Microsoft Employee
    2020-12-31T00:18:19.84+00:00

    @Mihai
    Is there a document or post you are following and can you let us know what you are trying to accomplish? It seems like you wish to upload a VHD and then use that as a disk. If so then you can follow the process outlined in the documentation here. In this process you do not need to first upload as a blob to create the managed disk.

    I tried but was unsuccessful in reproducing your issue. When uploading a VHD file the .vhd remained on the end and the file was uploaded as a page blob. You might check the logs to see if there is any clue on why the file name was changed. You can open the Storage Explorer logs directory by choosing Help> Open Logs Directory. It also might be helpful to view the AZCopy command and logs that was used to transfer the file. You can view detailed AZCopy logs in C:\Users\<username>.azcopy.

    Hope this helps. If you are still having issues or have further questions please let us know.


    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. Mihai 1 Reputation point
    2021-01-06T07:56:04.95+00:00

    Sorry about the delay. So, to sum up, I think the problem was between the monitor and the keyboard :)
    The downloaded .vhd did not have the .vhd extension.
    So when I clicked on download disk from the azure portal, the output file was "abcd (2)". Seems like the portal does not provide an extension
    That's why it was uploaded without any extensions, because it had none to start with. I somehow missed that it had no extension.

    And to clarify what I was trying to do: I needed to move a drive from one location to another (in the same subscription). If there is a simpler way to move it, please tell me, but the only way I was able to do this was to create a bkup of the drive in location1, download the .vhd locally, (without the proper .vhd extension :) ) then, upload this .vhd to a blob storage in location 2, and then, create a drive in location 2 from the blob storage.
    I would have loved a edit button in the portal, change location to location2 .... and done.