I'm trying to pull the Guest Operating system from VCAC using vCO. I started with a simple System.log statement in the Scriptable Task but it continues to return null. I can walk through the inventory in vCO and I see the field I'm looking for.
Input Parameter = vCACVm - Type: VCAC:VirtualMachine
System.log ("vCAC VM guest OS : " + vCACVm.guestOS);
The log displays:
[2014-05-29 08:13:14.227] [I] vCAC VM guest OS : null
Any ideas what I could be doing wrong?
This thread was moved to the vCAC forum.
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009, 2010, 2011,2012,2013,2014
Author of the books 'VMWare ESX and ESXi in the Enterprise: Planning Deployment Virtualization Servers', Copyright 2011 Pearson Education. 'VMware vSphere and Virtual Infrastructure Security: Securing the Virtual Environment', Copyright 2009 Pearson Education.
I think you need to set the VMware.VirtualCenter.OperatingSystem custom property to one of the GuestOS values on the blueprint. This will allow you to pull that custom property out in a vCO workflow. Blueprints are not aware of the OS of the template unless you specify it.
How long has the machine existed before you try to access this field?
I've noted that I don't normally see data there in the repository until after a data collection has run post the machine being created.