Modify Alarm Definitions on vCenter Server

With PowerCLI, you can modify vCenter Server alarm definitions.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. For all host alarms, modify the interval after the action repeats.
    Get-AlarmDefinition -Entity (Get-VMHost) | foreach { $_ | Set-AlarmDefinition -ActionRepeatMinutes ($_.ActionRepeatMinutes + 1)}
  2. Modify the name and the description of a selected alarm definition, and enable the alarm.
    Get-AlarmDefinition -Name AlarmDefinition | Set-AlarmDefinition -Name AlarmDefinitionNew -Description 'Alarm Definition Description' -Enabled:$true