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
 

Update-AzureSiteRecoveryProtectionDirection

Update-AzureSiteRecoveryProtectionDirection

microsoft.azure.commands.recoveryservices.dll

Synopsis

Update the source and target server for the protection (Reverse Replicate) for Azure Site recovery Object after the commitfailover is completed

Syntax

Update-AzureSiteRecoveryProtectionDirection [-Direction] [-RecoveryPlan] [-WaitForCompletion] [<CommonParameters>]

Update-AzureSiteRecoveryProtectionDirection [-Direction] [-RpId] [-WaitForCompletion] [<CommonParameters>]

Update-AzureSiteRecoveryProtectionDirection [-Direction] [-ProtectionEntity] [-WaitForCompletion] [<CommonParameters>]

Update-AzureSiteRecoveryProtectionDirection [-Direction] [-ProtectionContainerId] [-ProtectionEntityId] [-WaitForCompletion] [<CommonParameters>]

Detailed Description

Update the source and target server for the protection for Azure Site recovery Object (Reverse Replicate) after the commitfailover is completed . This is async cmdlet which will only start the operation and return the job object.

Parameters

-Direction <string>

Direction of the failover, either PrimaryToRecovery or RecoveryToPrimary

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-WaitForCompletion <SwitchParameter>

Waits till the operation completes

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

-ProtectionEntity <ASRProtectionEntity>

Protection Entity object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

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

-ProtectionContainerId <string>

Id of the Protection Container

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

-----------

          Update-AzureSiteRecoveryProtectionDirection -ProtectionEntity $PE -Direction RecoveryToPrimary

          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           : {}