After restoring vCenter Server and a vSphere Distributed Switch (VDS) from a backup, attempting to re-add an existing ESXi host that was previously connected to the VDS may fail with the following error:
"Cannot rejoin the host to VDS <VDS Name>, the uplink port <Port ID> of the host conflict with an existing port of the same key"
VMware vCenter Server 7.0
VMware vCenter Server 8.0
VMware ESXi 7.0
VMware ESXi 8.0
After the restore of vCenter Server and VDS, the unadded ESXi host retains its previous port ID information. If the corresponding port ID is already being used by another ESXi host that has already been added to the VDS, a port ID conflict occurs and the addition of the ESXi host fails.
Temporarily remove the already-added ESXi host with the conflicting port ID from the VDS, add the host that failed to add, and then re-add the removed host.