If you have the MoRef (and you are using a single vCenter), then you can get the VC:VirtualMachine object like this:
var XPath = "xpath:id='"+vmMoRef+"'"; var VMs = VcPlugin.getAllVirtualMachines(null, XPath); var vCenterVM = VMs[0];
If you have the MoRef (and you are using a single vCenter), then you can get the VC:VirtualMachine object like this:
var XPath = "xpath:id='"+vmMoRef+"'"; var VMs = VcPlugin.getAllVirtualMachines(null, XPath); var vCenterVM = VMs[0];