Set-HCXMigration Command | Vmware PowerCLI Reference

Set-HCXMigration

This cmdlet modifies the HCX migrations. You can use the cmdlet to either abort a migration or change the schedule for a bulk migration.

Syntax

Set-HCXMigration
-Abort
-Migration < HCXMigration >
[-ProgressAction < ActionPreference > ]
[-Server < HcxServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Abort SwitchParameter named
Indicates that you can cancel the migration.
required
Migration HCXMigration named
  • pipeline
Specifies the HCX migration that you want to update.
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.

Output

VMware.VimAutomation.Hcx.Types.V1.HCXMigration

Examples

Example 1

Set-HCXMigration -ScheduleStartTime '01/18/2019 3:57 PM' -ScheduleEndTime '01/18/2019 4:57 PM' -Migration $migration

Modifies the schedule start time and schedule end time for the given migration. You can use the cmdlet in case of bulk migration.

Example 2

Set-HCXMigration -Abort -Migration $migration

Aborts the given migration and you can use it in case of bulk migration.

Example 3

Set-HCXMigration -Migration $migration -RemoveSwitchOver

Removes the schedule window and you can use it in case of bulk migration.

Related Commands

HCXMigration

This cmdlet retrieves the list of HCX migrations.

This cmdlet creates an HCX migration request.

This cmdlet modifies the HCX migrations.

This cmdlet starts the HCX migrations.

This cmdlet validates an HCX migration request.