Help Center
Choose product document...
Veeam Backup & Replication 9.5 Update 4
PowerShell Reference

Administering Hyper-V SureBackup Job

This example shows how to set us a SureBackup job for verifying a Microsoft Exchange server backups. The SureBackup job will use an application group containing the DC and the DNS server and a linked job that backs up the Microsoft Exchange server. The virtual lab and the application group are created in the previous sections: Working with Hyper-V Virtual Lab and Working with Hyper-V Application Group. The SureBackup job will be scheduled to run after the backup job.

Create a SureBackup Job

To create a SureBackup job, you will need to perform the following steps:

  1. Get the 'Microsoft Exchange Vlab' virtual lab with Get-VSBHvVirtualLab and assign it to a variable.
  2. Get the 'Production Application Group' application group with Get-VSBApplicationGroup and assign it to a variable.
  3. Get the 'Microsoft Exchange Server Backup' backup job with Get-VBRJob and assign it to a variable.
  4. Create the SureBackup job with Add-VSBHvJob. Set the virtual lab, the application group and the linked job using the created variables.
  5. Configure a job schedule using Set-VSBJobSchedule. Set it to run after the 'Microsoft Exchange Server Backup' backup job backup job.

// Get the virtual lab:

PS C:\PS> $vlab = Get-VSBHvVirtualLab -Name "Microsoft Exchange Vlab"


// Get the application group:

PS C:\PS> $appgroup = Get-VSBApplicationGroup -Name "Production Application Group"


// Get the backup job:

PS C:\PS> $backupjob = Get-VBRJob -Name "Microsoft Exchange Server Backup"


// Get the backup job and create the SureBackup job:

PS C:\PS> Add-VSBHvJob -Name "Microsoft Exchange Verification" -VirtualLab $vlab -AppGroup $appgroup -LinkedJob $backupjob


// Get the application group:

PS C:\PS> Get-VSBJob -Name "Microsoft Exchange Verification" | Set-VSBJobSchedule -After -AfterJob $backupjob

Look for the SureBackup Job

Run Get-VSBJob to get the created SureBackup job.

PS C:\PS> Get-VSBJob -Name "Microsoft Exchange Verification"

Remove the SureBackup Job

Run Remove-VSBJob to remove the SureBackup job.

PS C:\PS> Get-VSBJob -Name "Microsoft Exchange Verification"| Remove-VSBJob

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Explorers User Guide

Backup and Restore of SQL Server Databases

Veeam Plug-ins for Enterprise Applications

PowerShell Reference

Veeam Explorers PowerShell Reference

RESTful API Reference

Required Permissions

Veeam Availability for Nutanix AHV

Veeam Backup for Microsoft Office 365 Documentation

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation