www.vmwareadmins.com

how many VMs can you put in a box?

  • Increase font size
  • Default font size
  • Decrease font size
Home Articles Add PortGroup to all ESX hosts in cluster using vOrchestrator

Add PortGroup to all ESX hosts in cluster using vOrchestrator

E-mail Print PDF

I'm back in action and converting some of my utility PowerCLI scripts to vCO again.

This time, I'm creating a workflow that will add a portgroup to vSwitch to all of the hosts in a cluster.

First off, create your schema using the getAllHostSystemsOfCluster workflow object, and a scriptable task

 Next, create some inputs, I used: VLAN_ID, VLAN_Name and Switch_Name.

On your scriptable task, define your In Parameters

Drop some code in (generated with Onyx)

And there you have it!

the only thing is to make note of the:

.configManager.NetworkSystem
prepend to
updateNetworkConfig

 

Follow Me On...

Facebook linkedin twitter youtube