Set-HCXMobilityGroup
This cmdlet modifies the HCX mobility group.
Syntax
-AddMigration
-Migration <HCXMobilityGroupMigration[]>
-MobilityGroup <HCXMobilityGroup>
[-Server <HcxServer[]>]
[CommonParameters]
-Migration <HCXMobilityGroupMigration[]>
-MobilityGroup <HCXMobilityGroup>
[-Server <HcxServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
SwitchParameter | named |
|
Indicates that you can add the migrations to the HCX mobility group. | required |
|
HCXMobilityGroupMigration[] | named |
|
Specifies the array of a virtual machine and its configurations that are part of the HCX mobility group. | required |
|
HCXMobilityGroup | named |
|
Specifies the HCX mobility group that you want to update. | optional |
|
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. |
-Migration
<HCXMobilityGroupMigration[]>
-MobilityGroup <HCXMobilityGroup>
-RemoveMigration
[-Server <HcxServer[]>]
[CommonParameters]
-MobilityGroup <HCXMobilityGroup>
-RemoveMigration
[-Server <HcxServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
HCXMobilityGroupMigration[] | named |
|
Specifies the array of a virtual machine and its configurations that are part of the HCX mobility group. | required |
|
HCXMobilityGroup | named |
|
Specifies the HCX mobility group that you want to update. | required |
|
SwitchParameter | named |
|
Indicates that you want to remove the migrations from an HCX mobility group. | optional |
|
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. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
HCXMobilityGroup | named |
|
Specifies the HCX mobility group that you want to update. | required |
|
String | named |
|
Specifies the name of an HCX mobility group. | optional |
|
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
Set-HCXMobilityGroup -MobilityGroup $mobilityGroup -Migration $newHCXMobilityGroupMigration -AddMigration
Adds $newHCXMobilityMigration objects to the existing HCX mobility group.
Example 2
Set-HCXMobilityGroup -MobilityGroup $mobilityGroup -Migration $existingHCXMobilityGroupMigration -RemoveMigration
Removes $existingHCXMobilityGroupMigration objects from the existing HCX mobility group.
Example 3
Set-HCXMobilityGroup -MobilityGroup $mobilityGroup -Name $newHCXMobilityGroupName
Updates the name of the existing HCX mobility group to $newHCXMobilityGroupName.
Related Commands
HCXMobilityGroup
This cmdlet retrieves a list of HCX mobility groups.
This cmdlet modifies the HCX mobility group.
This cmdlet validates an HCX mobility group object.
This cmdlet creates an HCX mobility group request.
HCXMobilityGroupConfiguration
This cmdlet updates the HCX mobility group configurations.
This cmdlet creates an HCX mobility group configuration request.
HCXMobilityGroupMigration
This cmdlet starts the HCX Mobility Group migrations.
This cmdlet stops the migration of all virtual machines in the mobility group.