Automating VCF – Create Network Pool

In this part of the series, we take a look at how to create a new network pool in SDDC Manager to support a workload domain deployment.

VMware Cloud Builder APIs Used

  • POST /v1/network-pools

PowerVCF Cmdlets

  • New-VCFNetworkPool

PowerShell Scripts

Procedure

Step 1 – Download and populate the Planning and Preparation Workbook for your target platform.

Step 2 – To generate the JSON spec using inputs from the Planning and Preparation Workbook run the following command:

.\createNetworkPoolSpec.ps1 E:\MyLab\pnpWorkbook.xlsx E:\MyLab\sfo\sfo-workloadNetworkPool.json

The createNetworkPool.ps1 script will open the supplied Planning and Preparation Workbook, read the ‘Workload Domain’ tab into a variable and then proceed to generate the JSON spec required by the Public API.

Step 3 – Authenticate to the SDDC Manager appliance by running the following command:

Connect-VCFManager -fqdn sfo-vcf01.sfo.rainpole.io -username administrator@vsphere.local -password VMw@re1!

Step 4 – Create the new network pool by running the following command:

New-VCFNetworkPool -json E:\MyLab\sfo\sfo-workloadNetworkPool.json

That completes the process of generating a network pool JSON spec used by the public API and creating the network pool in SDDC Manager .

For other posts in this series see:

5 thoughts on “Automating VCF – Create Network Pool

  1. Pingback: Automating VCF – Deploy Management Domain – My Cloudy World

  2. Pingback: Automating VCF – Commission Hosts – My Cloudy World

  3. Pingback: Automating VMware Cloud Foundation with APIs/PowerVCF/PowerShell – My Cloudy World

  4. Pingback: Automating VCF – Deploy Workload Domain – My Cloudy World

  5. Pingback: Automating VCF – Deploy NSX-T Edge Cluster – My Cloudy World

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s