Repair Corrupted Vhdx [verified] File
Choose the "Compact" option. This shrinks the file by removing empty space, which can sometimes realign the internal structure and resolve errors.
The chkdsk utility ran for several hours, scanning the VHDX file for errors and attempting to repair them. Unfortunately, it didn't manage to fix the corruption. repair corrupted vhdx
Maria explained that the VM had been running fine until the previous night, when the server had experienced a power outage. When the server restarted, the VM failed to boot, and the VHDX file was reported as corrupted. Choose the "Compact" option