< Back

Get-AzureRmRecoveryServicesBackupRecoveryPoint

Tue Jan 29, 2019 10:00 pm

NAME Get-AzureRmRecoveryServicesBackupRecoveryPoint



SYNOPSIS

Gets the recovery points for a backed up item.





SYNTAX

Get-AzureRmRecoveryServicesBackupRecoveryPoint [[-StartDate] <DateTime>] [[-EndDate] <DateTime>] [-Item] <ItemBase> [-DefaultProfile

<IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmRecoveryServicesBackupRecoveryPoint [-RecoveryPointId] <String> [-Item] <ItemBase> [[-KeyFileDownloadLocation] <String>]

[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmRecoveryServicesBackupRecoveryPoint cmdlet gets the recovery points for a backed up Azure Backup item. After an item has been

backed up, an AzureRmRecoveryServicesBackupRecoveryPoint object has one or more recovery points.



Set the vault context by using the Set-AzureRmRecoveryServicesVaultContext cmdlet before you use the current cmdlet.





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



-EndDate <DateTime>

Specifies the end of the date range.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Item <ItemBase>

Specifies the item for which this cmdlet gets recovery points. To obtain an AzureRmRecoveryServicesBackupItem object, use the

Get-AzureRmRecoveryServicesBackupItem cmdlet.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-KeyFileDownloadLocation <String>

Specifies the location to download the input file to restore the KeyVault key for an encrypted virtual machine.



Required? false

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryPointId <String>

Specifies the recovery point ID.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-StartDate <DateTime>

Specifies the start of the date range.



Required? false

Position? 0

Default value None

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



INPUTS

ItemBase

Parameter 'Item' accepts value of type 'ItemBase' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase





System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.RecoveryPointBase]







NOTES









Example 1: Get recovery points from the last week for an item



PS C:\\> $StartDate = (Get-Date).AddDays(-7)

PS C:\\> $EndDate = Get-Date

PS C:\\> $Container = Get-AzureRmRecoveryServicesBackupContainer -ContainerType AzureVM -Status Registered -Name "V2VM"

PS C:\\> $BackupItem = Get-AzureRmRecoveryServicesBackupItem -ContainerType AzureVM -WorkloadType AzureVM

PS C:\\> $RP = Get-AzureRmRecoveryServicesBackupRecoveryPoint -Item $BackupItem -StartDate $Startdate.ToUniversalTime() -EndDate

$Enddate.ToUniversalTime()



The first command gets the date from seven days ago, and then stores it in the $StartDate variable.



The second command gets today's date, and then stores it in the $EndDate variable.



The third command gets AzureVM backup containers, and stores them in the $Containers variable.



The fourth command gets the backup item named V2VM, and then stores it in the $BackupItem variable.



The last command gets an array of recovery points for the item in $BackupItem, and then stores them in the $RP variable.







RELATED LINKS

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

Get-AzureRmRecoveryServicesBackupContainer

Get-AzureRmRecoveryServicesBackupItem