Resume-VMReplication

Resumes a virtual machine replication that is in a state of Paused, Error, Resynchronization Required, or Suspended.

Syntax

Resume-VMReplication
      [-VMName] <String[]>
      [-AsJob]
      [-ComputerName <String[]>]
      [-PassThru]
      [-Resynchronize]
      [-ResynchronizeStartTime <DateTime>]
Resume-VMReplication
      [-VM] <VirtualMachine[]>
      [-AsJob]
      [-PassThru]
      [-Resynchronize]
      [-ResynchronizeStartTime <DateTime>]
Resume-VMReplication
      [-VMReplication] <VMReplication[]>
      [-AsJob]
      [-PassThru]
      [-Resynchronize]
      [-ResynchronizeStartTime <DateTime>]

Description

The Resume-VMReplication cmdlet resumes replication of a virtual machine with a replication state of Paused, Error, Resynchronization Required, or Suspended.

Examples

Example 1

PS C:\>Resume-VMReplication VM01

This example resumes replication of virtual machine VM01.

Example 2

PS C:\>Resume-VMReplication VM01 -Resynchronize

This example resynchronizes replication of virtual machine VM01.

Example 3

PS C:\>Resume-VMReplication VM01 -Resynchronize -ResynchronizeStartTime "8/1/2012 05:00 AM"

This example schedules the resynchronization of replication for virtual machine VM01 to start at 5:00 AM on August 1, 2012.

Example 4

PS C:\>Resume-Replication *

This example resumes replication of all virtual machines for which replication is paused.

Required Parameters

-VM

Specifies the virtual machine whose replication is to be resumed.

Type:VirtualMachine[]
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMName

Specifies the name of the virtual machine whose replication is to be resumed.

Type:String[]
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:True
-VMReplication

Specifies a virtual machine replication object representing the virtual machine replication to be resumed.

Type:VMReplication[]
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-AsJob

Specifies that the cmdlet is to be run as a background job.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ComputerName

Specifies one or more Hyper-V hosts on which the virtual machine replication is to be resumed. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer - use "localhost" or a dot (".") to specify the local computer explicitly.

Type:String[]
Position:Named
Default value:.
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Specifies that a VMReplication object is to be passed through to the pipeline representing the virtual machine replication to be resumed.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Resynchronize

Specifies that resynchronization is to be started for the virtual machine. Resynchronization requires significant storage, processor, and network resources. We recommend running this process during off-peak hours. Use the Set-VMReplication cmdlet to specify whether to automatically resynchronize the virtual machine in the future.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResynchronizeStartTime

Specifies when resynchronization should start. If not specified, resynchronization starts immediately. You can schedule the resynchronization to start up to 7 days later.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

None by default; VMReplication if -PassThru is specified.