New-VBRSureBackupVM
Short Description
Defines VMs to add to the SureBackup job or to the application group.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Define VMs that the cmdlet will add to the SureBackup job or to the application group using a job.
New-VBRSureBackupVM -VM <CObjectInJob> [-Role <VBRSureBackupRole[]>] [-TestScript <VBRSureBackupTestScript[]>] [-StartupOptions <VBRSureBackupStartupOptions>] [-Credentials <CCredentials>] [-Exclude] [<CommonParameters>] |
- Define VMs that the cmdlet will add to the SureBackup job and to the application group using a restore point.
New-VBRSureBackupVM -RestorePoint <COib> [-Role <VBRSureBackupRole[]>] [-TestScript <VBRSureBackupTestScript[]>] [-StartupOptions <VBRSureBackupStartupOptions>] [-Credentials <CCredentials>] [-Exclude] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRSureBackupVM object that defines VMs that you want to add to the SureBackup job or to the application group.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
VM | Specifies VMs added to a job. The cmdlet will add these VMs to the SureBackup job or to the application group. | Accepts the CObjectInJob object. To get this object, run the Get-VBRJobObject cmdlet. | True | Named | True (ByValue, |
RestorePoint | Specifies VMs added to a restore point. The cmdlet will add these VMs to the SureBackup job or to the application group. | Accepts the COib object. To get this object, run the Get-VBRRestorePoint cmdlet. | True | Named | True (ByValue, ByPropertyName) |
Role | Specifies a role of VMs that you want to add to the SureBackup job or to the application group. The cmdlet will assign the specified role to VMs. You can specify either of the following roles:
| VBRSureBackupRole[] | False | Named | False |
StartupOptions | Specifies startup settings for VMs that you want to add to the application group. Veeam Backup & Replication will apply these startup options to VMs. | Accepts the VBRSureBackupStartupOptions object. To get this object, run the New-VBRSureBackupStartupOptions cmdlet. | False | Named | False |
Credentials | Specifies credentials to access VMs and run verification scripts. If you do not specify this parameter, the cmdlet will use the account under which Veeam Backup & Replication is currently running. | Accepts the CCredentials object. To get this object, run the Get-VBRCredentials cmdlet. | False | Named | False |
TestScript | Specifies a script for VMs that you want to add to the SureBackup job or to the application group. Veeam Backup & Replication will run this script to verify the role of VMs. | Accepts the VBRSureBackupTestScript[] object. To get this object, run the New-VBRSureBackupTestScript cmdlet. | False | Named | False |
Exclude | Defines that the cmdlet will exclude VMs from the SureBackup job. You can exclude VMs from the SureBackup job only if they were added through the linked backup or replication job. | SwitchParamter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRSureBackupVM object that defines VMs added to the SureBackup job or the application group.
Examples
Example 1. Defining VM and VM Roles to Add to Application Group Using Job
This example shows how to define an application group settings. The cmdlet will add Winsrv2047 VM to the application group using a job and will assign the mail server role to this VM.
Perform the following steps:
|
Example 2. Defining VM and VM Roles to Add to Application Group Using Restore Point
This example shows how to define an application group settings. The cmdlet will add Winsrv2047 VM to the application group using a restore point and will assign the mail server role to this VM.
Perform the following steps:
|
Example 3. Defining Verification Script for VM
This example shows how to define the Winsrv2047 VM to add to the application group. The cmdlet will define the Winsrv2047 VM with the following settings:
Perform the following steps:
|
Example 4. Defining Startup settings of VMs
This example shows how to define the Winsrv2047 VM to add to the application group. The cmdlet will define the Winsrv2047 VM with the following settings:
Perform the following steps:
|
Example 5. Excluding VMs From SureBackup Job
This example shows how to exclude the Winsrv2047 VM from the SureBackup job.
Perform the following steps:
|
Related Commands