get vcac VM from VC VM

var vcacVm = Server.findAllForType("vCAC:VirtualMachine").filter(function(v) {
 return v.vmUniqueID == vm.config.instanceUuid
})[0];


if (!vcacVm) {
 throw new Error("VM not managed by vRA");
}

return vcacVm;
Post a Comment (0)
Previous Post Next Post