juchestyle
Commander
Commander

Use Powershell ISE to create logical switch and connect to logical Router

Hey Everyone,

Newbie to Powershell, am trying to create a script to create about 100 Logical Switches and connect them to the logical router using a powershell script. 

I found this:  http://theartofit.org/automate-nsx-logical-switch-creation-using-powernsx/

But it doesn't perform the second step of taking a newly created logical switch and connecting it to the logical router. 

Has anyone done this yet and can you share your code?

Thanks,

Matthew

Kaizen!
1 Reply
bayupw
Leadership
Leadership

Hi Matt, you can take a look at this sample script to build a three tier app using NSX GitHub - pandom/NSX-Scripts: A collection of NSX Scripts

If you like to read a book on PowerNSX, you can download it for free here: https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/products/nsx/vmware-automating-vsp...

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw