Share via


Set-DPMProtectionGroupSla

Sets an SLA for a protection group.

Syntax

ProtectionGroup (Default)

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

ProtectionGroupId

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.

Parameter properties

Type:ProtectionGroup
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ProtectionGroup
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ProtectionGroupId

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

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ProtectionGroupId
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.