Adding Virtual Machine advanced settings to custom properties in vRealize Operations
What the script does
This script collects values from the advanced settings of Virtual Machines objects stored in Virtual Centre and posts them to the matching Virtual Machine object in vRealize Operations Manager
- The Advanced Setting is set as part of the script and the value is collected from the Virtual Centre Virtual Machine object
- The StatKey is set as part of the script
- The Cluster to target is set as part of the script
- Simple logic checks if the Advanced Setting requested exists against the Virtual Centre Virtual Machine object and if it does not it skips
- Calls the 'resource.addproperty' method to Post the value to the matching Virtual machine object wihin vRealize Operations Manager
Requirements
- This script requires VMware PowerCLI including the VMware.VimAutomation.vROps module
- An existing connection to Virtual Centre
- An existing connection to vRealize Operations Manager
Ouput Example
PowerShell
vRealize Operations Manager
Support
No support offered or liability accepted use this script at your own risk.
This script was built and tested using;
- VMware.VimAutomation.vROps version 12.0.0.15940184.
- Vmware.VimAutomation.Core version 12.0.0.15939655.
- VMware vRealize Operations Manager 8.1.0 Enterprise Edition.
- VMware ESXi 7.0.0 15843807
- VMware vCenter 7.0.0 15952599
Sign in to be able to add comments.