Unable to upload .vhd file to Azure storage . I am getting an error Page blob size must be aligned to a 512-byte boundary.

Ashish Sharma 0 Reputation points
2025-05-08T11:44:16.66+00:00

image.png

Page blob size must be aligned to a 512-byte boundary.

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

1 answer

Sort by: Most helpful
  1. Vinod Kumar Reddy Chilupuri 3,900 Reputation points Microsoft External Staff Moderator
    2025-05-08T13:29:50.65+00:00

    Hi Ashish Sharma,

    you're encountering an issue when trying to upload a .vhd file to Azure storage, specifically with the error message about the "Page blob size must be aligned to a 512-byte boundary."

    To resolve this issue, you should ensure that the Resize-VHD PowerShell cmdlet file meets this alignment requirement. If necessary, you may need to resize the VHD to comply with the 1 MB alignment as well, since Azure requires that the supported disk size should be 1 MB * N (for example, 102,401 MB). Note that Resize-VHD is not an Azure PowerShell cmdlet.

    If you continue to experience issues, consider checking if the VHD is corrupted or not supported, as this could also lead to upload failures.

    Rebuild the VHD: If you've confirmed that the alignment is correct and you still get the error, there could be a chance that the VHD is corrupted. In this case, it's best to rebuild the VHD from scratch.

    For step-by-step guidance on preparing and uploading your VHD files, take a look at these links:

    Hope the above suggestion helps! Please let us know do you have any further queries.

    Please do consider to “Accept the answer” wherever the information provided helps you, this can be beneficial to other community members. 


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.