PowerCLI Reference

Test-HCXMobilityGroup

Synopsis

This cmdlet validates an HCX mobility group object.

Syntax

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

Test-HCXMobilityGroup -Id <String> [-Server <HcxServer[]>] [<CommonParameters>]

Test-HCXMobilityGroup -MobilityGroup <HCXMobilityGroup> [-Server <HcxServer[]>] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet validates an HCX mobility group object.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
GroupConfigurationHCXMobilityGroupConfigurationSpecifies a common set of configurations that you can apply to all virtual machines in a group while doing the migration.falseTrue (ByValue)
IdStringSpecifies the ID of the mobility group which you can use to identify any group uniquely.trueFalse
MigrationHCXMobilityGroupMigration[]Specifies the array of a virtual machine and its configurations that are part of the mobility group.falseTrue (ByValue)
MobilityGroupHCXMobilityGroupSpecifies a full mobility group definition.trueFalse
NameStringSpecifies the name of the mobility group.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

Return Type

VMware.VimAutomation.Hcx.Types.V1.HCXMobilityGroup

Notes

Examples

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

PS C:\> Test-HCXMobilityGroup -Name "mobilityGroupName"

Validates the mobility group configurations for a given mobility group name. You must create the mobility group before validating with the Name parameter.

-------------------------- Example 2 --------------------------

PS C:\> Test-HCXMobilityGroup -MobilityGroup $mobilityGroup

Validates the specified mobility group configurations.

-------------------------- Example 3 --------------------------

PS C:\> Test-HCXMobilityGroup -Id "mobilityGroupId"

Validates the mobility group configurations for the given mobility group ID. You must create the mobility group before validating with the Id parameter.


Copyright © VMware, Inc. All rights reserved.