Standard vSwitch and Distributed Switch ports

Here, we will discuss the problems that arise in vCenter from the difference between vSwitch and Distributed Switch ports in vCenter. We will learn how to bypass these problems, and create a workflow that will connect a VM to a Standard vSwitch or Distributed Switch port.

Getting ready

We need a vSphere environment that has at least one vSwitch and at least one Distributed Switch configured, each with at least one VM Network port group. For this recipe, it is not necessary for the switches to be actually connected to any NICs; they can be implemented as blind switches.

To understand the creation of the action, you should understand how to use the vCenter API, as showcased in the recipe Working with the ...

Get VMware vRealize Orchestrator Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.