Add-VBRApplicationGroup
Short Description
Creates application groups for SureBackup jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRApplicationGroup -VM <VBRSureBackupVM[]> [-Name <String>] [-Description <String>] [<CommonParameters>] |
Detailed Description
This cmdlet creates application groups for SureBackup jobs.
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Description
|
Specifies a description of an application group. The cmdlet will create the application group with this description.
|
String
|
False
|
Named
|
False
|
|
Name
|
Specifies a name of an application group. The cmdlet will create the application group with this name.
|
String
|
False
|
Named
|
False
|
|
VM
|
Specifies an array of VMs. The cmdlet will add these VMs to the application group.
Accepts the VBRSureBackupVM[] object. To get this object, run the New-VBRSureBackupVMDefines VMs to add to the SureBackup job or to the application group. cmdlet.
|
VBRSureBackupVM[]
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRApplicationGroup object that contains settings of application groups for SureBackup jobs.
Examples
Example 1. Creating Application Group
|
This example shows how to create an application group with default name and description.
|
$job = Get-VBRJob -Name "Exchange backup"
$backupobject = Get-VBRJobObject -Job $job
$vm = New-VBRSureBackupVM -VM $backupobject
Add-VBRApplicationGroup -VM $vm |
Perform the following steps:
- Run the
Get-VBRJobReturns existing jobs. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
- Run the
Get-VBRJobObjectReturns VMs or VM containers of specific jobs. cmdlet. Set the $job variable as the Job parameter value. Save the result to the $backupobject variable.
- Run the
New-VBRSureBackupVMDefines VMs to add to the SureBackup job or to the application group. cmdlet. Set the $backupobject variable as the VM parameter value. Save the result to the $vm variable.
- Run the
Add-VBRApplicationGroup cmdlet. Set the $vm variable as the VM parameter value.
|
Example 2. Creating Application Group with Name
|
This example shows how to create an application group with the Microsoft Exchange Appgroup name.
|
$job = Get-VBRJob -Name "Exchange backup"
$backupobject = Get-VBRJobObject -Job $job
$vm = New-VBRSureBackupVM -VM $backupobject
Add-VBRApplicationGroup -VM $vm -Name "Microsoft Exchange Appgroup" |
Perform the following steps:
- Run the
Get-VBRJobReturns existing jobs. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
- Run the
Get-VBRJobObjectReturns VMs or VM containers of specific jobs. cmdlet. Set the $job variable as the Job parameter value. Save the result to the $backupobject variable.
- Run the
New-VBRSureBackupVMDefines VMs to add to the SureBackup job or to the application group. cmdlet. Set the $backupobject variable as the VM parameter value. Save the result to the $vm variable.
- Run the
Add-VBRApplicationGroup cmdlet. Set the $vm variable as the VM parameter value. Specify the Name parameter value.
|
Example 3. Creating Application Group with Name and Description
|
This example shows how to create an application group with the Microsoft Exchange Appgroup name and the Application group for Exchange-related VMs description.
|
$job = Get-VBRJob -Name "Exchange backup"
$backupobject = Get-VBRJobObject -Job $job
$vm = New-VBRSureBackupVM -VM $backupobject
Add-VBRApplicationGroup -VM $vm -Name "Microsoft Exchange Appgroup" -Description "Application group for Exchange-related VMs" |
Perform the following steps:
- Run the
Get-VBRJobReturns existing jobs. cmdlet. Specify the Name parameter value. Save the result to the $job variable.
- Run the
Get-VBRJobObjectReturns VMs or VM containers of specific jobs. cmdlet. Set the $job variable as the Job parameter value. Save the result to the $backupobject variable.
- Run the
New-VBRSureBackupVMDefines VMs to add to the SureBackup job or to the application group. cmdlet. Set the $backupobject variable as the VM parameter value. Save the result to the $vm variable.
- Run the
Add-VBRApplicationGroup cmdlet. Specify the following settings:
- Set the
$vm variable as the VM parameter value.
- Specify the
Name parameter value.
- Specify the
Description parameter value.
|
Related Commands