"Failed to reconfigure virtual machine <VM_name>, invalid configuration for device '9' "
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
The port of a VM can only be reconnected/reconfigured to a static-binding port group when the the vCenter Server UI is available. If vCenter to host communication is lost, the VM will not be able to be reconfigured to a static-binding port group on a vDS because vCenter is unavailable to give the VM a port binding.
To connect the VM, add it to a standard switch following the procedure as detailed in Migrate Virtual Machines (VMs) and VMkernel Adapters from Distributed Switch (vDS) to Standard Switch (vSS).