azurerm_monitor_action_rule_suppression

Manages a Monitor Action Rule which type is suppression.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_monitor_action_rule_suppression" "example" {
  name                = "example-amar"
  resource_group_name = azurerm_resource_group.example.name

  scope {
    type         = "ResourceGroup"
    resource_ids = [azurerm_resource_group.example.id]
  }

  suppression {
    recurrence_type = "Weekly"

    schedule {
      start_date_utc    = "2019-01-01T01:02:03Z"
      end_date_utc      = "2019-01-03T15:02:07Z"
      recurrence_weekly = ["Sunday", "Monday", "Friday", "Saturday"]
    }
  }

  tags = {
    foo = "bar"
  }
}

Argument Reference

The following arguments are supported:


The suppression block supports the following:


The schedule block supports the following:


The scope block supports the following:


The condition block supports the following:


The alert_context block supports the following:


The alert_rule_id block supports the following:


The description block supports the following:


The monitor block supports the following:


The monitor_service block supports the following:


The severity block supports the following:


The target_resource_type block supports the following:


Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Monitor Action Rule can be imported using the resource id, e.g.

terraform import azurerm_monitor_action_rule_suppression.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AlertsManagement/actionRules/actionRule1