hmscott4 / AlertManagement

Manage SCOM Alerts
2 stars 3 forks source link

Assign Alert: Exception for management pack and alert field does not work #86

Closed randomnote1 closed 2 years ago

randomnote1 commented 2 years ago

The combination of the search string "//config/exceptions/exception[@enabled='true']/ManagementPack[@Name='$mpName']/AlertProperty/ancestor::exception" and the alert match Where-Object -FilterScript { $newAlert.($_.Alert.AlertProperty) -match "$($_.Alert.AlertPropertyMatches)" } will not work. The ManagementPack element is not supposed to have an Alert child, so this will always fail.