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
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Confirm | SwitchParameter | If 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. | false | False | |
Network | HCXNetworkProfile | Specifies the Network Profile. | true | True (ByValue) | |
Server | HcxServer[] | 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. | false | False | |
StaticRoute | HCXStaticRoute[] | Specifies the static route. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
VMware.VimAutomation.Hcx.Types.V1.HCXNetworkProfileNotes
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.