Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

Add new portgroup to entire Cluster

$
0
0

Hello,

 

Currently, I have the powercli script to add a new portgroup to an existing switch on one host.  I'm looking to see how to do this on an entire cluster given that the vSwitch I want to add it to is the same vSwitch across all hosts.

 

Get-VMHost -Name ESXI01 | Get-VirtualSwitch -Name vSwitch1 | New-VirtualPortGroup -Name PG400 -VLanId 697

 

This command works but instead of doing it one host at a time, what is the proper syntax to apply to entire cluster?


Viewing all articles
Browse latest Browse all 180259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>