Sync-RubrikAnnotation
SYNOPSIS
Applies Rubrik SLA Domain information to VM Annotations using the Custom Attributes feature in vCenter
SYNTAX
DESCRIPTION
The Sync-RubrikAnnotation cmdlet will comb through all VMs currently being protected by Rubrik. It will then create Custom Attribute buckets for SLA Domain Name(s) and Snapshot counts and assign details for each VM found in vCenter using Annotations. The attribute names can be specified using this function's parameters or left as the defaults. See the examples for more information. Keep in mind that this only displays in the VMware vSphere Thick (C#) client, which is deprecated moving forward.
EXAMPLES
EXAMPLE 1
This will find all VMs being protected with any Rubrik SLA Domain Name and update their SLA and snapshot count annotations using the defaults of "Rubrik_SLA" and "Rubrik_Backups" respectively.
EXAMPLE 2
This will find all VMs being protected with a Rubrik SLA Domain Name of "Silver" and update their SLA and snapshot count annotations using the defaults of "Rubrik_SLA" and "Rubrik_Backups" respectively.
EXAMPLE 3
This will find all VMs being protected with any Rubrik SLA Domain Name and update their SLA and snapshot count annotations using the custom values of "Backup-Policy", "Backup-Snapshots", and 'Latest-Rubrik-Backup' respectively.
PARAMETERS
-SLA
Optional filter for a single SLA Domain Name By default, all SLA Domain Names will be collected when this parameter is not used
-SLAAnnotationName
Attribute name in vCenter for the Rubrik SLA Domain Name By default, will use "Rubrik_SLA"
-BackupAnnotationName
Attribute name in vCenter for quantity of snapshots By default, will use "Rubrik_Backups"
-LatestRubrikBackupAnnotationName
Attribute name in vCenter for latest backup date By default, will use "Rubrik_Latest_Backup"
-Server
Rubrik server IP or FQDN
-api
API version
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
Last updated