Protect-RubrikTag
SYNOPSIS
Connects to Rubrik and assigns an SLA Domain based on a vSphere category and tag value
SYNTAX
SLA_Explicit
Protect-RubrikTag -Tag <String> -Category <String> [-SLA <String>] [-Server <String>] [-api <String>] [-WhatIf]
[-Confirm] [<CommonParameters>]SLA_Unprotected
Protect-RubrikTag -Tag <String> -Category <String> [-DoNotProtect] [-Server <String>] [-api <String>] [-WhatIf]
[-Confirm] [<CommonParameters>]SLA_Inherit
Protect-RubrikTag -Tag <String> -Category <String> [-Inherit] [-Server <String>] [-api <String>] [-WhatIf]
[-Confirm] [<CommonParameters>]DESCRIPTION
The Protect-RubrikTag 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. Make sure you have PowerCLI installed and connect to the required vCenter Server.
EXAMPLES
EXAMPLE 1
This will assign the Gold SLA Domain to any VM tagged with Gold in the Rubrik category
EXAMPLE 2
This will assign the Titanium SLA Domain to any VM tagged with Gold in the Rubrik category
EXAMPLE 3
This will remove protection from any VM tagged with Gold in the Rubrik category
EXAMPLE 4
This will flag any VM tagged with Gold in the Rubrik category to inherit the SLA Domain of its parent object
PARAMETERS
-Tag
vSphere Tag
-Category
vSphere Tag Category
-SLA
The SLA Domain in Rubrik
-DoNotProtect
Removes the SLA Domain assignment
-Inherit
Inherits the SLA Domain assignment from a parent object
-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 Jason Burrell for community usage Twitter: @jasonburrell2
RELATED LINKS
Last updated
Was this helpful?