Azure Application Insights Web Test

This page shows how to write Terraform for Application Insights Web Test and write them securely.

azurerm_application_insights_web_test (Terraform)

The Web Test in Application Insights can be configured in Terraform with the resource name azurerm_application_insights_web_test. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

application_insights_web_t_test.tf#L18
resource "azurerm_application_insights_web_test" "free" {
  name                    = "tf-test-appinsights-webtest"
  location                = azurerm_application_insights.example.location
  resource_group_name     = azurerm_resource_group.example.name
  application_insights_id = azurerm_application_insights.example.id
  kind                    = "ping"
application_insights_web_t_test.tf#L18
resource "azurerm_application_insights_web_test" "free" {
  name                    = "tf-test-appinsights-webtest"
  location                = azurerm_application_insights.example.location
  resource_group_name     = azurerm_resource_group.example.name
  application_insights_id = azurerm_application_insights.example.id
  kind                    = "ping"
main.tf#L10
resource "azurerm_application_insights_web_test" "test" {
  name                    = var.test_name
  location                = var.location
  resource_group_name     = var.resource_group_name
  application_insights_id = var.application_insights_id
  kind                    = "ping"
main.tf#L7
resource "azurerm_application_insights_web_test" "this" {
  application_insights_id = var.application_insights_id
  configuration           = var.configuration
  description             = var.description
  enabled                 = var.enabled
  frequency               = var.frequency
main.tf#L7
resource "azurerm_application_insights_web_test" "this" {
  application_insights_id = var.application_insights_id
  configuration           = var.configuration
  description             = var.description
  enabled                 = var.enabled
  frequency               = var.frequency

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an Application Insights WebTest.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Application Insights Web Test?

Azure Application Insights Web Test is a resource for Application Insights of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Application Insights Web Test?

For Terraform, the gilyas/infracost, infracost/infracost and CLEAResult/cr-azurerm_application_insights_web_test source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.