Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178257

How to avoid permission issue when deploying VM from template if user other then root.

$
0
0

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

 



Viewing all articles
Browse latest Browse all 178257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>