Attempts to create or edit a Compute Profile in VMware HCX fail with a validation error regarding network containers.
Symptoms:
Unable to generate Connection Rules.
The selected network container ###-###-## is not attached to all of the specified host(s) [list of host names]/common/logs/admin/web.log :ERROR c.v.v.h.a.i.ComputeProfileRestController- Basic validation of compute profile failed. Errors: [{"code":"E_INVALID_INPUT","message":"The selected network container <network-container-name> is not attached to all of the specified host(s) [<hostname>."}VMware HCX 4.11.x
During the Compute Profile creation process, HCX performs a validation to confirm that all ESXi hosts within the selected deployment cluster are correctly attached to the virtual switch and have consistent network labels. If a single host is missing the required VLAN or Portgroup, the validation fails.