Reading Time: 0 minutes, 39 secs

Bulk configure vCenter Alarms with PowerCLI

I was recently asked if it was possible to update vCenter alarms in bulk with email details. So i set about writing the below script, basically this script will go through looking for any alarms that match the name you specify and set the email as required.

This is a really basic script and can easily be modified to set alarms how you want them.

To edit multiple alarms at once simply change the $alarms variable as below:

One thing you will probably notice is that we set the “Yellow” to “Red” status after everything else, the reason for this is that it is set by default when creating the alarm definition and we need to unset this before resetting with the required notification type.


Leave a Comment.