Unsolved
This post is more than 5 years old
2 Posts
0
230983
April 9th, 2015 09:00
Accessing VmWare Virtual Machine's annotation or notes property
I've created a annotation entry in a VM named Tier with a value of 1 or 2.
I am trying to create a scope by accessing this value, but when I go into script editor to test my scope query I see that the value is listed as unset.
Along those same lines... I could also use the note field for this same purpose and my note field has a value "PROD - XYZ App" but when I write my query VMWVirtualMachine where notes like 'PROD%' I get no results where I should get 50 or more.
Any help would be appreciated.
No Events found!
Christopher.1
11 Posts
0
December 8th, 2015 18:00
Hi Robin,
What are you trying to create exactly?
The annotations are logged under Notes
To access it in a groovy script use:
"return scope.notes.latest.value"