This is an archive version of the document. To get the most up-to-date information, see the current version.

New-VBRSureBackupVM

Short Description

Defines VMs to add to application groups.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

New-VBRSureBackupVM -VM <CObjectInJob> [-Role {DNSServer | GlobalCatalog | MailServer | SQLServer | WebServer | DomainControllerAuthoritative | DomainControllerNonAuthoritative | VBO}] [-TestScript <VBRSureBackupTestScript[]>] [-StartupOptions <VBRSureBackupStartupOptions>] [-Credentials <CCredentials>]  [<CommonParameters>]

Detailed Description

This cmdlet creates the VBRSureBackupVM object that defines VMs that you want to add 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 an application group.

Accepts the CObjectInJob object. To get this object, run the Get-VBRJobObject cmdlet.

True

Named

True (ByValue,
ByProperty
Name)

Role

Specifies a role of VMs that you want to add to the application group. The cmdlet will assign the specified role to VMs. You can specify either of the following roles:

  • DNSServer
  • GlobalCatalog
  • MailServer
  • SQLServer
  • WebServer
  • DomainControllerAuthoritative
  • DomainControllerNonAuthoritative
  • VBO

VBRSureBackupRole[]

False

Named

False

TestScript

Specifies a script for VMs that you want to add 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

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.

CCredentials

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VBRSureBackupVM object that defines VMs that you want to add to the application group.

Examples

New-VBRSureBackupVMExample 1. Defining VM and VM Roles to Add to Application Group

New-VBRSureBackupVMExample 2. Defining Verification Script for VM

New-VBRSureBackupVMExample 3. Defining Startup settings of VMs

Related Commands