pyvmomi
pyvmomi copied to clipboard
Is there way to clone a template to a cluster that does not have resource pool?
The VirtualMachineRelocateSpec seems to have support for host and resource pools but not clusters unless they have a resource pool.
https://www.vmware.com/support/developer/vc-sdk/visdk2xpubs/ReferenceGuide/vim.vm.RelocateSpec.html
All clusters have the "root resource pool", cluster.resourcePool. If you use it you'll relocate to the cluster.
Thank you wiggin15!, Using the cluster.resourcePool worked.
Closing the issue as the question has been answered.