Both .vhdx and .vmdk files are virtual hard drivers, just from different virtualization platforms, Microsoft Windows Hyper-V and VMware respectively. In case you need to convert one to another via vhdx to vmdk conversion, it would be best to take advantage of some of the dedicated utilities available for such purpose, for example the StarWind V2V Converter.
Updated: September 15, 2023