,

Create NSX-T Segments using powerCLI Script

by

Before running the script you’ll need the following:

  1. Install PowerCLI “Install-Module -Name VMware.PowerCLI -Scope CurrentUser”
  2. NSX Manager FQDNs and credentials
  3. NSX-T Overlay transport zone (the transport zone you will use to use to create the segments) you will need the ID for this
  4. The segments you want to add from TXT or CSV file (Download example from github link below)

Script file can be accessed here along with an example txt file:

https://github.com/PhilCDW/NSXTCreateSegments/blob/c1203d93948a3623dfb1b9732a20022ea04fd860/CreateNSXTSegments.ps1

The Script will ask the following:

Input your NSX-T FQDN:
Credentials for NST-T
Input your Transport Zone ID.

Another script I’ve uploaded is delete segments using a CSV file, can be useful if you make any mistakes: DeleteSegmentsScript

Leave a Reply

Your email address will not be published. Required fields are marked *