Update-AzureRmSiteRecoveryProtectionDirection

Updates the source and target server for the protection of a Site Recovery object.

Syntax

Update-AzureRmSiteRecoveryProtectionDirection
      -ProtectionEntity <ASRProtectionEntity>
      -Direction <String>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Update-AzureRmSiteRecoveryProtectionDirection
      -RecoveryPlan <ASRRecoveryPlan>
      -Direction <String>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Update-AzureRmSiteRecoveryProtectionDirection
      -ReplicationProtectedItem <ASRReplicationProtectedItem>
      -Direction <String>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

The Update-AzureRmSiteRecoveryProtectionDirection cmdlet updates the source and target server for the protection of an Azure Site Recovery object after the completion of a commit failover operation.

Required Parameters

-Direction

Specifies the direction of the commit. The acceptable values for this parameter are:

  • PrimaryToRecovery
  • RecoveryToPrimary
Type:String
Parameter Sets:PrimaryToRecovery, RecoveryToPrimary
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProtectionEntity

Specifies the protection entity object.

Type:Microsoft.Azure.Commands.SiteRecovery.ASRProtectionEntity
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryPlan

Specifies a recovery plan object.

Type:Microsoft.Azure.Commands.SiteRecovery.ASRRecoveryPlan
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ReplicationProtectedItem
Type:Microsoft.Azure.Commands.SiteRecovery.ASRReplicationProtectedItem
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRProtectionEntity

Parameter 'ProtectionEntity' accepts value of type 'ASRProtectionEntity' from the pipeline

Inputs

ASRRecoveryPlan

Parameter 'RecoveryPlan' accepts value of type 'ASRRecoveryPlan' from the pipeline

Inputs

ASRReplicationProtectedItem

Parameter 'ReplicationProtectedItem' accepts value of type 'ASRReplicationProtectedItem' from the pipeline

Outputs

Microsoft.Azure.Commands.SiteRecovery.ASRJob