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

-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

    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.

    Related Commands

    Feedback

    Was this page helpful?