Remove Alarm Actions and Triggers

In some cases, you might want to remove obsolete alarm actions and triggers.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. Remove the first one from the action triggers found for an alarm definition.
    Get-AlarmDefinition -Name AlarmDefinition | Get-AlarmAction | Get-AlarmActionTrigger | select -First 1 | Remove-AlarmActionTrigger -Confirm:$false
  2. Remove all the actions for an alarm definition.
    Get-AlarmDefinition -Name AlarmDefinition | Get-AlarmAction | Remove-AlarmAction -Confirm:$false