azurerm_application_insights_standard_web_test

Manages a Application Insights Standard WebTest.

Example Usage

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

resource "azurerm_application_insights" "example" {
  name                = "example"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  application_type    = "web"
}

resource "azurerm_application_insights_standard_web_test" "example" {
  name                    = "example-test"
  resource_group_name     = azurerm_resource_group.example.name
  location                = "West Europe"
  application_insights_id = azurerm_application_insights.example.id
  geo_locations           = ["example"]

  request {
    url = "http://www.example.com"
  }
}

Arguments Reference

The following arguments are supported:



A content block supports the following:


A header block supports the following:


A request block supports the following:


A validation_rules 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

Application Insights Standard WebTests can be imported using the resource id, e.g.

terraform import azurerm_application_insights_standard_web_test.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Insights/webTests/appinsightswebtest