New-HCXComputeProfileNetwork Command | Vmware PowerCLI Reference

New-HCXComputeProfileNetwork

This cmdlet creates a Network Profile configuration for the Compute Profile. It configures the Network Profile with a static route for the Compute Profile. You can use the output of the cmdlet to create a Compute Profile.

Syntax

New-HCXComputeProfileNetwork
-Network < HCXNetworkProfile >
[-Server < HcxServer[] > ]
[-StaticRoute < HCXStaticRoute[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Network HCXNetworkProfile named
  • pipeline
Specifies the Network Profile.
optional Server HcxServer[] named
Specifies the HCX Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.
optional StaticRoute HCXStaticRoute[] named
Specifies the static route.

Output

VMware.VimAutomation.Hcx.Types.V1.HCXNetworkProfile

Examples

Example 1

$myNetworkProfile = Get-HCXNetworkProfile -Name "myNetworkProfile"
$myStaticRoute = New-HCXStaticRoute -Network 192.168.100.0/24 -Gateway 192.168.0.1
$myManagementNetwork  = New-HCXComputeProfileNetwork -Network $myNetworkProfile -StaticRoute $myStaticRoute

Configures the Network Profile with a static route.

Related Commands

HCXComputeProfile

This cmdlet retrieves a list of the HCX Compute Profiles.

This cmdlet creates an HCX Compute Profile.

This cmdlet removes an existing HCX Compute Profile.

This cmdlet modifies the HCX Compute Profile.

HCXComputeProfileDVS

This cmdlet creates a Distributed Virtual Switch (DVS) configuration for a Compute Profile.

HCXComputeProfileNetwork

This cmdlet creates a Network Profile configuration for the Compute Profile.