June 1st, 2017 09:00

I fought with this for awhile and this is what I ended up with. Just tested and it works in my environment (also 7.4.1)

mccli client add --type=vmachine --name=VMNAME --datacenter="DATACENTER" --domain=/VCENTER --folder="/Folder/Path/From/VM-and-Templates"

I ended up going the dynamic rules route.

2 Intern

 • 

207 Posts

June 6th, 2017 08:00

If you know the exact path of the VM (folder path) on the vCenter you could use the following mccli command

mccli client add --type=vmachine --name=vmname --datacenter=datacentername --folder=/foldername/leve1/level2/ --domain=/VcenterName/VirtualMachines/

If you have proxycp.jar then you can run the following command

java -jar proxycp.jar --addvm --vc --vm


Regards

Amol Powar

No Events found!

Top