cdecanini_
VMware Employee
VMware Employee

getAllVirtualMachines get all vCenters VM. This is expected.

To get vms from a resourcepool just use var vms = rpool.vm;

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter