UNSOLVED

robin.stone

updated

11 years ago

0

231003

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.

  • 1605

    0

    Posted 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"