Set-DPMProtectionGroupSla

Sets an SLA for a protection group.

Syntax

Set-DPMProtectionGroupSla
   [-ProtectionGroup] <ProtectionGroup>
   [-SLAInHours] <Int32>
   [<CommonParameters>]
Set-DPMProtectionGroupSla
   [-ProtectionGroupId] <Guid>
   [-SLAInHours] <Int32>
   [<CommonParameters>]

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 - 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.

Examples

Example 1: Set an SLA for a protection group object

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02" | Where {$_.FriendlyName -like "*ContosoPG02*"}
PS C:\> Set-DPMProtectionGroupSla -ProtectionGroup $PGroup -SLAInHours 12

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.

Example 2: Set an SLA for a protection group specified by ID

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02" | Where {$_.FriendlyName -like "*ContosoPG02*"}
PS C:\> Set-DPMProtectionGroupSla -ProtectionGroupId $PGroup.ProtectionGroupId -SLAInHours 12

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.

Parameters

-ProtectionGroup

Specifies a protection group for which this cmdlet sets an SLA. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Type:ProtectionGroup
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ProtectionGroupId

Specifies the unique identifier for a protection group. This cmdlet sets the SLA for the protection group that this parameter specifies.

Type:Guid
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SLAInHours

Specifies the period, in hours, during which DPM should create at least one recovery point of each data source in the protection group.

Type:Int32
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False