Automating VCF – Create Network Pool

This is the second of six blogs in a series that discusses automating VMware Cloud Foundation using the Public APIs and PowerVCF. The series illustrates deploying the Management Domain, creating a Network Pool, commissioning ESXi host, deploying a Workload Domain including NSX-T Edge Cluster and vRealize Suite Lifecycle Manager.

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

VMware Cloud Foundation APIs Used

  • POST /v1/network-pools

PowerVCF Cmdlets

  • New-VCFNetworkPool

PowerShell Scripts

Procedure

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

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

1.\createNetworkPoolSpec.ps1 -Workbook "E:\MyLab\pnpWorkbook.xlsx" -Json "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.

  1. Authenticate to the SDDC Manager appliance by running the following command:
1Request-VCFToken -fqdn "sfo-vcf01.sfo.rainpole.io" -username "[email protected]" -password "VMw@re1!"
  1. Create the new network pool by running the following command:
1New-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.


Posts in this Series