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?
Hello,
This thread was moved to the vCAC forum.
Best regards,
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.
Virtualization and Cloud Security Analyst: The Virtualization Practice, LLC -- vSphere Upgrade Saga -- Virtualization Security Round Table Podcast
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.
I will give this a try. Thank you.
This is part of the final workflow before delivery to the customer (no more that 45 minutes). I'm going to try the custom property to see if this is successful.
I was able to define the custom property and pass it to the workflow. This got what I needed. Thank you.