azurerm_cost_anomaly_alert

Manages a Cost Anomaly Alert.

Example Usage

resource "azurerm_cost_anomaly_alert" "example" {
  name            = "alertname"
  display_name    = "Alert DisplayName"
  subscription_id = "/subscriptions/00000000-0000-0000-0000-000000000000"
  email_subject   = "My Test Anomaly Alert"
  email_addresses = ["example@test.net"]
}

Arguments Reference

The following arguments are supported:


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

Cost Anomaly Alerts can be imported using the resource id, e.g.

terraform import azurerm_cost_anomaly_alert.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyanomalybyresourcegroup