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.
- To resolve the problem in Linux, use the qemu-img command.
Uploaded VHD is not supported when you create a VM in Azure - Virtual Machines | Microsoft Learn
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.