Protect-RubrikVM
SYNOPSIS
Connects to Rubrik and assigns an SLA to a virtual machine
SYNTAX
None (Default)
SLA_Explicit
SLA_Unprotected
SLA_Inherit
DESCRIPTION
The Protect-RubrikVM cmdlet will update a virtual machine's SLA Domain assignment within the Rubrik cluster. The SLA Domain contains all policy-driven values needed to protect workloads. Note that this function requires the virtual machine ID value, not the name of the virtual machine, since virtual machine names are not unique across clusters. It is suggested that you first use Get-RubrikVM to narrow down the one or more virtual machine to protect, and then pipe the results to Protect-RubrikVM. You will be asked to confirm each virtual machine you wish to protect, or you can use -Confirm:$False to skip confirmation checks.
EXAMPLES
EXAMPLE 1
This will assign the Gold SLA Domain to any virtual machine named "VM1"
EXAMPLE 2
This will assign the Gold SLA Domain to any virtual machine named "VM1" that is currently assigned to the Silver SLA Domain without asking for confirmation
EXAMPLE 3
This will assign the Gold SLA Domain to any virtual machine named "VM1" that is currently assigned to the Silver SLA Domain keeping existing snapshots forever
PARAMETERS
-id
Virtual machine ID
-SLA
The SLA Domain in Rubrik
-DoNotProtect
Removes the SLA Domain assignment
-Inherit
Inherits the SLA Domain assignment from a parent object
-SLAID
SLA id value
-ExistingSnapshotRetention
Determine the retention settings for the already existing snapshots
-Server
Rubrik server IP or FQDN
-api
API version
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
-Confirm
Prompts you for confirmation before running the cmdlet.
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 Wahl for community usage Twitter: @ChrisWahl GitHub: chriswahl
RELATED LINKS
https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/protect-rubrikvm
Last updated