Before running the script you’ll need the following:
- Install PowerCLI “Install-Module -Name VMware.PowerCLI -Scope CurrentUser”
- NSX Manager FQDNs and credentials
- NSX-T Overlay transport zone (the transport zone you will use to use to create the segments) you will need the ID for this
- 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:
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