PowerCLI Reference

New-HCXComputeProfileNetwork

Synopsis

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

Syntax

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

Related Commands

Detailed Description

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.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
NetworkHCXNetworkProfileSpecifies the Network Profile.trueTrue (ByValue)
ServerHcxServer[]Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.falseFalse
StaticRouteHCXStaticRoute[]Specifies the static route.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

VMware.VimAutomation.Hcx.Types.V1.HCXNetworkProfile

Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> $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.


Copyright © VMware, Inc. All rights reserved.