robin.stone
1 Copper

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.

0 Kudos
1 Reply

RE: Accessing VmWare Virtual Machine's annotation or notes property

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"

0 Kudos