azurerm_logz_monitor

Manages a logz Monitor.

Example Usage

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

resource "azurerm_logz_monitor" "example" {
  name                = "example-monitor"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  plan {
    billing_cycle  = "MONTHLY"
    effective_date = "2022-06-06T00:00:00Z"
    usage_type     = "COMMITTED"
  }

  user {
    email        = "user@example.com"
    first_name   = "Example"
    last_name    = "User"
    phone_number = "+12313803556"
  }
}

Arguments Reference

The following arguments are supported:



An plan block exports the following:


An user block exports 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

logz Monitors can be imported using the resource id, e.g.

terraform import azurerm_logz_monitor.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logz/monitors/monitor1