< Back

Update-AzureRmSiteRecoveryProtectionDirection

Thu Apr 04, 2019 5:41 am

NAME Update-AzureRmSiteRecoveryProtectionDirection



SYNOPSIS

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





SYNTAX

Update-AzureRmSiteRecoveryProtectionDirection [-DefaultProfile <IAzureContextContainer>] -Direction {PrimaryToRecovery | RecoveryToPrimary}

-ProtectionEntity <ASRProtectionEntity> [<CommonParameters>]



Update-AzureRmSiteRecoveryProtectionDirection [-DefaultProfile <IAzureContextContainer>] -Direction {PrimaryToRecovery | RecoveryToPrimary}

-RecoveryPlan <ASRRecoveryPlan> [<CommonParameters>]



Update-AzureRmSiteRecoveryProtectionDirection [-DefaultProfile <IAzureContextContainer>] -Direction {PrimaryToRecovery | RecoveryToPrimary}

-ReplicationProtectedItem <ASRReplicationProtectedItem> [<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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Direction <String>

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



- PrimaryToRecovery



- RecoveryToPrimary



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProtectionEntity <ASRProtectionEntity>

Specifies the protection entity object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-RecoveryPlan <ASRRecoveryPlan>

Specifies a recovery plan object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ReplicationProtectedItem <ASRReplicationProtectedItem>





Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

ASRProtectionEntity

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



ASRRecoveryPlan

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



ASRReplicationProtectedItem

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





OUTPUTS

Microsoft.Azure.Commands.SiteRecovery.ASRJob







NOTES











RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ndirection