Add-VBRJobObject (obsolete)
Short Description
Adds VMs to existing job.
Note |
This cmdlet is obsolete. The cmdlet still works, but it is recommended to create a new backup job using Add-VBRViJobObject or Add-VBRHvJobObject cmdlets. |
Applies to
Platform: VMware
Syntax
Add-VBRJobObject [-Job] <CBackupJob> [-Server] <CHost> [-Objects] <String[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] -OR- Add-VBRJobObject [-Job] <CBackupJob> [-Server] <CHost> [-Entities] <CEntity[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] |
Detailed Description
This cmdlet allows you to add VMs or VM containers to existing backup, replication or copy job.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
Job | Specifies the job you want to add VMs to. | True | 1 | False | False |
Server | Specifies the host where the VMs or VM containers you want to add reside. | True | 2 | False | False |
Objects | Specifies the string with the names of VMs you want to add to the job. You can assign multiple VMs to this object. | True | 3 | True (ByValue, | False |
Entities | Specifies the VMs or VM containers you want to add to the job. You can assign multiple VMs to this object. | True | 3 | True (ByValue, | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Example 1
This command adds a VM named "vm3" to a job represented by $job variable. The VM is located on the server represented by the $server variable. The job object and the server object are obtained with Get-VBRJob and Get-VBRServer and assigned to the variables accordingly beforehand.
Example 2
This command adds a VM named "vm3" to the job represented by the $job variable. The VM is obtained with Find-VBRViEntity and piped down. The VM is located on the server represented by the $server variable. The job object and the server object are obtained with Get-VBRJob and Get-VBRServer and assigned to the variables accordingly beforehand.
Related Commands