mammadshah
Contributor
Contributor

Power off/reset VM by owner

HI,

Can you help me on this to create a policy, where a user can power off/reset.. only if he/she owns the VM recourse. 

thanks, 

 

0 Kudos
5 Replies
LucD
Leadership
Leadership

Is this a CLI or a PowerCLI question?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
mammadshah
Contributor
Contributor

 

Related to vRealize Automation 8.1.

0 Kudos
LucD
Leadership
Leadership

Post moved to vRealize Automation Tools Discussions

 

 

 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
mammadshah
Contributor
Contributor

 

Any chance to restrict the user from powering off the VM that is not owned by his account. 

 

Thanks

0 Kudos
xian_
Expert
Expert

You can create an blocking EBS with event topic Deployment resource action requested and in the associated workflow check if the requestor (available in context) matches the owner of the deployment. If they differ, you fail the WF and prevent the day 2 action to run.

0 Kudos