azure-native.insights.WebTest
Explore with Pulumi AI
An Application Insights WebTest definition. Azure REST API version: 2022-06-15. Prior API version in Azure Native 1.x: 2015-05-01.
Other available API versions: 2020-10-05-preview.
Example Usage
webTestCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var webTest = new AzureNative.Insights.WebTest("webTest", new()
    {
        Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
        {
            WebTest = "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
        },
        Description = "Ping web test alert for mytestwebapp",
        Enabled = true,
        Frequency = 900,
        Kind = AzureNative.Insights.WebTestKind.Ping,
        Location = "South Central US",
        Locations = new[]
        {
            new AzureNative.Insights.Inputs.WebTestGeolocationArgs
            {
                Location = "us-fl-mia-edge",
            },
        },
        ResourceGroupName = "my-resource-group",
        RetryEnabled = true,
        SyntheticMonitorId = "my-webtest-my-component",
        Timeout = 120,
        WebTestKind = AzureNative.Insights.WebTestKind.Ping,
        WebTestName = "my-webtest-my-component",
    });
});
package main
import (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
			Configuration: &insights.WebTestPropertiesConfigurationArgs{
				WebTest: pulumi.String("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"),
			},
			Description: pulumi.String("Ping web test alert for mytestwebapp"),
			Enabled:     pulumi.Bool(true),
			Frequency:   pulumi.Int(900),
			Kind:        insights.WebTestKindPing,
			Location:    pulumi.String("South Central US"),
			Locations: insights.WebTestGeolocationArray{
				&insights.WebTestGeolocationArgs{
					Location: pulumi.String("us-fl-mia-edge"),
				},
			},
			ResourceGroupName:  pulumi.String("my-resource-group"),
			RetryEnabled:       pulumi.Bool(true),
			SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
			Timeout:            pulumi.Int(120),
			WebTestKind:        insights.WebTestKindPing,
			WebTestName:        pulumi.String("my-webtest-my-component"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.WebTest;
import com.pulumi.azurenative.insights.WebTestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesConfigurationArgs;
import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var webTest = new WebTest("webTest", WebTestArgs.builder()
            .configuration(WebTestPropertiesConfigurationArgs.builder()
                .webTest("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>")
                .build())
            .description("Ping web test alert for mytestwebapp")
            .enabled(true)
            .frequency(900)
            .kind("ping")
            .location("South Central US")
            .locations(WebTestGeolocationArgs.builder()
                .location("us-fl-mia-edge")
                .build())
            .resourceGroupName("my-resource-group")
            .retryEnabled(true)
            .syntheticMonitorId("my-webtest-my-component")
            .timeout(120)
            .webTestKind("ping")
            .webTestName("my-webtest-my-component")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webTest = new azure_native.insights.WebTest("webTest", {
    configuration: {
        webTest: "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
    },
    description: "Ping web test alert for mytestwebapp",
    enabled: true,
    frequency: 900,
    kind: azure_native.insights.WebTestKind.Ping,
    location: "South Central US",
    locations: [{
        location: "us-fl-mia-edge",
    }],
    resourceGroupName: "my-resource-group",
    retryEnabled: true,
    syntheticMonitorId: "my-webtest-my-component",
    timeout: 120,
    webTestKind: azure_native.insights.WebTestKind.Ping,
    webTestName: "my-webtest-my-component",
});
import pulumi
import pulumi_azure_native as azure_native
web_test = azure_native.insights.WebTest("webTest",
    configuration={
        "web_test": "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
    },
    description="Ping web test alert for mytestwebapp",
    enabled=True,
    frequency=900,
    kind=azure_native.insights.WebTestKind.PING,
    location="South Central US",
    locations=[{
        "location": "us-fl-mia-edge",
    }],
    resource_group_name="my-resource-group",
    retry_enabled=True,
    synthetic_monitor_id="my-webtest-my-component",
    timeout=120,
    web_test_kind=azure_native.insights.WebTestKind.PING,
    web_test_name="my-webtest-my-component")
resources:
  webTest:
    type: azure-native:insights:WebTest
    properties:
      configuration:
        webTest: <WebTest Name="my-webtest" Id="678ddf96-1ab8-44c8-9274-123456789abc" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="120" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="" ><Items><Request Method="GET" Guid="a4162485-9114-fcfc-e086-123456789abc" Version="1.1" Url="http://my-component.azurewebsites.net" ThinkTime="0" Timeout="120" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" /></Items></WebTest>
      description: Ping web test alert for mytestwebapp
      enabled: true
      frequency: 900
      kind: ping
      location: South Central US
      locations:
        - location: us-fl-mia-edge
      resourceGroupName: my-resource-group
      retryEnabled: true
      syntheticMonitorId: my-webtest-my-component
      timeout: 120
      webTestKind: ping
      webTestName: my-webtest-my-component
webTestCreateStandard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var webTest = new AzureNative.Insights.WebTest("webTest", new()
    {
        Description = "Ping web test alert for mytestwebapp",
        Enabled = true,
        Frequency = 900,
        Location = "South Central US",
        Locations = new[]
        {
            new AzureNative.Insights.Inputs.WebTestGeolocationArgs
            {
                Location = "us-fl-mia-edge",
            },
        },
        Request = new AzureNative.Insights.Inputs.WebTestPropertiesRequestArgs
        {
            Headers = new[]
            {
                new AzureNative.Insights.Inputs.HeaderFieldArgs
                {
                    HeaderFieldName = "Content-Language",
                    HeaderFieldValue = "de-DE",
                },
                new AzureNative.Insights.Inputs.HeaderFieldArgs
                {
                    HeaderFieldName = "Accept-Language",
                    HeaderFieldValue = "de-DE",
                },
            },
            HttpVerb = "POST",
            RequestBody = "SGVsbG8gd29ybGQ=",
            RequestUrl = "https://bing.com",
        },
        ResourceGroupName = "my-resource-group",
        RetryEnabled = true,
        SyntheticMonitorId = "my-webtest-my-component",
        Timeout = 120,
        ValidationRules = new AzureNative.Insights.Inputs.WebTestPropertiesValidationRulesArgs
        {
            SSLCertRemainingLifetimeCheck = 100,
            SSLCheck = true,
        },
        WebTestKind = AzureNative.Insights.WebTestKind.Standard,
        WebTestName = "my-webtest-my-component",
    });
});
package main
import (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
			Description: pulumi.String("Ping web test alert for mytestwebapp"),
			Enabled:     pulumi.Bool(true),
			Frequency:   pulumi.Int(900),
			Location:    pulumi.String("South Central US"),
			Locations: insights.WebTestGeolocationArray{
				&insights.WebTestGeolocationArgs{
					Location: pulumi.String("us-fl-mia-edge"),
				},
			},
			Request: &insights.WebTestPropertiesRequestArgs{
				Headers: insights.HeaderFieldArray{
					&insights.HeaderFieldArgs{
						HeaderFieldName:  pulumi.String("Content-Language"),
						HeaderFieldValue: pulumi.String("de-DE"),
					},
					&insights.HeaderFieldArgs{
						HeaderFieldName:  pulumi.String("Accept-Language"),
						HeaderFieldValue: pulumi.String("de-DE"),
					},
				},
				HttpVerb:    pulumi.String("POST"),
				RequestBody: pulumi.String("SGVsbG8gd29ybGQ="),
				RequestUrl:  pulumi.String("https://bing.com"),
			},
			ResourceGroupName:  pulumi.String("my-resource-group"),
			RetryEnabled:       pulumi.Bool(true),
			SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
			Timeout:            pulumi.Int(120),
			ValidationRules: &insights.WebTestPropertiesValidationRulesArgs{
				SSLCertRemainingLifetimeCheck: pulumi.Int(100),
				SSLCheck:                      pulumi.Bool(true),
			},
			WebTestKind: insights.WebTestKindStandard,
			WebTestName: pulumi.String("my-webtest-my-component"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.WebTest;
import com.pulumi.azurenative.insights.WebTestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesRequestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesValidationRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var webTest = new WebTest("webTest", WebTestArgs.builder()
            .description("Ping web test alert for mytestwebapp")
            .enabled(true)
            .frequency(900)
            .location("South Central US")
            .locations(WebTestGeolocationArgs.builder()
                .location("us-fl-mia-edge")
                .build())
            .request(WebTestPropertiesRequestArgs.builder()
                .headers(                
                    HeaderFieldArgs.builder()
                        .headerFieldName("Content-Language")
                        .headerFieldValue("de-DE")
                        .build(),
                    HeaderFieldArgs.builder()
                        .headerFieldName("Accept-Language")
                        .headerFieldValue("de-DE")
                        .build())
                .httpVerb("POST")
                .requestBody("SGVsbG8gd29ybGQ=")
                .requestUrl("https://bing.com")
                .build())
            .resourceGroupName("my-resource-group")
            .retryEnabled(true)
            .syntheticMonitorId("my-webtest-my-component")
            .timeout(120)
            .validationRules(WebTestPropertiesValidationRulesArgs.builder()
                .sSLCertRemainingLifetimeCheck(100)
                .sSLCheck(true)
                .build())
            .webTestKind("standard")
            .webTestName("my-webtest-my-component")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webTest = new azure_native.insights.WebTest("webTest", {
    description: "Ping web test alert for mytestwebapp",
    enabled: true,
    frequency: 900,
    location: "South Central US",
    locations: [{
        location: "us-fl-mia-edge",
    }],
    request: {
        headers: [
            {
                headerFieldName: "Content-Language",
                headerFieldValue: "de-DE",
            },
            {
                headerFieldName: "Accept-Language",
                headerFieldValue: "de-DE",
            },
        ],
        httpVerb: "POST",
        requestBody: "SGVsbG8gd29ybGQ=",
        requestUrl: "https://bing.com",
    },
    resourceGroupName: "my-resource-group",
    retryEnabled: true,
    syntheticMonitorId: "my-webtest-my-component",
    timeout: 120,
    validationRules: {
        sSLCertRemainingLifetimeCheck: 100,
        sSLCheck: true,
    },
    webTestKind: azure_native.insights.WebTestKind.Standard,
    webTestName: "my-webtest-my-component",
});
import pulumi
import pulumi_azure_native as azure_native
web_test = azure_native.insights.WebTest("webTest",
    description="Ping web test alert for mytestwebapp",
    enabled=True,
    frequency=900,
    location="South Central US",
    locations=[{
        "location": "us-fl-mia-edge",
    }],
    request={
        "headers": [
            {
                "header_field_name": "Content-Language",
                "header_field_value": "de-DE",
            },
            {
                "header_field_name": "Accept-Language",
                "header_field_value": "de-DE",
            },
        ],
        "http_verb": "POST",
        "request_body": "SGVsbG8gd29ybGQ=",
        "request_url": "https://bing.com",
    },
    resource_group_name="my-resource-group",
    retry_enabled=True,
    synthetic_monitor_id="my-webtest-my-component",
    timeout=120,
    validation_rules={
        "s_sl_cert_remaining_lifetime_check": 100,
        "s_sl_check": True,
    },
    web_test_kind=azure_native.insights.WebTestKind.STANDARD,
    web_test_name="my-webtest-my-component")
resources:
  webTest:
    type: azure-native:insights:WebTest
    properties:
      description: Ping web test alert for mytestwebapp
      enabled: true
      frequency: 900
      location: South Central US
      locations:
        - location: us-fl-mia-edge
      request:
        headers:
          - headerFieldName: Content-Language
            headerFieldValue: de-DE
          - headerFieldName: Accept-Language
            headerFieldValue: de-DE
        httpVerb: POST
        requestBody: SGVsbG8gd29ybGQ=
        requestUrl: https://bing.com
      resourceGroupName: my-resource-group
      retryEnabled: true
      syntheticMonitorId: my-webtest-my-component
      timeout: 120
      validationRules:
        sSLCertRemainingLifetimeCheck: 100
        sSLCheck: true
      webTestKind: standard
      webTestName: my-webtest-my-component
webTestUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var webTest = new AzureNative.Insights.WebTest("webTest", new()
    {
        Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
        {
            WebTest = "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
        },
        Frequency = 600,
        Kind = AzureNative.Insights.WebTestKind.Ping,
        Location = "South Central US",
        Locations = new[]
        {
            new AzureNative.Insights.Inputs.WebTestGeolocationArgs
            {
                Location = "us-fl-mia-edge",
            },
            new AzureNative.Insights.Inputs.WebTestGeolocationArgs
            {
                Location = "apac-hk-hkn-azr",
            },
        },
        ResourceGroupName = "my-resource-group",
        SyntheticMonitorId = "my-webtest-my-component",
        Timeout = 30,
        WebTestKind = AzureNative.Insights.WebTestKind.Ping,
        WebTestName = "my-webtest-my-component",
    });
});
package main
import (
	insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
			Configuration: &insights.WebTestPropertiesConfigurationArgs{
				WebTest: pulumi.String("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"),
			},
			Frequency: pulumi.Int(600),
			Kind:      insights.WebTestKindPing,
			Location:  pulumi.String("South Central US"),
			Locations: insights.WebTestGeolocationArray{
				&insights.WebTestGeolocationArgs{
					Location: pulumi.String("us-fl-mia-edge"),
				},
				&insights.WebTestGeolocationArgs{
					Location: pulumi.String("apac-hk-hkn-azr"),
				},
			},
			ResourceGroupName:  pulumi.String("my-resource-group"),
			SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
			Timeout:            pulumi.Int(30),
			WebTestKind:        insights.WebTestKindPing,
			WebTestName:        pulumi.String("my-webtest-my-component"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.WebTest;
import com.pulumi.azurenative.insights.WebTestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesConfigurationArgs;
import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var webTest = new WebTest("webTest", WebTestArgs.builder()
            .configuration(WebTestPropertiesConfigurationArgs.builder()
                .webTest("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>")
                .build())
            .frequency(600)
            .kind("ping")
            .location("South Central US")
            .locations(            
                WebTestGeolocationArgs.builder()
                    .location("us-fl-mia-edge")
                    .build(),
                WebTestGeolocationArgs.builder()
                    .location("apac-hk-hkn-azr")
                    .build())
            .resourceGroupName("my-resource-group")
            .syntheticMonitorId("my-webtest-my-component")
            .timeout(30)
            .webTestKind("ping")
            .webTestName("my-webtest-my-component")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webTest = new azure_native.insights.WebTest("webTest", {
    configuration: {
        webTest: "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
    },
    frequency: 600,
    kind: azure_native.insights.WebTestKind.Ping,
    location: "South Central US",
    locations: [
        {
            location: "us-fl-mia-edge",
        },
        {
            location: "apac-hk-hkn-azr",
        },
    ],
    resourceGroupName: "my-resource-group",
    syntheticMonitorId: "my-webtest-my-component",
    timeout: 30,
    webTestKind: azure_native.insights.WebTestKind.Ping,
    webTestName: "my-webtest-my-component",
});
import pulumi
import pulumi_azure_native as azure_native
web_test = azure_native.insights.WebTest("webTest",
    configuration={
        "web_test": "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
    },
    frequency=600,
    kind=azure_native.insights.WebTestKind.PING,
    location="South Central US",
    locations=[
        {
            "location": "us-fl-mia-edge",
        },
        {
            "location": "apac-hk-hkn-azr",
        },
    ],
    resource_group_name="my-resource-group",
    synthetic_monitor_id="my-webtest-my-component",
    timeout=30,
    web_test_kind=azure_native.insights.WebTestKind.PING,
    web_test_name="my-webtest-my-component")
resources:
  webTest:
    type: azure-native:insights:WebTest
    properties:
      configuration:
        webTest: <WebTest Name="my-webtest" Id="678ddf96-1ab8-44c8-9274-123456789abc" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="30" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="" ><Items><Request Method="GET" Guid="a4162485-9114-fcfc-e086-123456789abc" Version="1.1" Url="http://my-component.azurewebsites.net" ThinkTime="0" Timeout="30" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" /></Items></WebTest>
      frequency: 600
      kind: ping
      location: South Central US
      locations:
        - location: us-fl-mia-edge
        - location: apac-hk-hkn-azr
      resourceGroupName: my-resource-group
      syntheticMonitorId: my-webtest-my-component
      timeout: 30
      webTestKind: ping
      webTestName: my-webtest-my-component
Create WebTest Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebTest(name: string, args: WebTestArgs, opts?: CustomResourceOptions);@overload
def WebTest(resource_name: str,
            args: WebTestArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def WebTest(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            locations: Optional[Sequence[WebTestGeolocationArgs]] = None,
            web_test_kind: Optional[WebTestKind] = None,
            synthetic_monitor_id: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            kind: Optional[WebTestKind] = None,
            location: Optional[str] = None,
            configuration: Optional[WebTestPropertiesConfigurationArgs] = None,
            request: Optional[WebTestPropertiesRequestArgs] = None,
            frequency: Optional[int] = None,
            retry_enabled: Optional[bool] = None,
            enabled: Optional[bool] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeout: Optional[int] = None,
            validation_rules: Optional[WebTestPropertiesValidationRulesArgs] = None,
            description: Optional[str] = None,
            web_test_name: Optional[str] = None)func NewWebTest(ctx *Context, name string, args WebTestArgs, opts ...ResourceOption) (*WebTest, error)public WebTest(string name, WebTestArgs args, CustomResourceOptions? opts = null)
public WebTest(String name, WebTestArgs args)
public WebTest(String name, WebTestArgs args, CustomResourceOptions options)
type: azure-native:insights:WebTest
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var webTestResource = new AzureNative.Insights.WebTest("webTestResource", new()
{
    Locations = new[]
    {
        new AzureNative.Insights.Inputs.WebTestGeolocationArgs
        {
            Location = "string",
        },
    },
    WebTestKind = AzureNative.Insights.WebTestKind.Ping,
    SyntheticMonitorId = "string",
    ResourceGroupName = "string",
    Kind = AzureNative.Insights.WebTestKind.Ping,
    Location = "string",
    Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
    {
        WebTest = "string",
    },
    Request = new AzureNative.Insights.Inputs.WebTestPropertiesRequestArgs
    {
        FollowRedirects = false,
        Headers = new[]
        {
            new AzureNative.Insights.Inputs.HeaderFieldArgs
            {
                HeaderFieldName = "string",
                HeaderFieldValue = "string",
            },
        },
        HttpVerb = "string",
        ParseDependentRequests = false,
        RequestBody = "string",
        RequestUrl = "string",
    },
    Frequency = 0,
    RetryEnabled = false,
    Enabled = false,
    Tags = 
    {
        { "string", "string" },
    },
    Timeout = 0,
    ValidationRules = new AzureNative.Insights.Inputs.WebTestPropertiesValidationRulesArgs
    {
        ContentValidation = new AzureNative.Insights.Inputs.WebTestPropertiesContentValidationArgs
        {
            ContentMatch = "string",
            IgnoreCase = false,
            PassIfTextFound = false,
        },
        ExpectedHttpStatusCode = 0,
        IgnoreHttpStatusCode = false,
        SSLCertRemainingLifetimeCheck = 0,
        SSLCheck = false,
    },
    Description = "string",
    WebTestName = "string",
});
example, err := insights.NewWebTest(ctx, "webTestResource", &insights.WebTestArgs{
	Locations: insights.WebTestGeolocationArray{
		&insights.WebTestGeolocationArgs{
			Location: pulumi.String("string"),
		},
	},
	WebTestKind:        insights.WebTestKindPing,
	SyntheticMonitorId: pulumi.String("string"),
	ResourceGroupName:  pulumi.String("string"),
	Kind:               insights.WebTestKindPing,
	Location:           pulumi.String("string"),
	Configuration: &insights.WebTestPropertiesConfigurationArgs{
		WebTest: pulumi.String("string"),
	},
	Request: &insights.WebTestPropertiesRequestArgs{
		FollowRedirects: pulumi.Bool(false),
		Headers: insights.HeaderFieldArray{
			&insights.HeaderFieldArgs{
				HeaderFieldName:  pulumi.String("string"),
				HeaderFieldValue: pulumi.String("string"),
			},
		},
		HttpVerb:               pulumi.String("string"),
		ParseDependentRequests: pulumi.Bool(false),
		RequestBody:            pulumi.String("string"),
		RequestUrl:             pulumi.String("string"),
	},
	Frequency:    pulumi.Int(0),
	RetryEnabled: pulumi.Bool(false),
	Enabled:      pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timeout: pulumi.Int(0),
	ValidationRules: &insights.WebTestPropertiesValidationRulesArgs{
		ContentValidation: &insights.WebTestPropertiesContentValidationArgs{
			ContentMatch:    pulumi.String("string"),
			IgnoreCase:      pulumi.Bool(false),
			PassIfTextFound: pulumi.Bool(false),
		},
		ExpectedHttpStatusCode:        pulumi.Int(0),
		IgnoreHttpStatusCode:          pulumi.Bool(false),
		SSLCertRemainingLifetimeCheck: pulumi.Int(0),
		SSLCheck:                      pulumi.Bool(false),
	},
	Description: pulumi.String("string"),
	WebTestName: pulumi.String("string"),
})
var webTestResource = new WebTest("webTestResource", WebTestArgs.builder()
    .locations(WebTestGeolocationArgs.builder()
        .location("string")
        .build())
    .webTestKind("ping")
    .syntheticMonitorId("string")
    .resourceGroupName("string")
    .kind("ping")
    .location("string")
    .configuration(WebTestPropertiesConfigurationArgs.builder()
        .webTest("string")
        .build())
    .request(WebTestPropertiesRequestArgs.builder()
        .followRedirects(false)
        .headers(HeaderFieldArgs.builder()
            .headerFieldName("string")
            .headerFieldValue("string")
            .build())
        .httpVerb("string")
        .parseDependentRequests(false)
        .requestBody("string")
        .requestUrl("string")
        .build())
    .frequency(0)
    .retryEnabled(false)
    .enabled(false)
    .tags(Map.of("string", "string"))
    .timeout(0)
    .validationRules(WebTestPropertiesValidationRulesArgs.builder()
        .contentValidation(WebTestPropertiesContentValidationArgs.builder()
            .contentMatch("string")
            .ignoreCase(false)
            .passIfTextFound(false)
            .build())
        .expectedHttpStatusCode(0)
        .ignoreHttpStatusCode(false)
        .sSLCertRemainingLifetimeCheck(0)
        .sSLCheck(false)
        .build())
    .description("string")
    .webTestName("string")
    .build());
web_test_resource = azure_native.insights.WebTest("webTestResource",
    locations=[{
        "location": "string",
    }],
    web_test_kind=azure_native.insights.WebTestKind.PING,
    synthetic_monitor_id="string",
    resource_group_name="string",
    kind=azure_native.insights.WebTestKind.PING,
    location="string",
    configuration={
        "web_test": "string",
    },
    request={
        "follow_redirects": False,
        "headers": [{
            "header_field_name": "string",
            "header_field_value": "string",
        }],
        "http_verb": "string",
        "parse_dependent_requests": False,
        "request_body": "string",
        "request_url": "string",
    },
    frequency=0,
    retry_enabled=False,
    enabled=False,
    tags={
        "string": "string",
    },
    timeout=0,
    validation_rules={
        "content_validation": {
            "content_match": "string",
            "ignore_case": False,
            "pass_if_text_found": False,
        },
        "expected_http_status_code": 0,
        "ignore_http_status_code": False,
        "s_sl_cert_remaining_lifetime_check": 0,
        "s_sl_check": False,
    },
    description="string",
    web_test_name="string")
const webTestResource = new azure_native.insights.WebTest("webTestResource", {
    locations: [{
        location: "string",
    }],
    webTestKind: azure_native.insights.WebTestKind.Ping,
    syntheticMonitorId: "string",
    resourceGroupName: "string",
    kind: azure_native.insights.WebTestKind.Ping,
    location: "string",
    configuration: {
        webTest: "string",
    },
    request: {
        followRedirects: false,
        headers: [{
            headerFieldName: "string",
            headerFieldValue: "string",
        }],
        httpVerb: "string",
        parseDependentRequests: false,
        requestBody: "string",
        requestUrl: "string",
    },
    frequency: 0,
    retryEnabled: false,
    enabled: false,
    tags: {
        string: "string",
    },
    timeout: 0,
    validationRules: {
        contentValidation: {
            contentMatch: "string",
            ignoreCase: false,
            passIfTextFound: false,
        },
        expectedHttpStatusCode: 0,
        ignoreHttpStatusCode: false,
        sSLCertRemainingLifetimeCheck: 0,
        sSLCheck: false,
    },
    description: "string",
    webTestName: "string",
});
type: azure-native:insights:WebTest
properties:
    configuration:
        webTest: string
    description: string
    enabled: false
    frequency: 0
    kind: ping
    location: string
    locations:
        - location: string
    request:
        followRedirects: false
        headers:
            - headerFieldName: string
              headerFieldValue: string
        httpVerb: string
        parseDependentRequests: false
        requestBody: string
        requestUrl: string
    resourceGroupName: string
    retryEnabled: false
    syntheticMonitorId: string
    tags:
        string: string
    timeout: 0
    validationRules:
        contentValidation:
            contentMatch: string
            ignoreCase: false
            passIfTextFound: false
        expectedHttpStatusCode: 0
        ignoreHttpStatusCode: false
        sSLCertRemainingLifetimeCheck: 0
        sSLCheck: false
    webTestKind: ping
    webTestName: string
WebTest Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The WebTest resource accepts the following input properties:
- Locations
List<Pulumi.Azure Native. Insights. Inputs. Web Test Geolocation> 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SyntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- WebTest Pulumi.Kind Azure Native. Insights. Web Test Kind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- Configuration
Pulumi.Azure Native. Insights. Inputs. Web Test Properties Configuration 
- An XML configuration specification for a WebTest.
- Description string
- User defined description for this WebTest.
- Enabled bool
- Is the test actively being monitored.
- Frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- Kind
Pulumi.Azure Native. Insights. Web Test Kind 
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- Location string
- Resource location
- Request
Pulumi.Azure Native. Insights. Inputs. Web Test Properties Request 
- The collection of request properties
- RetryEnabled bool
- Allow for retries should this WebTest fail.
- Dictionary<string, string>
- Resource tags
- Timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- ValidationRules Pulumi.Azure Native. Insights. Inputs. Web Test Properties Validation Rules 
- The collection of validation rule properties
- WebTest stringName 
- User defined name if this WebTest.
- Locations
[]WebTest Geolocation Args 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SyntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- WebTest WebKind Test Kind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- Configuration
WebTest Properties Configuration Args 
- An XML configuration specification for a WebTest.
- Description string
- User defined description for this WebTest.
- Enabled bool
- Is the test actively being monitored.
- Frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- Kind
WebTest Kind 
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- Location string
- Resource location
- Request
WebTest Properties Request Args 
- The collection of request properties
- RetryEnabled bool
- Allow for retries should this WebTest fail.
- map[string]string
- Resource tags
- Timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- ValidationRules WebTest Properties Validation Rules Args 
- The collection of validation rule properties
- WebTest stringName 
- User defined name if this WebTest.
- locations
List<WebTest Geolocation> 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- syntheticMonitor StringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- webTest WebKind Test Kind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- configuration
WebTest Properties Configuration 
- An XML configuration specification for a WebTest.
- description String
- User defined description for this WebTest.
- enabled Boolean
- Is the test actively being monitored.
- frequency Integer
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind
WebTest Kind 
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location String
- Resource location
- request
WebTest Properties Request 
- The collection of request properties
- retryEnabled Boolean
- Allow for retries should this WebTest fail.
- Map<String,String>
- Resource tags
- timeout Integer
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validationRules WebTest Properties Validation Rules 
- The collection of validation rule properties
- webTest StringName 
- User defined name if this WebTest.
- locations
WebTest Geolocation[] 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- syntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- webTest WebKind Test Kind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- configuration
WebTest Properties Configuration 
- An XML configuration specification for a WebTest.
- description string
- User defined description for this WebTest.
- enabled boolean
- Is the test actively being monitored.
- frequency number
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind
WebTest Kind 
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location string
- Resource location
- request
WebTest Properties Request 
- The collection of request properties
- retryEnabled boolean
- Allow for retries should this WebTest fail.
- {[key: string]: string}
- Resource tags
- timeout number
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validationRules WebTest Properties Validation Rules 
- The collection of validation rule properties
- webTest stringName 
- User defined name if this WebTest.
- locations
Sequence[WebTest Geolocation Args] 
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- synthetic_monitor_ strid 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- web_test_ Webkind Test Kind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- configuration
WebTest Properties Configuration Args 
- An XML configuration specification for a WebTest.
- description str
- User defined description for this WebTest.
- enabled bool
- Is the test actively being monitored.
- frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind
WebTest Kind 
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location str
- Resource location
- request
WebTest Properties Request Args 
- The collection of request properties
- retry_enabled bool
- Allow for retries should this WebTest fail.
- Mapping[str, str]
- Resource tags
- timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validation_rules WebTest Properties Validation Rules Args 
- The collection of validation rule properties
- web_test_ strname 
- User defined name if this WebTest.
- locations List<Property Map>
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- syntheticMonitor StringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- webTest "ping" | "multistep" | "standard"Kind 
- The kind of web test this is, valid choices are ping, multistep and standard.
- configuration Property Map
- An XML configuration specification for a WebTest.
- description String
- User defined description for this WebTest.
- enabled Boolean
- Is the test actively being monitored.
- frequency Number
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind "ping" | "multistep" | "standard"
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location String
- Resource location
- request Property Map
- The collection of request properties
- retryEnabled Boolean
- Allow for retries should this WebTest fail.
- Map<String>
- Resource tags
- timeout Number
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validationRules Property Map
- The collection of validation rule properties
- webTest StringName 
- User defined name if this WebTest.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebTest resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Azure resource name
- ProvisioningState string
- Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- Type string
- Azure resource type
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Azure resource name
- ProvisioningState string
- Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- Type string
- Azure resource type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Azure resource name
- provisioningState String
- Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type String
- Azure resource type
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Azure resource name
- provisioningState string
- Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type string
- Azure resource type
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Azure resource name
- provisioning_state str
- Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type str
- Azure resource type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Azure resource name
- provisioningState String
- Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type String
- Azure resource type
Supporting Types
HeaderField, HeaderFieldArgs    
- HeaderField stringName 
- The name of the header.
- HeaderField stringValue 
- The value of the header.
- HeaderField stringName 
- The name of the header.
- HeaderField stringValue 
- The value of the header.
- headerField StringName 
- The name of the header.
- headerField StringValue 
- The value of the header.
- headerField stringName 
- The name of the header.
- headerField stringValue 
- The value of the header.
- header_field_ strname 
- The name of the header.
- header_field_ strvalue 
- The value of the header.
- headerField StringName 
- The name of the header.
- headerField StringValue 
- The value of the header.
HeaderFieldResponse, HeaderFieldResponseArgs      
- HeaderField stringName 
- The name of the header.
- HeaderField stringValue 
- The value of the header.
- HeaderField stringName 
- The name of the header.
- HeaderField stringValue 
- The value of the header.
- headerField StringName 
- The name of the header.
- headerField StringValue 
- The value of the header.
- headerField stringName 
- The name of the header.
- headerField stringValue 
- The value of the header.
- header_field_ strname 
- The name of the header.
- header_field_ strvalue 
- The value of the header.
- headerField StringName 
- The name of the header.
- headerField StringValue 
- The value of the header.
WebTestGeolocation, WebTestGeolocationArgs      
- Location string
- Location ID for the WebTest to run from.
- Location string
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
- location string
- Location ID for the WebTest to run from.
- location str
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
WebTestGeolocationResponse, WebTestGeolocationResponseArgs        
- Location string
- Location ID for the WebTest to run from.
- Location string
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
- location string
- Location ID for the WebTest to run from.
- location str
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
WebTestKind, WebTestKindArgs      
- Ping
- ping
- Multistep
- multistep
- Standard
- standard
- WebTest Kind Ping 
- ping
- WebTest Kind Multistep 
- multistep
- WebTest Kind Standard 
- standard
- Ping
- ping
- Multistep
- multistep
- Standard
- standard
- Ping
- ping
- Multistep
- multistep
- Standard
- standard
- PING
- ping
- MULTISTEP
- multistep
- STANDARD
- standard
- "ping"
- ping
- "multistep"
- multistep
- "standard"
- standard
WebTestPropertiesConfiguration, WebTestPropertiesConfigurationArgs        
- WebTest string
- The XML specification of a WebTest to run against an application.
- WebTest string
- The XML specification of a WebTest to run against an application.
- webTest String
- The XML specification of a WebTest to run against an application.
- webTest string
- The XML specification of a WebTest to run against an application.
- web_test str
- The XML specification of a WebTest to run against an application.
- webTest String
- The XML specification of a WebTest to run against an application.
WebTestPropertiesContentValidation, WebTestPropertiesContentValidationArgs          
- ContentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- IgnoreCase bool
- When set, this value makes the ContentMatch validation case insensitive.
- PassIf boolText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- ContentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- IgnoreCase bool
- When set, this value makes the ContentMatch validation case insensitive.
- PassIf boolText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch String
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase Boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf BooleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf booleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content_match str
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignore_case bool
- When set, this value makes the ContentMatch validation case insensitive.
- pass_if_ booltext_ found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch String
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase Boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf BooleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
WebTestPropertiesRequest, WebTestPropertiesRequestArgs        
- FollowRedirects bool
- Follow redirects for this web test.
- Headers
List<Pulumi.Azure Native. Insights. Inputs. Header Field> 
- List of headers and their values to add to the WebTest call.
- HttpVerb string
- Http verb to use for this web test.
- ParseDependent boolRequests 
- Parse Dependent request for this WebTest.
- RequestBody string
- Base64 encoded string body to send with this web test.
- RequestUrl string
- Url location to test.
- FollowRedirects bool
- Follow redirects for this web test.
- Headers
[]HeaderField 
- List of headers and their values to add to the WebTest call.
- HttpVerb string
- Http verb to use for this web test.
- ParseDependent boolRequests 
- Parse Dependent request for this WebTest.
- RequestBody string
- Base64 encoded string body to send with this web test.
- RequestUrl string
- Url location to test.
- followRedirects Boolean
- Follow redirects for this web test.
- headers
List<HeaderField> 
- List of headers and their values to add to the WebTest call.
- httpVerb String
- Http verb to use for this web test.
- parseDependent BooleanRequests 
- Parse Dependent request for this WebTest.
- requestBody String
- Base64 encoded string body to send with this web test.
- requestUrl String
- Url location to test.
- followRedirects boolean
- Follow redirects for this web test.
- headers
HeaderField[] 
- List of headers and their values to add to the WebTest call.
- httpVerb string
- Http verb to use for this web test.
- parseDependent booleanRequests 
- Parse Dependent request for this WebTest.
- requestBody string
- Base64 encoded string body to send with this web test.
- requestUrl string
- Url location to test.
- follow_redirects bool
- Follow redirects for this web test.
- headers
Sequence[HeaderField] 
- List of headers and their values to add to the WebTest call.
- http_verb str
- Http verb to use for this web test.
- parse_dependent_ boolrequests 
- Parse Dependent request for this WebTest.
- request_body str
- Base64 encoded string body to send with this web test.
- request_url str
- Url location to test.
- followRedirects Boolean
- Follow redirects for this web test.
- headers List<Property Map>
- List of headers and their values to add to the WebTest call.
- httpVerb String
- Http verb to use for this web test.
- parseDependent BooleanRequests 
- Parse Dependent request for this WebTest.
- requestBody String
- Base64 encoded string body to send with this web test.
- requestUrl String
- Url location to test.
WebTestPropertiesResponseConfiguration, WebTestPropertiesResponseConfigurationArgs          
- WebTest string
- The XML specification of a WebTest to run against an application.
- WebTest string
- The XML specification of a WebTest to run against an application.
- webTest String
- The XML specification of a WebTest to run against an application.
- webTest string
- The XML specification of a WebTest to run against an application.
- web_test str
- The XML specification of a WebTest to run against an application.
- webTest String
- The XML specification of a WebTest to run against an application.
WebTestPropertiesResponseContentValidation, WebTestPropertiesResponseContentValidationArgs            
- ContentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- IgnoreCase bool
- When set, this value makes the ContentMatch validation case insensitive.
- PassIf boolText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- ContentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- IgnoreCase bool
- When set, this value makes the ContentMatch validation case insensitive.
- PassIf boolText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch String
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase Boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf BooleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch string
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf booleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content_match str
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignore_case bool
- When set, this value makes the ContentMatch validation case insensitive.
- pass_if_ booltext_ found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- contentMatch String
- Content to look for in the return of the WebTest. Must not be null or empty.
- ignoreCase Boolean
- When set, this value makes the ContentMatch validation case insensitive.
- passIf BooleanText Found 
- When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
WebTestPropertiesResponseRequest, WebTestPropertiesResponseRequestArgs          
- FollowRedirects bool
- Follow redirects for this web test.
- Headers
List<Pulumi.Azure Native. Insights. Inputs. Header Field Response> 
- List of headers and their values to add to the WebTest call.
- HttpVerb string
- Http verb to use for this web test.
- ParseDependent boolRequests 
- Parse Dependent request for this WebTest.
- RequestBody string
- Base64 encoded string body to send with this web test.
- RequestUrl string
- Url location to test.
- FollowRedirects bool
- Follow redirects for this web test.
- Headers
[]HeaderField Response 
- List of headers and their values to add to the WebTest call.
- HttpVerb string
- Http verb to use for this web test.
- ParseDependent boolRequests 
- Parse Dependent request for this WebTest.
- RequestBody string
- Base64 encoded string body to send with this web test.
- RequestUrl string
- Url location to test.
- followRedirects Boolean
- Follow redirects for this web test.
- headers
List<HeaderField Response> 
- List of headers and their values to add to the WebTest call.
- httpVerb String
- Http verb to use for this web test.
- parseDependent BooleanRequests 
- Parse Dependent request for this WebTest.
- requestBody String
- Base64 encoded string body to send with this web test.
- requestUrl String
- Url location to test.
- followRedirects boolean
- Follow redirects for this web test.
- headers
HeaderField Response[] 
- List of headers and their values to add to the WebTest call.
- httpVerb string
- Http verb to use for this web test.
- parseDependent booleanRequests 
- Parse Dependent request for this WebTest.
- requestBody string
- Base64 encoded string body to send with this web test.
- requestUrl string
- Url location to test.
- follow_redirects bool
- Follow redirects for this web test.
- headers
Sequence[HeaderField Response] 
- List of headers and their values to add to the WebTest call.
- http_verb str
- Http verb to use for this web test.
- parse_dependent_ boolrequests 
- Parse Dependent request for this WebTest.
- request_body str
- Base64 encoded string body to send with this web test.
- request_url str
- Url location to test.
- followRedirects Boolean
- Follow redirects for this web test.
- headers List<Property Map>
- List of headers and their values to add to the WebTest call.
- httpVerb String
- Http verb to use for this web test.
- parseDependent BooleanRequests 
- Parse Dependent request for this WebTest.
- requestBody String
- Base64 encoded string body to send with this web test.
- requestUrl String
- Url location to test.
WebTestPropertiesResponseValidationRules, WebTestPropertiesResponseValidationRulesArgs            
- ContentValidation Pulumi.Azure Native. Insights. Inputs. Web Test Properties Response Content Validation 
- The collection of content validation properties
- ExpectedHttp intStatus Code 
- Validate that the WebTest returns the http status code provided.
- IgnoreHttp boolStatus Code 
- When set, validation will ignore the status code.
- SSLCertRemaining intLifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- ContentValidation WebTest Properties Response Content Validation 
- The collection of content validation properties
- ExpectedHttp intStatus Code 
- Validate that the WebTest returns the http status code provided.
- IgnoreHttp boolStatus Code 
- When set, validation will ignore the status code.
- SSLCertRemaining intLifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- contentValidation WebTest Properties Response Content Validation 
- The collection of content validation properties
- expectedHttp IntegerStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp BooleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert IntegerRemaining Lifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- sSLCheck Boolean
- Checks to see if the SSL cert is still valid.
- contentValidation WebTest Properties Response Content Validation 
- The collection of content validation properties
- expectedHttp numberStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp booleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert numberRemaining Lifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- sSLCheck boolean
- Checks to see if the SSL cert is still valid.
- content_validation WebTest Properties Response Content Validation 
- The collection of content validation properties
- expected_http_ intstatus_ code 
- Validate that the WebTest returns the http status code provided.
- ignore_http_ boolstatus_ code 
- When set, validation will ignore the status code.
- s_sl_ intcert_ remaining_ lifetime_ check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s_sl_ boolcheck 
- Checks to see if the SSL cert is still valid.
- contentValidation Property Map
- The collection of content validation properties
- expectedHttp NumberStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp BooleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert NumberRemaining Lifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- sSLCheck Boolean
- Checks to see if the SSL cert is still valid.
WebTestPropertiesValidationRules, WebTestPropertiesValidationRulesArgs          
- ContentValidation Pulumi.Azure Native. Insights. Inputs. Web Test Properties Content Validation 
- The collection of content validation properties
- ExpectedHttp intStatus Code 
- Validate that the WebTest returns the http status code provided.
- IgnoreHttp boolStatus Code 
- When set, validation will ignore the status code.
- SSLCertRemaining intLifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- ContentValidation WebTest Properties Content Validation 
- The collection of content validation properties
- ExpectedHttp intStatus Code 
- Validate that the WebTest returns the http status code provided.
- IgnoreHttp boolStatus Code 
- When set, validation will ignore the status code.
- SSLCertRemaining intLifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- contentValidation WebTest Properties Content Validation 
- The collection of content validation properties
- expectedHttp IntegerStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp BooleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert IntegerRemaining Lifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- sSLCheck Boolean
- Checks to see if the SSL cert is still valid.
- contentValidation WebTest Properties Content Validation 
- The collection of content validation properties
- expectedHttp numberStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp booleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert numberRemaining Lifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- sSLCheck boolean
- Checks to see if the SSL cert is still valid.
- content_validation WebTest Properties Content Validation 
- The collection of content validation properties
- expected_http_ intstatus_ code 
- Validate that the WebTest returns the http status code provided.
- ignore_http_ boolstatus_ code 
- When set, validation will ignore the status code.
- s_sl_ intcert_ remaining_ lifetime_ check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s_sl_ boolcheck 
- Checks to see if the SSL cert is still valid.
- contentValidation Property Map
- The collection of content validation properties
- expectedHttp NumberStatus Code 
- Validate that the WebTest returns the http status code provided.
- ignoreHttp BooleanStatus Code 
- When set, validation will ignore the status code.
- sSLCert NumberRemaining Lifetime Check 
- A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- sSLCheck Boolean
- Checks to see if the SSL cert is still valid.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:WebTest my-webtest-my-component /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0