Have a look at How to run PowerCLI scripts from vCenter Alarms.
It mentions the parameters you receive in your script that is triggered by an alarm.
Have a look at How to run PowerCLI scripts from vCenter Alarms.
It mentions the parameters you receive in your script that is triggered by an alarm.