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
Parameters
-
application_insights_id
required - string -
configuration
required - string -
description
optional - string -
enabled
optional - bool -
frequency
optional - number -
geo_locations
required - list of string -
id
optional computed - string -
kind
required - string -
location
required - string -
name
required - string -
resource_group_name
required - string -
retry_enabled
optional - bool -
synthetic_monitor_id
optional computed - string -
tags
optional - map from string to string -
timeout
optional - number -
timeouts
single block
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.