You can set the port group VLAN ID with ESXCLI and with vicfg-vswitch.