Remove-AlarmDefinition

This cmdlet removes alarm definitions from the vSphere environment.

Syntax

-AlarmDefinition  <AlarmDefinition[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
AlarmDefinition
AlarmDefinition[] named
  • wildcards
  • pipeline
  • Specifies the alarm definitions that you want to remove.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    Examples


    Example 1

    Get-AlarmDefinition -Name "MyAlarm" | Remove-AlarmDefinition

    Removes the alarm with a name "MyAlarm".

    Example 2

    Remove-AlarmDefinition -AlarmDefinition "MyAlarm*"

    Removes all alarms that match the pattern.

    Related Commands

    Feedback

    Was this page helpful?