VMware vSphere 7.x
VMware vSphere 8.x
Since the host where the VM is residing has issues with HA configuration, the task will not proceed.
This error can be due to the following reasons:
To work on the HA issue of the hosts, refer the following kb articles:
Error: "vSphere HA agent cannot be correctly installed or configured"