VMware Cloud Community
vpaw
Contributor
Contributor

Modify Policy to Not Include Powered Off VMs

Hello all, we're running a cluster that has powered off VMs for a PaaS related purpose and we don't want them impacting the analysis as waste.  If anyone has any tips on what part of the policy to disable or modify to remove them as a factor please let me know.  Thanks!

4 Replies
Souad90
Enthusiast
Enthusiast

Hi,

You could exclude them from your scope and let them not be monitored by deleting the permission of vROPs account in vSphere from this cluster. Otherwise I don't know how to change the native vrops definition of waste (idle+powerred off+ oversized+ unused). Did you try to set the option

% of the time

?

Reply
0 Kudos
sxnxr
Commander
Commander

You could create a custom group for all your PaaS VMs and specify only powered on VMs as one of the membership rules and assign the policy to it. I do this to not monitor powered off VMs and hosts in maintenance mode.

vpaw
Contributor
Contributor

Souad90, I need the environment to be more dynamic so the option to manually blocking the powered off VMs (that may or may not remain powered off) via security rights in vCenter isn't an option in my case.

Reply
0 Kudos
Souad90
Enthusiast
Enthusiast

Then I think you should move these VMs to another cluster or create a custom group for your PaaS environment as sxnxr has said, and take your analysis based on that group only. Otherwise changing the definition of waste is not currently an option. Hope you find what you are looking for.

Reply
0 Kudos