Dear All,
The script attached work fine when the user is having root access to deploy VM from template, we got this script from this fantastic forum. Since my user is having only permission to deploy VM for selected Datacenter when i use this script it reports permission issues.
Fault string: Permission to perform this operation was denied.
Fault detail: NoPermissionFault
I have added --datacenter as required argument which will take the datacenter name which is allowed for my user id. But i don't know how manipulate datacenter object with$_->CloneVM.
Please advise me how to play with datacenter argument value to pass this argument to $_->CloneVM
Note: When i tried with same user VI client (GUI) i am able to deploy. So ideally using same credential it should work from command line, but its not working. How overcome permission issues?
Thanks in advance.
-Nilesh