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 the Add-VBRViJobObject or the Add-VBRHvJobObject cmdlets. |
Applies to
Platform: VMware
Syntax
This cmdlet provides parameter sets that allow you to:
- Add VMs to existing backup, replication or copy job.
Add-VBRJobObject -Job <CBackupJob> -Server <CHost> -Objects <String[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] |
- Add VM containers to existing backup, replication or copy job.
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 | Type | Required | Position | Accept |
---|---|---|---|---|---|
Job | Specifies the job you want to add VMs to. | Accepts the CBackupJob object. To get this object, run the Get-VBRJob cmdlet. | True | 1 | False |
Server | Specifies the host where the VMs or VM containers you want to add reside. | Accepts the CHost object. To get this object, run the Get-VBRServer cmdlet. | True | 2 | 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. | String[] | True | 3 | True (ByValue, |
Entities | Specifies the VMs or VM containers you want to add to the job. You can assign multiple VMs to this object. | Accepts the CEntity[] object. To get this object, run the Find-VBRViEntity or Find-VBRHvEntity cmdlet. | True | 3 | True (ByValue, |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Adding VM to Existing Job [Using Variable]
This example shows how to add the vm3 VM to the Backup Job job.
Perform the following steps:
|
Example 2. Adding VM to Existing Job [Using Pipeline]
This example shows how to add the vm3 VM to the Backup Job job.
Perform the following steps:
|
Related Commands