PowerCLI Reference



This cmdlet creates an HCX Compute Profile.


New-HCXComputeProfile -Datastore <HCXApplianceDatastore[]> -DeploymentResource <HCXApplianceCompute[]> [-DistributedSwitch <HCXApplianceDVS[]>] -ManagementNetworkProfile <HCXNetworkProfile> -Name <String> [-Server <HcxServer[]>] -Service {Interconnect | NetworkExtension | WANOptimization | BulkMigration | DisasterRecovery | Vmotion | RAV | OSAssistedMigration} -ServiceCluster <HCXApplianceCompute[]> [-UplinkNetworkProfile <HCXNetworkProfile[]>] [-vMotionNetworkProfile <HCXNetworkProfile>] [-vSphereReplicationNetworkProfile <HCXNetworkProfile>] [-GuestNetworkProfile <HCXNetworkProfile>] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet creates an HCX Compute Profile. You can use the HCXInterconnectTask output to retrieve task details by running the Get-HCXJob cmdlet. You can use the Compute Profile to create a Service Mesh.


NameTypeDescriptionRequired?Pipeline InputDefault Value
DatastoreHCXApplianceDatastore[]Specifies the storage resource for deploying the HCX Interconnect appliances.trueTrue (ByValue)
DeploymentResourceHCXApplianceCompute[]Specifies the compute resource for deploying the HCX Interconnect appliances.trueTrue (ByValue)
DistributedSwitchHCXApplianceDVS[]Specifies the Distributed Virtual Switches that you want to use for the HCX Network Extension services.falseTrue (ByValue)
GuestNetworkProfileHCXNetworkProfileSpecifies the Network Profile with a network that has access to the sentinel workloads.falseTrue (ByValue)
ManagementNetworkProfileHCXNetworkProfileSpecifies the Network Profile by which you can reach the management interface of the vCenter Server system and the ESXi hosts.trueTrue (ByValue)
NameStringSpecifies the name of the HCX Compute Profile.trueFalse
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
ServiceInterconnectServiceType[]Specifies the HCX services that you want to enable. Licenses must be enabled for the RAV and OSAssistedMigration services to work.trueFalse
ServiceClusterHCXApplianceCompute[]Specifies one or more clusters for which you want to enable the selected HCX services.trueTrue (ByValue)
UplinkNetworkProfileHCXNetworkProfile[]Specifies one or more network profiles in such a way that one of the following is true: 1. The Interconnect appliances on the remote site can be reached by the network. 2. The remote site appliances can reach the local Interconnect Appliances by the network. If you have point-to-point networks such as Direct Connect which are not shared across multiple sites, you can skip this, since compute profiles are shared with multiple sites. In such cases, Uplink network profiles can be overridden and specified during the creation of the Interconnect Service Mesh.falseTrue (ByValue)
vMotionNetworkProfileHCXNetworkProfileSpecifies the Network Profile for the vMotion network for HCX Appliances.falseTrue (ByValue)
vSphereReplicationNetworkProfileHCXNetworkProfileSpecifies a Network Profile by which you can reach the vSphere Replication interface of the ESXi hosts.falseTrue (ByValue)

Return Type




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

PS C:\> $managementNetworkProfile = Get-HCXNetworkProfile -Name "myManagementNetworkProfile"
$vmotionNetworkProfile = Get-HCXNetworkProfile -Name "myVmotionNetworkProfile"
$cluster = Get-HCXApplianceCompute -ClusterComputeResource
$datastore = Get-HCXApplianceDatastore -Compute $cluster -Name "myDatastore"
$dvs = Get-HCXInventoryDVS -Compute $cluster -Name "myDVS"
New-HCXComputeProfile -ManagementNetworkProfile $managementNetworkProfile -Name "myComputeProfile" -Service BulkMigration,DisasterRecovery,Interconnect,NetworkExtension,Vmotion,WANOptimization -Datastore $datastore -DeploymentResource $cluster -ServiceCluster $cluster -DistributedSwitch $dvs -vMotionNetworkProfile $vmotionNetworkProfile

Creates an HCX Compute Profile.

Copyright © VMware, Inc. All rights reserved.