Skip to content

Commit

Permalink
azurerm_monitor_activity_log_alert - support for Security event t…
Browse files Browse the repository at this point in the history
…ype for Azure Service Health alerts (#11802)
  • Loading branch information
Tailzip authored May 20, 2021
1 parent 6c96414 commit 6020e74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func resourceMonitorActivityLogAlert() *schema.Resource {
"Maintenance",
"Informational",
"ActionRequired",
"Security",
},
false,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ resource "azurerm_monitor_activity_log_alert" "test" {
criteria {
category = "ServiceHealth"
service_health {
events = ["Incident", "Maintenance", "ActionRequired"]
events = ["Incident", "Maintenance", "ActionRequired", "Security"]
services = ["Action Groups"]
locations = ["Global", "West Europe", "East US"]
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/monitor_activity_log_alert.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ A `criteria` block supports the following:

A `service_health` block supports the following:

* `events` (Optional) Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, and `ActionRequired`.
* `events` (Optional) Events this alert will monitor Possible values are `Incident`, `Maintenance`, `Informational`, `ActionRequired` and `Security`.
* `locations` (Optional) Locations this alert will monitor. For example, `West Europe`. Defaults to `Global`.
* `services` (Optional) Services this alert will monitor. For example, `Activity Logs & Alerts`, `Action Groups`. Defaults to all Services.

Expand Down

0 comments on commit 6020e74

Please sign in to comment.