Add-VBRvCloudJobObject

Short Description

Adds VMs to vCD backup jobs.

Applies to

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

Syntax

Add-VBRvCloudJobObject -Entities <IVcdItem[]> [-Force] -Job <CBackupJob>  [<CommonParameters>]

Detailed Description

This cmdlet adds VMs to vCD backup jobs.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Job

Specifies a vCD backup job. The cmdlet will add VMs to this vCD backup job.

Accepts the CBackupJob object. To create this object, run the Get-VBRJob cmdlet.

True

Named

False

Entities

Specifies an array of VMs that you want to add to a vCD backup job.

Accepts the IVcdItem[] object. To create this object, run the Find-VBRvCloudEntity cmdlet.

True

Named

True (ByPropertyName, ByValue)

Force

Defines that the cmdlet will add VMs to a vCD backup job without showing warnings in the PowerShell console.

SwitchParameter

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 VBRvCloudJobObject object that contains settings of VMs to vCD backup job.

Examples

Adding VMs to vCD Backup Job

This example shows how to add the WinSrv2907 VM to the Cloud backup job vCD backup job.

$job = Get-VBRJob -Name "Cloud backup job"

$vm = Find-VBRvCloudEntity -Name "WinSrv2907"

Add-VBRvCloudJobObject -Job $job -Entities $vm

Perform the following steps:

  1. Run the Get-VBRJob cmdlet. Specify the Name parameter value. Save the result to the $job variable.
  2. Run the Find-VBRvCloudEntity cmdlet. Specify the Name parameter value. Save the result to the $vm variable.
  3. Run the Add-VBRvCloudJobObject cmdlet. Set the $job variable as the Job parameter value. Set the $vm variable as the Entities parameter value.

Related Commands