Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

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 179681

Trending Articles



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