New-HCXMobilityGroup Command | Vmware PowerCLI Reference

New-HCXMobilityGroup

This cmdlet creates an HCX mobility group request.

Syntax

New-HCXMobilityGroup
-Name < String >
[-GroupConfiguration < HCXMobilityGroupConfiguration > ]
[-Migration < HCXMobilityGroupMigration[] > ]
[-Server < HcxServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Name String named
Specifies the name of an HCX mobility group.
optional GroupConfiguration HCXMobilityGroupConfiguration named
Specifies the common set of configurations that you want to apply to all virtual machines in a group while doing the migration. If not specified explicitly at Virtual Machine Configuration.
optional Migration HCXMobilityGroupMigration[] named
Specifies the array of a virtual machine and its configurations that are part of the HCX mobility group.
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.

Output

VMware.VimAutomation.Hcx.Types.V1.HCXMobilityGroup

Examples

Example 1

New-HCXMobilityGroup -Name "MyFirstMobilityGroup" -GroupConfiguration $mobilityGroupConfigiuration -Migration $migrations

Creates a new mobility group request object with default mobility group configurations and a list of HCX migration objects.

Example 2

New-HCXMobilityGroup -Name "MyFirstMobilityGroup" -Migration $migrations

Creates a new mobility group request object with an out-default group configuration.

Related Commands

HCXMobilityGroup

This cmdlet retrieves a list of HCX mobility groups.

This cmdlet creates an HCX mobility group request.

This cmdlet modifies the HCX mobility group.

This cmdlet validates an HCX mobility group object.

HCXMobilityGroupConfiguration

This cmdlet creates an HCX mobility group configuration request.

This cmdlet updates the HCX mobility group configurations.

HCXMobilityGroupMigration

This cmdlet starts the HCX Mobility Group migrations.

This cmdlet stops the migration of all virtual machines in the mobility group.