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
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Network | HCXNetworkProfile | named |
|
Specifies the Network Profile. |
optional | ProgressAction | ActionPreference | named |
|
|
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.HCXNetworkProfileExamples
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.