Add-VBRvCloudJobObject
Short Description
Adds VMs to Cloud Director backup jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRvCloudJobObject -Job <CBackupJob> -Entities <IVcdItem[]> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet adds VMs to Cloud Director backup jobs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Entities |
Specifies an array of VMs that you want to add to a Cloud Director backup job.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Force |
Defines that the cmdlet will add VMs to a Cloud Director backup job without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Job |
Specifies a Cloud Director backup job. The cmdlet will add VMs to this Cloud Director backup job.
Accepts the |
|
True |
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 Cloud Director backup job.
Examples
Adding VMs to Cloud Director Backup Job
This example shows how to add the WinSrv2907 VM to the Cloud backup job Cloud Director backup job.
|
$job = Get-VBRJob -Name "Cloud backup job" $vm = Find-VBRvCloudEntity -Name "WinSrv2907" Add-VBRvCloudJobObject -Job $job -Entities $vm |
Perform the following steps:
- Run the
Get-VBRJobReturns existing jobs. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify theNameparameter value. Save the result to the$vmvariable. - Run the
Add-VBRvCloudJobObjectcmdlet. Set the$jobvariable as theJobparameter value. Set the$vmvariable as theEntitiesparameter value.
Related Commands
Get-VBRJobReturns existing jobs.Find-VBRvCloudEntityLooks for Cloud Director entities.