< Back
Update-AzureSiteRecoveryProtectionDirection
Post
NAME Update-AzureSiteRecoveryProtectionDirection
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 <string> -RecoveryPlan <ASRRecoveryPlan> [-WaitForCompletion] [<CommonParameters>]
Update-AzureSiteRecoveryProtectionDirection -Direction <string> -RpId <string> [-WaitForCompletion] [<CommonParameters>]
Update-AzureSiteRecoveryProtectionDirection -Direction <string> -ProtectionEntity <ASRProtectionEntity> [-WaitForCompletion] [<CommonParameters>]
Update-AzureSiteRecoveryProtectionDirection -Direction <string> -ProtectionContainerId <string> -ProtectionEntityId <string> [-WaitForCompletion]
[<CommonParameters>]
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
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WaitForCompletion [<SwitchParameter>]
Waits till the operation completes
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RecoveryPlan <ASRRecoveryPlan>
Recovery Plan object
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-RpId <string>
Id of the Recovery Plan
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ProtectionEntity <ASRProtectionEntity>
Protection Entity object
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-ProtectionEntityId <string>
Id of the Protection Entity
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ProtectionContainerId <string>
Id of the Protection Container
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Keywords: azure, azuresm, servicemanagement, management, service, site, recovery
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>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 : {}
Description
-----------
RELATED LINKS
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 <string> -RecoveryPlan <ASRRecoveryPlan> [-WaitForCompletion] [<CommonParameters>]
Update-AzureSiteRecoveryProtectionDirection -Direction <string> -RpId <string> [-WaitForCompletion] [<CommonParameters>]
Update-AzureSiteRecoveryProtectionDirection -Direction <string> -ProtectionEntity <ASRProtectionEntity> [-WaitForCompletion] [<CommonParameters>]
Update-AzureSiteRecoveryProtectionDirection -Direction <string> -ProtectionContainerId <string> -ProtectionEntityId <string> [-WaitForCompletion]
[<CommonParameters>]
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
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WaitForCompletion [<SwitchParameter>]
Waits till the operation completes
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RecoveryPlan <ASRRecoveryPlan>
Recovery Plan object
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-RpId <string>
Id of the Recovery Plan
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ProtectionEntity <ASRProtectionEntity>
Protection Entity object
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-ProtectionEntityId <string>
Id of the Protection Entity
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ProtectionContainerId <string>
Id of the Protection Container
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Keywords: azure, azuresm, servicemanagement, management, service, site, recovery
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>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 : {}
Description
-----------
RELATED LINKS