Set the port blocking policy for a dvPort group under miscellaneous policies.

1

In the vSphere Client, display the Networking inventory view and select the dvPort group.

2

From the Inventory menu, select Network > Edit Settings.

3

Select Miscellaneous.

4

Choose whether to Block all ports on this dvPort group.