I'm trying to clone a virtual machine on Azure. I stopped the VM, and navigated to its VHD file in blob storage using Neudesic's Azure Storage Expolrer. But when I try to copy the BHD blob I get the error "the blob type is invalid for this operation" after the target blob is created but before any bytes are copied. What steps am I missing?

有帮助吗?

解决方案

I think you have found a bug in Azure Storage Explorer. It is basically trying to copy as Block Blob where your original blob type is Page Blob.

What I did was I tried to copy a VHD file and captured the request in Fiddler. If you see the screenshot below, you'll notice that the x-ms-blob-type request header is going as BlockBlob instead of PageBlob.

enter image description here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top