New-HCXComputeProfile Command | Vmware PowerCLI Reference

New-HCXComputeProfile

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.

Syntax

New-HCXComputeProfile
-Datastore < HCXApplianceDatastore[] >
-DeploymentResource < HCXApplianceCompute[] >
-ManagementNetworkProfile < HCXNetworkProfile >
-Name < String >
-ServiceCluster < HCXApplianceCompute[] >
[-DistributedSwitch < HCXApplianceDVS[] > ]
[-GuestNetworkProfile < HCXNetworkProfile > ]
[-ProgressAction < ActionPreference > ]
[-Server < HcxServer[] > ]
[-UplinkNetworkProfile < HCXNetworkProfile[] > ]
[-vMotionNetworkProfile < HCXNetworkProfile > ]
[-vSphereReplicationNetworkProfile < HCXNetworkProfile > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Datastore HCXApplianceDatastore[] named
  • pipeline
Specifies the storage resource for deploying the HCX Interconnect appliances.
required
DeploymentResource HCXApplianceCompute[] named
  • pipeline
Specifies the compute resource for deploying the HCX Interconnect appliances.
required
ManagementNetworkProfile HCXNetworkProfile named
  • pipeline
Specifies the Network Profile by which you can reach the management interface of the vCenter Server system and the ESXi hosts.
required
Name String named
Specifies the name of the HCX Compute Profile.
required
Service InterconnectServiceType[] named
Specifies the HCX services that you want to enable. Licenses must be enabled for the RAV and OSAssistedMigration services to work.
required
ServiceCluster HCXApplianceCompute[] named
  • pipeline
Specifies one or more clusters for which you want to enable the selected HCX services.
optional DistributedSwitch HCXApplianceDVS[] named
  • pipeline
Specifies the Distributed Virtual Switches that you want to use for the HCX Network Extension services.
optional GuestNetworkProfile HCXNetworkProfile named
  • pipeline
Specifies the Network Profile with a network that has access to the sentinel workloads.
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 UplinkNetworkProfile HCXNetworkProfile[] named
  • pipeline
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.
optional vMotionNetworkProfile HCXNetworkProfile named
  • pipeline
Specifies the Network Profile for the vMotion network for HCX Appliances.
optional vSphereReplicationNetworkProfile HCXNetworkProfile named
  • pipeline
Specifies a Network Profile by which you can reach the vSphere Replication interface of the ESXi hosts.

Output

VMware.VimAutomation.Hcx.Types.V1.HCXInterconnectTask

Examples

Example 1

$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.

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.