Add portgroup and vlan via CLI

Add a portgroup to a vSwitch –> esxcli network vswitch standard portgroup add –portgroup-name= –vswitch-name= esxcfg-vswitch -p “” -v esxcfg-vswitch -p “VLAN XX” -v 900 vSwitch1