Set-RubrikAvailabilityGroup

SYNOPSIS

Sets the protection values of an Availability Group

SYNTAX

LogOptions

Set-RubrikAvailabilityGroup [-id <String>] -LogBackupFrequencyInSeconds <Int32> -LogRetentionHours <Int32>
 [-SLA <String>] [-SLAID <String>] [-Server <String>] [-api <String>] [<CommonParameters>]

CopyOnly

Set-RubrikAvailabilityGroup [-id <String>] [-CopyOnly] [-SLA <String>] [-SLAID <String>] [-Server <String>]
 [-api <String>] [<CommonParameters>]

DESCRIPTION

The Set-RubrikAvailabilityGroup cmdlet is used to set the protetion values of an Availability Group in Rubrik.

EXAMPLES

EXAMPLE 1

Get-RubrikAvailabilityGroup -GroupName 'am1-sql16ag-1ag' | Set-RubrikAvailabilityGroup -SLA GOLD

This will set the SLA Domain to GOLD for this Availability Group

EXAMPLE 2

Get-RubrikAvailabilityGroup -GroupName 'am1-sql16ag-1ag' | Set-RubrikAvailabilityGroup -SLA GOLD -LogBackupFrequencyInSeconds 3600 -LogRetentionHours 168

This will set the SLA Domain to GOLD for this Availability Group with a log backup frequency of hourly and a retention of 15 days

PARAMETERS

-id

Availability Group ID

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-LogBackupFrequencyInSeconds

How often we should backup the transaction log

Type: Int32
Parameter Sets: LogOptions
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-LogRetentionHours

How long should we keep the backup for

Type: Int32
Parameter Sets: LogOptions
Aliases:

Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-CopyOnly

Boolean declaration for copy only backups on the database.

Type: SwitchParameter
Parameter Sets: CopyOnly
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SLA

SLA Domain Name

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SLAID

SLA Domain ID

Type: String
Parameter Sets: (All)
Aliases: configuredSlaDomainId

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Server

Rubrik server IP or FQDN

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: $global:RubrikConnection.server
Accept pipeline input: False
Accept wildcard characters: False

-api

API version

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: $global:RubrikConnection.api
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Written by Chris Lumnah for community usage Twitter: @lumnah GitHub: clumnah

https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/set-rubrikavailabilitygroup

Last updated