question

MarkAllison avatar image
0 Votes"
MarkAllison asked Prrudram-MSFT edited

How to find times of recovery services vault events?

I have some VMs being backed up with Recovery Services Vault. I would like to see more detailed information of when a snapshot started and completed, and also the transfer to vault start and stop times.

azure-virtual-machinesazure-virtual-machines-backup
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Prrudram-MSFT avatar image
0 Votes"
Prrudram-MSFT answered Prrudram-MSFT commented

Hello @MarkAllison,

Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

As a backup admin, you can use Backup center as a single pane of glass to monitor your jobs and backup inventory on a day-to-day basis. For details refer to backup-center-monitor-operate

You can see a job start and stop time, but we don't have snapshot start/end time columns in the backup jobs metrics.
198659-image.png

Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.



image.png (364.3 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the response, so it's not possible to obtain from the API or PowerShell? I did some digging in the PowerShell cmdlets and found this:

Get-AzRecoveryServicesBackupItem

This returns a property called LatestRecoveryPoint. When looking at this time, it is much before the backup completion time, so I am assuming this is the completion time of the snapshot. Would you agree? This is the info I'm looking for.

0 Votes 0 ·

Hello @MarkAllison,

I too have looked up at Azure PowerShell as well as azure resource graph explorer, didn't find anything on snapshot time. Get-AzRecoveryServicesBackupRecoveryPoint gives the details of last recovery point successful backups.

LatestRecoveryPoint is the RP from last successful backup.

Get-AzRecoveryServicesBackupJob gives some details like if a job is in progress and when it started etc., but we don't have a property for snapshot time. Adding the document link for your reference.
https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesbackupjob?view=azps-7.5.0#code-try-1

I tried below as well

$vault = Get-AzRecoveryServicesVault -ResourceGroupName "Management_Migration-Resources" -Name "MM-RecoveryServicesVault"
$startDate = (Get-Date).AddDays(-7)
$endDate = Get-Date
$Container = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVM -Status Registered -FriendlyName "APP-BCKND-VM" -VaultId $vault.ID
$BackupItem = Get-AzRecoveryServicesBackupItem -Container $Container -WorkloadType AzureVM -VaultId $vault.ID
$rp = Get-AzRecoveryServicesBackupRecoveryPoint -Item $backupItem -StartDate $startdate.ToUniversalTime() -EndDate $enddate.ToUniversalTime() -VaultId $vault.ID

199794-image.png


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.



1 Vote 1 ·
image.png (121.9 KiB)