1. Packages
  2. Azure Classic
  3. API Docs
  4. appinsights
  5. WebTest

We recommend using Azure Native.

Azure v6.12.0 published on Monday, Dec 2, 2024 by Pulumi

azure.appinsights.WebTest

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.12.0 published on Monday, Dec 2, 2024 by Pulumi

    Manages an Application Insights WebTest.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "tf-test",
        location: "West Europe",
    });
    const exampleInsights = new azure.appinsights.Insights("example", {
        name: "tf-test-appinsights",
        location: example.location,
        resourceGroupName: example.name,
        applicationType: "web",
    });
    const exampleWebTest = new azure.appinsights.WebTest("example", {
        name: "tf-test-appinsights-webtest",
        location: exampleInsights.location,
        resourceGroupName: example.name,
        applicationInsightsId: exampleInsights.id,
        kind: "ping",
        frequency: 300,
        timeout: 60,
        enabled: true,
        geoLocations: [
            "us-tx-sn1-azr",
            "us-il-ch1-azr",
        ],
        configuration: `<WebTest Name="WebTest1" Id="ABD48585-0831-40CB-9069-682EA6BB3583" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" 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="a5f10126-e4cd-570d-961c-cea43999a200" Version="1.1" Url="http://microsoft.com" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
      </Items>
    </WebTest>
    `,
    });
    export const webtestId = exampleWebTest.id;
    export const webtestsSyntheticId = exampleWebTest.syntheticMonitorId;
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="tf-test",
        location="West Europe")
    example_insights = azure.appinsights.Insights("example",
        name="tf-test-appinsights",
        location=example.location,
        resource_group_name=example.name,
        application_type="web")
    example_web_test = azure.appinsights.WebTest("example",
        name="tf-test-appinsights-webtest",
        location=example_insights.location,
        resource_group_name=example.name,
        application_insights_id=example_insights.id,
        kind="ping",
        frequency=300,
        timeout=60,
        enabled=True,
        geo_locations=[
            "us-tx-sn1-azr",
            "us-il-ch1-azr",
        ],
        configuration="""<WebTest Name="WebTest1" Id="ABD48585-0831-40CB-9069-682EA6BB3583" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" 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="a5f10126-e4cd-570d-961c-cea43999a200" Version="1.1" Url="http://microsoft.com" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
      </Items>
    </WebTest>
    """)
    pulumi.export("webtestId", example_web_test.id)
    pulumi.export("webtestsSyntheticId", example_web_test.synthetic_monitor_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("tf-test"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
    			Name:              pulumi.String("tf-test-appinsights"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			ApplicationType:   pulumi.String("web"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleWebTest, err := appinsights.NewWebTest(ctx, "example", &appinsights.WebTestArgs{
    			Name:                  pulumi.String("tf-test-appinsights-webtest"),
    			Location:              exampleInsights.Location,
    			ResourceGroupName:     example.Name,
    			ApplicationInsightsId: exampleInsights.ID(),
    			Kind:                  pulumi.String("ping"),
    			Frequency:             pulumi.Int(300),
    			Timeout:               pulumi.Int(60),
    			Enabled:               pulumi.Bool(true),
    			GeoLocations: pulumi.StringArray{
    				pulumi.String("us-tx-sn1-azr"),
    				pulumi.String("us-il-ch1-azr"),
    			},
    			Configuration: pulumi.String(`<WebTest Name="WebTest1" Id="ABD48585-0831-40CB-9069-682EA6BB3583" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" 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="a5f10126-e4cd-570d-961c-cea43999a200" Version="1.1" Url="http://microsoft.com" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
      </Items>
    </WebTest>
    `),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("webtestId", exampleWebTest.ID())
    		ctx.Export("webtestsSyntheticId", exampleWebTest.SyntheticMonitorId)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "tf-test",
            Location = "West Europe",
        });
    
        var exampleInsights = new Azure.AppInsights.Insights("example", new()
        {
            Name = "tf-test-appinsights",
            Location = example.Location,
            ResourceGroupName = example.Name,
            ApplicationType = "web",
        });
    
        var exampleWebTest = new Azure.AppInsights.WebTest("example", new()
        {
            Name = "tf-test-appinsights-webtest",
            Location = exampleInsights.Location,
            ResourceGroupName = example.Name,
            ApplicationInsightsId = exampleInsights.Id,
            Kind = "ping",
            Frequency = 300,
            Timeout = 60,
            Enabled = true,
            GeoLocations = new[]
            {
                "us-tx-sn1-azr",
                "us-il-ch1-azr",
            },
            Configuration = @"<WebTest Name=""WebTest1"" Id=""ABD48585-0831-40CB-9069-682EA6BB3583"" Enabled=""True"" CssProjectStructure="""" CssIteration="""" Timeout=""0"" 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=""a5f10126-e4cd-570d-961c-cea43999a200"" Version=""1.1"" Url=""http://microsoft.com"" ThinkTime=""0"" Timeout=""300"" ParseDependentRequests=""True"" FollowRedirects=""True"" RecordResult=""True"" Cache=""False"" ResponseTimeGoal=""0"" Encoding=""utf-8"" ExpectedHttpStatusCode=""200"" ExpectedResponseUrl="""" ReportingName="""" IgnoreHttpStatusCode=""False"" />
      </Items>
    </WebTest>
    ",
        });
    
        return new Dictionary<string, object?>
        {
            ["webtestId"] = exampleWebTest.Id,
            ["webtestsSyntheticId"] = exampleWebTest.SyntheticMonitorId,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.appinsights.Insights;
    import com.pulumi.azure.appinsights.InsightsArgs;
    import com.pulumi.azure.appinsights.WebTest;
    import com.pulumi.azure.appinsights.WebTestArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("tf-test")
                .location("West Europe")
                .build());
    
            var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
                .name("tf-test-appinsights")
                .location(example.location())
                .resourceGroupName(example.name())
                .applicationType("web")
                .build());
    
            var exampleWebTest = new WebTest("exampleWebTest", WebTestArgs.builder()
                .name("tf-test-appinsights-webtest")
                .location(exampleInsights.location())
                .resourceGroupName(example.name())
                .applicationInsightsId(exampleInsights.id())
                .kind("ping")
                .frequency(300)
                .timeout(60)
                .enabled(true)
                .geoLocations(            
                    "us-tx-sn1-azr",
                    "us-il-ch1-azr")
                .configuration("""
    <WebTest Name="WebTest1" Id="ABD48585-0831-40CB-9069-682EA6BB3583" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" 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="a5f10126-e4cd-570d-961c-cea43999a200" Version="1.1" Url="http://microsoft.com" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
      </Items>
    </WebTest>
                """)
                .build());
    
            ctx.export("webtestId", exampleWebTest.id());
            ctx.export("webtestsSyntheticId", exampleWebTest.syntheticMonitorId());
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: tf-test
          location: West Europe
      exampleInsights:
        type: azure:appinsights:Insights
        name: example
        properties:
          name: tf-test-appinsights
          location: ${example.location}
          resourceGroupName: ${example.name}
          applicationType: web
      exampleWebTest:
        type: azure:appinsights:WebTest
        name: example
        properties:
          name: tf-test-appinsights-webtest
          location: ${exampleInsights.location}
          resourceGroupName: ${example.name}
          applicationInsightsId: ${exampleInsights.id}
          kind: ping
          frequency: 300
          timeout: 60
          enabled: true
          geoLocations:
            - us-tx-sn1-azr
            - us-il-ch1-azr
          configuration: |
            <WebTest Name="WebTest1" Id="ABD48585-0831-40CB-9069-682EA6BB3583" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" 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="a5f10126-e4cd-570d-961c-cea43999a200" Version="1.1" Url="http://microsoft.com" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
              </Items>
            </WebTest>        
    outputs:
      webtestId: ${exampleWebTest.id}
      webtestsSyntheticId: ${exampleWebTest.syntheticMonitorId}
    

    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,
                resource_group_name: Optional[str] = None,
                configuration: Optional[str] = None,
                geo_locations: Optional[Sequence[str]] = None,
                kind: Optional[str] = None,
                application_insights_id: Optional[str] = None,
                description: Optional[str] = None,
                enabled: Optional[bool] = None,
                frequency: Optional[int] = None,
                location: Optional[str] = None,
                name: Optional[str] = None,
                retry_enabled: Optional[bool] = None,
                tags: Optional[Mapping[str, str]] = None,
                timeout: Optional[int] = 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:appinsights: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 Azure.AppInsights.WebTest("webTestResource", new()
    {
        ResourceGroupName = "string",
        Configuration = "string",
        GeoLocations = new[]
        {
            "string",
        },
        Kind = "string",
        ApplicationInsightsId = "string",
        Description = "string",
        Enabled = false,
        Frequency = 0,
        Location = "string",
        Name = "string",
        RetryEnabled = false,
        Tags = 
        {
            { "string", "string" },
        },
        Timeout = 0,
    });
    
    example, err := appinsights.NewWebTest(ctx, "webTestResource", &appinsights.WebTestArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Configuration:     pulumi.String("string"),
    	GeoLocations: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Kind:                  pulumi.String("string"),
    	ApplicationInsightsId: pulumi.String("string"),
    	Description:           pulumi.String("string"),
    	Enabled:               pulumi.Bool(false),
    	Frequency:             pulumi.Int(0),
    	Location:              pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	RetryEnabled:          pulumi.Bool(false),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeout: pulumi.Int(0),
    })
    
    var webTestResource = new WebTest("webTestResource", WebTestArgs.builder()
        .resourceGroupName("string")
        .configuration("string")
        .geoLocations("string")
        .kind("string")
        .applicationInsightsId("string")
        .description("string")
        .enabled(false)
        .frequency(0)
        .location("string")
        .name("string")
        .retryEnabled(false)
        .tags(Map.of("string", "string"))
        .timeout(0)
        .build());
    
    web_test_resource = azure.appinsights.WebTest("webTestResource",
        resource_group_name="string",
        configuration="string",
        geo_locations=["string"],
        kind="string",
        application_insights_id="string",
        description="string",
        enabled=False,
        frequency=0,
        location="string",
        name="string",
        retry_enabled=False,
        tags={
            "string": "string",
        },
        timeout=0)
    
    const webTestResource = new azure.appinsights.WebTest("webTestResource", {
        resourceGroupName: "string",
        configuration: "string",
        geoLocations: ["string"],
        kind: "string",
        applicationInsightsId: "string",
        description: "string",
        enabled: false,
        frequency: 0,
        location: "string",
        name: "string",
        retryEnabled: false,
        tags: {
            string: "string",
        },
        timeout: 0,
    });
    
    type: azure:appinsights:WebTest
    properties:
        applicationInsightsId: string
        configuration: string
        description: string
        enabled: false
        frequency: 0
        geoLocations:
            - string
        kind: string
        location: string
        name: string
        resourceGroupName: string
        retryEnabled: false
        tags:
            string: string
        timeout: 0
    

    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:

    ApplicationInsightsId string
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    Configuration string
    An XML configuration specification for a WebTest (see here for more information).
    GeoLocations List<string>

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    Kind string
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    Description string
    Purpose/user defined descriptive test for this WebTest.
    Enabled bool
    Is the test actively being monitored.
    Frequency int
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    Name string
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    RetryEnabled bool
    Allow for retries should this WebTest fail.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Timeout int
    Seconds until this WebTest will timeout and fail. Default is 30.
    ApplicationInsightsId string
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    Configuration string
    An XML configuration specification for a WebTest (see here for more information).
    GeoLocations []string

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    Kind string
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    Description string
    Purpose/user defined descriptive test for this WebTest.
    Enabled bool
    Is the test actively being monitored.
    Frequency int
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    Name string
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    RetryEnabled bool
    Allow for retries should this WebTest fail.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Timeout int
    Seconds until this WebTest will timeout and fail. Default is 30.
    applicationInsightsId String
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration String
    An XML configuration specification for a WebTest (see here for more information).
    geoLocations List<String>

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind String
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    description String
    Purpose/user defined descriptive test for this WebTest.
    enabled Boolean
    Is the test actively being monitored.
    frequency Integer
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name String
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    retryEnabled Boolean
    Allow for retries should this WebTest fail.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    timeout Integer
    Seconds until this WebTest will timeout and fail. Default is 30.
    applicationInsightsId string
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration string
    An XML configuration specification for a WebTest (see here for more information).
    geoLocations string[]

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind string
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    description string
    Purpose/user defined descriptive test for this WebTest.
    enabled boolean
    Is the test actively being monitored.
    frequency number
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name string
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    retryEnabled boolean
    Allow for retries should this WebTest fail.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    timeout number
    Seconds until this WebTest will timeout and fail. Default is 30.
    application_insights_id str
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration str
    An XML configuration specification for a WebTest (see here for more information).
    geo_locations Sequence[str]

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind str
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    description str
    Purpose/user defined descriptive test for this WebTest.
    enabled bool
    Is the test actively being monitored.
    frequency int
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name str
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    retry_enabled bool
    Allow for retries should this WebTest fail.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    timeout int
    Seconds until this WebTest will timeout and fail. Default is 30.
    applicationInsightsId String
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration String
    An XML configuration specification for a WebTest (see here for more information).
    geoLocations List<String>

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind String
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    description String
    Purpose/user defined descriptive test for this WebTest.
    enabled Boolean
    Is the test actively being monitored.
    frequency Number
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name String
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    retryEnabled Boolean
    Allow for retries should this WebTest fail.
    tags Map<String>
    A mapping of tags to assign to the resource.
    timeout Number
    Seconds until this WebTest will timeout and fail. Default is 30.

    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.
    SyntheticMonitorId string
    Id string
    The provider-assigned unique ID for this managed resource.
    SyntheticMonitorId string
    id String
    The provider-assigned unique ID for this managed resource.
    syntheticMonitorId String
    id string
    The provider-assigned unique ID for this managed resource.
    syntheticMonitorId string
    id str
    The provider-assigned unique ID for this managed resource.
    synthetic_monitor_id str
    id String
    The provider-assigned unique ID for this managed resource.
    syntheticMonitorId String

    Look up Existing WebTest Resource

    Get an existing WebTest resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: WebTestState, opts?: CustomResourceOptions): WebTest
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_insights_id: Optional[str] = None,
            configuration: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            frequency: Optional[int] = None,
            geo_locations: Optional[Sequence[str]] = None,
            kind: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            retry_enabled: Optional[bool] = None,
            synthetic_monitor_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeout: Optional[int] = None) -> WebTest
    func GetWebTest(ctx *Context, name string, id IDInput, state *WebTestState, opts ...ResourceOption) (*WebTest, error)
    public static WebTest Get(string name, Input<string> id, WebTestState? state, CustomResourceOptions? opts = null)
    public static WebTest get(String name, Output<String> id, WebTestState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApplicationInsightsId string
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    Configuration string
    An XML configuration specification for a WebTest (see here for more information).
    Description string
    Purpose/user defined descriptive test for this WebTest.
    Enabled bool
    Is the test actively being monitored.
    Frequency int
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    GeoLocations List<string>

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    Kind string
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    Name string
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    RetryEnabled bool
    Allow for retries should this WebTest fail.
    SyntheticMonitorId string
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Timeout int
    Seconds until this WebTest will timeout and fail. Default is 30.
    ApplicationInsightsId string
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    Configuration string
    An XML configuration specification for a WebTest (see here for more information).
    Description string
    Purpose/user defined descriptive test for this WebTest.
    Enabled bool
    Is the test actively being monitored.
    Frequency int
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    GeoLocations []string

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    Kind string
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    Name string
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    RetryEnabled bool
    Allow for retries should this WebTest fail.
    SyntheticMonitorId string
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Timeout int
    Seconds until this WebTest will timeout and fail. Default is 30.
    applicationInsightsId String
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration String
    An XML configuration specification for a WebTest (see here for more information).
    description String
    Purpose/user defined descriptive test for this WebTest.
    enabled Boolean
    Is the test actively being monitored.
    frequency Integer
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    geoLocations List<String>

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind String
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name String
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    retryEnabled Boolean
    Allow for retries should this WebTest fail.
    syntheticMonitorId String
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    timeout Integer
    Seconds until this WebTest will timeout and fail. Default is 30.
    applicationInsightsId string
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration string
    An XML configuration specification for a WebTest (see here for more information).
    description string
    Purpose/user defined descriptive test for this WebTest.
    enabled boolean
    Is the test actively being monitored.
    frequency number
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    geoLocations string[]

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind string
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name string
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    retryEnabled boolean
    Allow for retries should this WebTest fail.
    syntheticMonitorId string
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    timeout number
    Seconds until this WebTest will timeout and fail. Default is 30.
    application_insights_id str
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration str
    An XML configuration specification for a WebTest (see here for more information).
    description str
    Purpose/user defined descriptive test for this WebTest.
    enabled bool
    Is the test actively being monitored.
    frequency int
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    geo_locations Sequence[str]

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind str
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name str
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    retry_enabled bool
    Allow for retries should this WebTest fail.
    synthetic_monitor_id str
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    timeout int
    Seconds until this WebTest will timeout and fail. Default is 30.
    applicationInsightsId String
    The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
    configuration String
    An XML configuration specification for a WebTest (see here for more information).
    description String
    Purpose/user defined descriptive test for this WebTest.
    enabled Boolean
    Is the test actively being monitored.
    frequency Number
    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.
    geoLocations List<String>

    A list of where to physically run the tests from to give global coverage for accessibility of your application.

    Note: Valid options for geo locations are described here

    kind String
    The kind of web test that this web test watches. Choices are ping and multistep. Changing this forces a new resource to be created.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
    name String
    Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
    retryEnabled Boolean
    Allow for retries should this WebTest fail.
    syntheticMonitorId String
    tags Map<String>
    A mapping of tags to assign to the resource.
    timeout Number
    Seconds until this WebTest will timeout and fail. Default is 30.

    Import

    Application Insights Web Tests can be imported using the resource id, e.g.

    $ pulumi import azure:appinsights/webTest:WebTest my_test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/webTests/my_test
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.12.0 published on Monday, Dec 2, 2024 by Pulumi