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.
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.
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.
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.
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.
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

Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.
23 people are following this question.