Start-​Azure​Rm​Recovery​Services​Asr​Commit​Failover​Job

Starts the commit failover action for a Site Recovery object.

Syntax

Start-AzureRmRecoveryServicesAsrCommitFailoverJob
     -RecoveryPlan <ASRRecoveryPlan>
     [-Confirm]
     [-WhatIf]
     [<CommonParameters>]
Start-AzureRmRecoveryServicesAsrCommitFailoverJob
     -ReplicationProtectedItem <ASRReplicationProtectedItem>
     [-Confirm]
     [-WhatIf]
     [<CommonParameters>]

Description

The Start-AzureRmRecoveryServicesAsrCommitFailoverJob cmdlet starts the commit failover process for an Azure Site Recovery object after a failover operation.

Examples

Example 1

PS C:\> $currentJob = Start-AzureRmRecoveryServicesAsrCommitFailoverJob -RecoveryPlan $RP

Starts the commit failover for the specified recovery plan and returns the ASR job used to track the operation.

Required Parameters

-RecoveryPlan

Specifies an ASR recovery plan object.

Type:ASRRecoveryPlan
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ReplicationProtectedItem

Specifies an ASR replication protected item object.

Type:ASRReplicationProtectedItem
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem

Outputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob