The active ports shows 0 in host client ui even though when powered-on virtual machines are connected to the portgroup.
The virtual machines should not have any connectivity issues.
VMware vSphere ESXi 8.x
This issue is seen in ESXi 8.x, as a cache layer was introduced in host ui , and GetNetworkInfo just returns the cache. The cache is updated by the vmkernel event notification. However, for this particular case/field, there is no vmkernel event notification. Thus the cache is not refreshed, and GetNetworkInfo returns stale info.
Hence, the active ports shows a 0 in host ui.
This is a known issue in ESXi version 8.0 which will not have any impact on the virtual machines.
As a workaround, run following command in ESXi host ssh which will manually refresh the network info and reflect active ports in ESXi host client ui:-
vim-cmd hostsvc/net/refresh