Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Start-AzureSiteRecoveryCommitFailoverJob

Start-AzureSiteRecoveryCommitFailoverJob

microsoft.azure.commands.recoveryservices.dll

Synopsis

Start the commit failover of the Azure Site Recovery object after failover

Syntax

Start-AzureSiteRecoveryCommitFailoverJob [-RecoveryPlan] [-WaitForCompletion] [<CommonParameters>]

Start-AzureSiteRecoveryCommitFailoverJob [-RpId] [-WaitForCompletion] [<CommonParameters>]

Start-AzureSiteRecoveryCommitFailoverJob [-ProtectionEntity] [-WaitForCompletion] [<CommonParameters>]

Start-AzureSiteRecoveryCommitFailoverJob [-ProtectionContainerId] [-ProtectionEntityId] [-WaitForCompletion] [<CommonParameters>]

Detailed Description

Start the commit failover of the Azure Site Recovery object after failover. This will start the commit and return the job object. Success of the job can be tracked using Get-AzureSiteRecoveryJob

Parameters

-ProtectionContainerId <string>

Id of the Protection Container

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ProtectionEntity <ASRProtectionEntity>

Protection Entity object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-WaitForCompletion <SwitchParameter>

Waits for Completion

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-RecoveryPlan <ASRRecoveryPlan>

Recovery Plan object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-RpId <string>

Id of the Recovery Plan

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ProtectionEntityId <string>

Id of the Protection Entity

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>

Description

-----------

          $PC = Get-AzureSiteRecoveryProtectionContainer; $PE = Get-AzureSiteRecoveryProtectionEntity -ProtectionContainer $PC; Start-AzureSiteRecoveryCommitFailoverJob -ProtectionEntity $PE -Direction PrimaryToRecovery

          ID               : c38eecdc-731c-405b-a61c-08db99aae2fe
          ClientRequestId  : 32ace403-0916-4967-83a1-529176bd6e88-2014-49-06 15:49:24Z-P
          State            : NotStarted
          StateDescription : NotStarted
          StartTime        :
          EndTime          :
          AllowedActions   : {}
          Name             :
          Tasks            : {}
          Errors           : {}