Add-VBRProtectionGroup
Short Description
Creates protection groups in Veeam Backup & Replication.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus
Syntax
Add-VBRProtectionGroup -Name <string> -Container <VBRProtectionGroupContainer> [-Description <string>] [-ScheduleOptions <VBRProtectionGroupScheduleOptions>] [-DeploymentOptions <VBRProtectionGroupDeploymentOptions>] [-AdvancedOptions <VBRProtectionGroupAdvancedWindowsOptions>] [-NotificationOptions <VBRProtectionGroupNotificationOptions>] [<CommonParameters>]>] |
Detailed Description
This cmdlet creates protection groups.
Before creating a protection group, you must create a protection scope for this group. Protection groups can include the following objects: of Active Directory objects, individual computers or computers imported from a CSV file. For more information about the protection scope, see the following cmdlets:
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Container | Specifies the protection scope. The protection scope can contain Active Directory objects, individual computers or computers imported from a CSV file. The cmdlet will create the protection group with this protection scope. Accepts the following types: | True | Named | True (ByValue, | False |
Name | Specifies the name you want to assign to the protection group. | True | Named | True (ByProperty | False |
Description | Specifies the description of the protection group. | False | Named | True (ByProperty | False |
ScheduleOptions | Specifies the discovery schedule. The cmdlet will use this schedule to perform discovery operations for computers in the protection group. Accepts the VBRProtectionGroupScheduleOptions type. | False | Named | True (ByProperty | False |
DeploymentOptions | Specifies Veeam Agent deployment settings. The cmdlet will use these settings to install Veeam Agent on the discovered computers in the protection group. Accepts the VBRProtectionGroupDeploymentOptions type. | False | Named | True (ByProperty | False |
AdvancedOptions | Specifies settings for Veeam Agent for Windows deployed on computers in the protection group. You can specify the following settings:
Accepts the VBRProtectionGroupAdvancedWindowsOptions type. | False | Named | True (ByProperty |
|
NotificationOptions | Specifies notification settings for the protection group. Accepts the VBRProtectionGroupNotificationOptions type. | False | Named | True (ByProperty |
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Return Type
Example
This example shows how to create a protection group with the following settings:
- The created protection group will include individual computers.
- Veeam Backup & Replication will discover computers in the protection group every 12 hours.
- Veeam Backup & Replication will automatically install Veeam Agent on all discovered computers of this protection group.
To create a protection group, you will need to perform the following steps:
- Specify credentials for the computers you want to add to the protection group. To do this, run New-VBRIndividualComputerCustomCredentials. Use the ForEach statement to apply the same credentials to multiple computers. Save the result to the $computers variable.
- Create the scope of computers for the protection group. To do this, run New-VBRIndividualComputerContainer with the $computers variable. Save the result to the $scope variable.
- Create an object with the periodic schedule settings. To do this, run New-VBRPeriodicallyOptions. Save the result to the $periodically variable.
- Create the discovery schedule for the protection group. To do this, run New-VBRProtectionGroupScheduleOptions with the $periodically variable. Save the result to the $schedule variable.
- Create an object with the agent deployment settings. To do this, run New-VBRProtectionGroupDeploymentOptions with the InstallAgent parameter.
- Create the protection group. To do this, run Add-VBRProtectionGroup with the $scope, $schedule and $deployment variables.
$computers = @("support.east.local", "qa.east.local", "adm-v8931") | ForEach { New-VBRIndividualComputerCustomCredentials -HostName $_ -Credentials "support\jsmith"} $scope = New-VBRIndividualComputerContainer -CustomCredentials $computers $periodically = New-VBRPeriodicallyOptions -FullPeriod 12 -PeriodicallyKind Hours $schedule = New-VBRProtectionGroupScheduleOptions -PolicyType Periodically -PeriodicallyOptions $periodically $deployment = New-VBRProtectionGroupDeploymentOptions -InstallAgent Add-VBRProtectionGroup -Name "Support_East" -Container $scope -ScheduleOptions $schedule -DeploymentOptions $deployment |
Related Commands
New-VBRIndividualComputerCustomCredentials
New-VBRIndividualComputerContainer