Using ESXi 5.1, add the portgroup first, then define vlan id for it:
# esxcli network vswitch standard portgroup add -v vSwitch1 -p vlan701
# esxcli network vswitch standard portgroup set -p vlan701 -v 701
Using ESXi 5.1, add the portgroup first, then define vlan id for it:
# esxcli network vswitch standard portgroup add -v vSwitch1 -p vlan701
# esxcli network vswitch standard portgroup set -p vlan701 -v 701