Editar

Partilhar via


Get-AzRecoveryServicesAsrRecoveryPoint

Gets the available recovery points for a replication protected item.

Syntax

Get-AzRecoveryServicesAsrRecoveryPoint
   -ReplicationProtectedItem <ASRReplicationProtectedItem>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRecoveryServicesAsrRecoveryPoint
   -Name <String>
   -ReplicationProtectedItem <ASRReplicationProtectedItem>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzRecoveryServicesAsrRecoveryPoint cmdlet gets the list of available recovery points for a replication protected item. The list is in order from latest to oldest Recovery Points, the first one being the Latest Processed (lowest RTO).

Examples

Example 1

$RecoveryPoints = Get-AzRecoveryServicesAsrRecoveryPoint -ReplicationProtectedItem $ReplicationProtectedItem

Gets recovery points for the specified ASR replication protected item. $RecoveryPoints[0] will have the Latest Processed Recovery Point (for Lowest RTO).

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of the recovery point to get.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ReplicationProtectedItem

Specifies the Azure Site Recovery Replication Protected Item object for which to get the list of available recovery points.

Type:ASRReplicationProtectedItem
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

ASRReplicationProtectedItem

Outputs

ASRRecoveryPoint