Ashley004
Contributor
Contributor

Remove AlarmAction

Hi All

Is there a way to script removing an alarm action to put a host into maintenance mode

When I run : Get-AlarmDefinition -Name "Alarm1"  | Get-AlarmAction

I get no output, If I setup an action to send a notification in the same alarm just to test the get-alarmaction I then get output indicting ActionType : SendEmail

I cant seem to get the remove-alarmaction to run to remove Enter Maintenance Mode action

Any advice would be greatly appreciated

Regards

Ashley

0 Kudos
0 Replies