What is the best way to update the annotations on a new VM with VCO?
Is there a script I can use to do this?
var spec = new VcVirtualMachineConfigSpec);
spec.annotation = "blah";
managedObject.reconfigVM_Task(spec);
You may want to repost this to the vCO community forum.
yes - thanks
var spec = new VcVirtualMachineConfigSpec);
spec.annotation = "blah";
managedObject.reconfigVM_Task(spec);
btw sounds like you need to look into Onyx 🙂
OK thanks
Hi,
this changes the Notes: section in the annotations.
And how is it possible to change the self defined annotations for the vm?
Regards
Sven
There is an action named 'setOrCreateCustomField' in 'com.vmware.library.vc.customattribute'
Hi robrtb12
thank's a lot. Works just great.
Do you know if there is an action or so to modify the TAGs (not create) that were introduced with the vSphere WEB Client interface, which will somehow "replace" the custom attributes in there. I know with the latest Power CLI it's possible. But is it possible witch any orchestrator action/library/workflow (preferably not powershelling).
Regards
Sven
Nice one. I want to do this for the ESXi hosts, how to do it? Which is the right object and could you post sample code here?