Set-DPMProtectionGroupSla
Set-DPMProtectionGroupSla
Sets an SLA for a protection group.
Syntax
Parameter Set: ProtectionGroup
Set-DPMProtectionGroupSla [-ProtectionGroup] <ProtectionGroup> [-SLAInHours] <Int32> [ <CommonParameters>]
Parameter Set: ProtectionGroupId
Set-DPMProtectionGroupSla [-ProtectionGroupId] <Guid> [-SLAInHours] <Int32> [ <CommonParameters>]
Detailed Description
The Set-DPMProtectionGroupSla cmdlet sets a service level agreement (SLA) for a protection group. An SLA defines the period, in hours, during which System Center 2012 – Data Protection Manager (DPM) should create at least one recovery point of each data source in the protection group. An SLA of 24 for a protection group means that each data source in that protection group should have at least one recovery point per day. If a source does not have a recovery point within that time, DPM raises an SLA violation alert for the data source. If you configured a backup window by using the Set-DPMBackupWindow cmdlet, the time window for checking SLA violations starts at the start of the backup window. If you have not configured a backup window, the time window for checking SLA violation starts at midnight.
Parameters
-ProtectionGroup<ProtectionGroup>
Specifies a protection group for which this cmdlet sets an SLA. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-ProtectionGroupId<Guid>
Specifies the unique identifier for a protection group. This cmdlet sets the SLA for the protection group that this parameter specifies.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-SLAInHours<Int32>
Specifies the period, in hours, during which DPM should create at least one recovery point of each data source in the protection group.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Set an SLA for a protection group object
The first command gets protection groups on the DPM server named DPMServer02. This command passes the results to the Where-Object cmdlet. That cmdlet drops all groups except ones that match the specified friendly name. For more information, type Get-Help Where-Object
. The command stores the protection group in the $PGroup variable.
The second command sets an SLA of 12 hours for the protection group in $PGroup.
PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02" | Where {$_.FriendlyName -like "*ContosoPG02*"}
PS C:\> Set-DPMProtectionGroupSla -ProtectionGroup $PGroup -SLAInHours 12
Example 2: Set an SLA for a protection group specified by ID
The first command gets protection groups on the DPM server named DPMServer02. This command passes the results to the Where-Object cmdlet. The command stores the protection group in the $PGroup variable.
The second command sets an SLA of 12 hours for the protection group that has the GUID specified by the ProtectionGroupId property of $PGroup.
PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02" | Where {$_.FriendlyName -like "*ContosoPG02*"}
PS C:\> Set-DPMProtectionGroupSla -ProtectionGroupId $PGroup.ProtectionGroupId -SLAInHours 12