Last updated
Last updated
Creates a new Rubrik SLA Domain
The New-RubrikSLA cmdlet will build a new SLA Domain to provide policy-driven control over protected objects within the Rubrik fabric.
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days. Using the -SLA parameter alias
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days while also keeping one backup per day for 30 days.
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days while also keeping one backup per day for 30 days and sets the SLA to Retention Locked.
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days while also keeping one backup per day for 30 days, one backup per week for 4 weeks and one backup per year for 3 years. The weekly backups will be created on Fridays and the yearly backups will be created on January 31 because the year is set to start in February. The advanced SLA configuration can only be used with CDM version 5.0 and above.
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days. Backups are allowed to run between 22:00 and 6:00AM.
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days. The first full backup is allowed to be taken between Friday 21:30 and Monday 6:30AM.
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days, while also keeping one backup per day for 30 days. At the same time, data is immediately copied to the specified archival location and will be kept there for 14 days.
This will create an SLA Domain named "Test1" that will take a backup every 4 hours and keep those hourly backups for 7 days, while also keeping one backup per day for 30 days. At the same time, data is replicated to the specified target cluster and will be kept there for 5 days.
This will create a copy of an existing SLA named SLA1 and store it as CopySLA1
SLA Domain Name, either the -Name parameter or its parameter alias -SLA can be used to specify the name of the SLA
Hourly frequency to take snapshots
Number of days or weeks to retain the hourly snapshots. For CDM versions prior to 5.0 this value must be set in days
Retention type to apply to hourly snapshots when $AdvancedConfig is used. Does not apply to CDM versions prior to 5.0
Daily frequency to take snapshots
Number of days or weeks to retain the daily snapshots. For CDM versions prior to 5.0 this value must be set in days
Retention type to apply to daily snapshots when $AdvancedConfig is used. Does not apply to CDM versions prior to 5.0
Weekly frequency to take snapshots
Number of weeks to retain the weekly snapshots
Day of week for the weekly snapshots when $AdvancedConfig is used. The default is Saturday. Does not apply to CDM versions prior to 5.0
Monthly frequency to take snapshots
Number of months, quarters or years to retain the monthly backups. For CDM versions prior to 5.0, this value must be set in years
Day of month for the monthly snapshots when $AdvancedConfig is used. The default is the last day of the month. Does not apply to CDM versions prior to 5.0
Retention type to apply to monthly snapshots. Does not apply to CDM versions prior to 5.0
Quarterly frequency to take snapshots. Does not apply to CDM versions prior to 5.0
Number of quarters or years to retain the monthly snapshots. Does not apply to CDM versions prior to 5.0
Day of quarter for the quarterly snapshots when $AdvancedConfig is used. The default is the last day of the quarter. Does not apply to CDM versions prior to 5.0
Month that starts the first quarter of the year for the quarterly snapshots when $AdvancedConfig is used. The default is January. Does not apply to CDM versions prior to 5.0
Retention type to apply to quarterly snapshots. The default is Quarterly. Does not apply to CDM versions prior to 5.0
Yearly frequency to take snapshots
Number of years to retain the yearly snapshots
Day of year for the yearly snapshots when $AdvancedConfig is used. The default is the last day of the year. Does not apply to CDM versions prior to 5.0
Month that starts the first quarter of the year for the quarterly snapshots when $AdvancedConfig is used. The default is January. Does not apply to CDM versions prior to 5.0
Whether to turn advanced SLA configuration on or off. Does not apply to CDM versions prior to 5.0
Minute of hour from which backups are allowed to run
Number of hours during which backups are allowed to run
Hour from which the first full backup is allowed to run. Uses the 24-hour clock
Minute of hour from which the first full backup is allowed to run
Number of hours during which the first full backup is allowed to run
Whether to enable archival, does not take any input and should be used in combination with -ArchivalLocationId
Time in days to keep backup data locally on the cluster.
ID of the archival location
Polaris Managed ID
Whether to enable Instant Archive
Whether a retention lock is active on this SLA, Does not apply to CDM versions prior to 5.2
Whether to enable replication
ID of the replication target
Time in days to keep data on the replication target.
Retrieves frequencies from Get-RubrikSLA via the pipeline
Retrieves the advanced UI configuration parameters from Get-RubrikSLA via the pipeline
Retrieves the allowed backup windows from Get-RubrikSLA via the pipeline
Retrieves the allowed backup windows for the first full backup from Get-RubrikSLA via the pipeline
Retrieves the archical specifications from Get-RubrikSLA via the pipeline
Retrieves the replication specifications from Get-RubrikSLA via the pipeline
Rubrik server IP or FQDN
API version
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Prompts you for confirmation before running the cmdlet.
Written by Chris Wahl for community usage Twitter: @ChrisWahl GitHub: chriswahl
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see .