This problem occurs for one of the following reasons:
- The VHD does not comply with the 1 MB alignment (offset). The supported disk size should be 1 MB * N. For example, the disk should be 102,401 MB.
- The VHD is corrupted or not supported.
This article provides a resolution to the issue you are facing: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/uploaded-vhd-not-support#symptoms
This article shows you how to set up a class that focuses on the forensics side of ethical hacking with Azure Lab Services: https://learn.microsoft.com/en-us/previous-versions/azure/lab-services/class-type-ethical-hacking?tabs=windows
Similar thread: https://learn.microsoft.com/en-us/answers/questions/272786/run-metasploitable-in-azure-for-test-lab
For reference: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/prepare-for-upload-vhd-image
Hope this helps!
If you have any further queries, please let me know in the comments!
If the information is helpful, please click "upvote" to let us know.