Experimenting with vSphere PowerCLI – Portgroups
Despite last weeks frustration with enhanced LACP and vDS through vSphere PowerCLI, some things can still be automated while others will have to be done by hand. I looked into the deployment of PortGroup’s as the next logical step, here is what I came up with so far:
# Create Portgroups Get-VDSwitch -Name "vTest" | New-VDPortGroup -Name "Windows Servers" -PortBinding Static -Numports 32 -VlanID 100 Get-VDSwitch -Name "vTest" | New-VDPortGroup -Name "Linux Servers" -PortBinding Static -Numports 32 -VlanID 101
This post and my previous one will eventually be used to make an automation script to set up about 95% of a lab setting.