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

We recommend using Azure Native.

Azure Classic v5.52.0 published on Monday, Oct 2, 2023 by Pulumi

azure.appinsights.StandardWebTest

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.52.0 published on Monday, Oct 2, 2023 by Pulumi

    Manages a Application Insights Standard WebTest.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var exampleInsights = new Azure.AppInsights.Insights("exampleInsights", new()
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            ApplicationType = "web",
        });
    
        var exampleStandardWebTest = new Azure.AppInsights.StandardWebTest("exampleStandardWebTest", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = "West Europe",
            ApplicationInsightsId = exampleInsights.Id,
            GeoLocations = new[]
            {
                "example",
            },
            Request = new Azure.AppInsights.Inputs.StandardWebTestRequestArgs
            {
                Url = "http://www.example.com",
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			ApplicationType:   pulumi.String("web"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appinsights.NewStandardWebTest(ctx, "exampleStandardWebTest", &appinsights.StandardWebTestArgs{
    			ResourceGroupName:     exampleResourceGroup.Name,
    			Location:              pulumi.String("West Europe"),
    			ApplicationInsightsId: exampleInsights.ID(),
    			GeoLocations: pulumi.StringArray{
    				pulumi.String("example"),
    			},
    			Request: &appinsights.StandardWebTestRequestArgs{
    				Url: pulumi.String("http://www.example.com"),
    			},
    		})
    		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.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.StandardWebTest;
    import com.pulumi.azure.appinsights.StandardWebTestArgs;
    import com.pulumi.azure.appinsights.inputs.StandardWebTestRequestArgs;
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
                .location("West Europe")
                .build());
    
            var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()        
                .location(exampleResourceGroup.location())
                .resourceGroupName(exampleResourceGroup.name())
                .applicationType("web")
                .build());
    
            var exampleStandardWebTest = new StandardWebTest("exampleStandardWebTest", StandardWebTestArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location("West Europe")
                .applicationInsightsId(exampleInsights.id())
                .geoLocations("example")
                .request(StandardWebTestRequestArgs.builder()
                    .url("http://www.example.com")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_insights = azure.appinsights.Insights("exampleInsights",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        application_type="web")
    example_standard_web_test = azure.appinsights.StandardWebTest("exampleStandardWebTest",
        resource_group_name=example_resource_group.name,
        location="West Europe",
        application_insights_id=example_insights.id,
        geo_locations=["example"],
        request=azure.appinsights.StandardWebTestRequestArgs(
            url="http://www.example.com",
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleInsights = new azure.appinsights.Insights("exampleInsights", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        applicationType: "web",
    });
    const exampleStandardWebTest = new azure.appinsights.StandardWebTest("exampleStandardWebTest", {
        resourceGroupName: exampleResourceGroup.name,
        location: "West Europe",
        applicationInsightsId: exampleInsights.id,
        geoLocations: ["example"],
        request: {
            url: "http://www.example.com",
        },
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      exampleInsights:
        type: azure:appinsights:Insights
        properties:
          location: ${exampleResourceGroup.location}
          resourceGroupName: ${exampleResourceGroup.name}
          applicationType: web
      exampleStandardWebTest:
        type: azure:appinsights:StandardWebTest
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: West Europe
          applicationInsightsId: ${exampleInsights.id}
          geoLocations:
            - example
          request:
            url: http://www.example.com
    

    Create StandardWebTest Resource

    new StandardWebTest(name: string, args: StandardWebTestArgs, opts?: CustomResourceOptions);
    @overload
    def StandardWebTest(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        application_insights_id: Optional[str] = None,
                        description: Optional[str] = None,
                        enabled: Optional[bool] = None,
                        frequency: Optional[int] = None,
                        geo_locations: Optional[Sequence[str]] = None,
                        location: Optional[str] = None,
                        name: Optional[str] = None,
                        request: Optional[StandardWebTestRequestArgs] = None,
                        resource_group_name: Optional[str] = None,
                        retry_enabled: Optional[bool] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        timeout: Optional[int] = None,
                        validation_rules: Optional[StandardWebTestValidationRulesArgs] = None)
    @overload
    def StandardWebTest(resource_name: str,
                        args: StandardWebTestArgs,
                        opts: Optional[ResourceOptions] = None)
    func NewStandardWebTest(ctx *Context, name string, args StandardWebTestArgs, opts ...ResourceOption) (*StandardWebTest, error)
    public StandardWebTest(string name, StandardWebTestArgs args, CustomResourceOptions? opts = null)
    public StandardWebTest(String name, StandardWebTestArgs args)
    public StandardWebTest(String name, StandardWebTestArgs args, CustomResourceOptions options)
    
    type: azure:appinsights:StandardWebTest
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args StandardWebTestArgs
    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 StandardWebTestArgs
    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 StandardWebTestArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StandardWebTestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StandardWebTestArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    StandardWebTest Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The StandardWebTest resource accepts the following input properties:

    ApplicationInsightsId string

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    GeoLocations List<string>

    Specifies 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

    Request StandardWebTestRequest

    A request block as defined below.

    ResourceGroupName string

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    Description string

    Purpose/user defined descriptive test for this WebTest.

    Enabled bool

    Should the WebTest be enabled?

    Frequency int

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    Location string

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    Name string

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    RetryEnabled bool

    Should the retry on WebTest failure be enabled?

    Tags Dictionary<string, string>

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    Timeout int

    Seconds until this WebTest will timeout and fail. Default is 30.

    ValidationRules StandardWebTestValidationRules

    A validation_rules block as defined below.

    ApplicationInsightsId string

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    GeoLocations []string

    Specifies 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

    Request StandardWebTestRequestArgs

    A request block as defined below.

    ResourceGroupName string

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    Description string

    Purpose/user defined descriptive test for this WebTest.

    Enabled bool

    Should the WebTest be enabled?

    Frequency int

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    Location string

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    Name string

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    RetryEnabled bool

    Should the retry on WebTest failure be enabled?

    Tags map[string]string

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    Timeout int

    Seconds until this WebTest will timeout and fail. Default is 30.

    ValidationRules StandardWebTestValidationRulesArgs

    A validation_rules block as defined below.

    applicationInsightsId String

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    geoLocations List<String>

    Specifies 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

    request StandardWebTestRequest

    A request block as defined below.

    resourceGroupName String

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    description String

    Purpose/user defined descriptive test for this WebTest.

    enabled Boolean

    Should the WebTest be enabled?

    frequency Integer

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    location String

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name String

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    retryEnabled Boolean

    Should the retry on WebTest failure be enabled?

    tags Map<String,String>

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout Integer

    Seconds until this WebTest will timeout and fail. Default is 30.

    validationRules StandardWebTestValidationRules

    A validation_rules block as defined below.

    applicationInsightsId string

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    geoLocations string[]

    Specifies 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

    request StandardWebTestRequest

    A request block as defined below.

    resourceGroupName string

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    description string

    Purpose/user defined descriptive test for this WebTest.

    enabled boolean

    Should the WebTest be enabled?

    frequency number

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    location string

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name string

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    retryEnabled boolean

    Should the retry on WebTest failure be enabled?

    tags {[key: string]: string}

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout number

    Seconds until this WebTest will timeout and fail. Default is 30.

    validationRules StandardWebTestValidationRules

    A validation_rules block as defined below.

    application_insights_id str

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    geo_locations Sequence[str]

    Specifies 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

    request StandardWebTestRequestArgs

    A request block as defined below.

    resource_group_name str

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    description str

    Purpose/user defined descriptive test for this WebTest.

    enabled bool

    Should the WebTest be enabled?

    frequency int

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    location str

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name str

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    retry_enabled bool

    Should the retry on WebTest failure be enabled?

    tags Mapping[str, str]

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout int

    Seconds until this WebTest will timeout and fail. Default is 30.

    validation_rules StandardWebTestValidationRulesArgs

    A validation_rules block as defined below.

    applicationInsightsId String

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    geoLocations List<String>

    Specifies 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

    request Property Map

    A request block as defined below.

    resourceGroupName String

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    description String

    Purpose/user defined descriptive test for this WebTest.

    enabled Boolean

    Should the WebTest be enabled?

    frequency Number

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    location String

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name String

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    retryEnabled Boolean

    Should the retry on WebTest failure be enabled?

    tags Map<String>

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout Number

    Seconds until this WebTest will timeout and fail. Default is 30.

    validationRules Property Map

    A validation_rules block as defined below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StandardWebTest resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    SyntheticMonitorId string

    Unique ID of this WebTest. This is typically the same value as the Name field.

    Id string

    The provider-assigned unique ID for this managed resource.

    SyntheticMonitorId string

    Unique ID of this WebTest. This is typically the same value as the Name field.

    id String

    The provider-assigned unique ID for this managed resource.

    syntheticMonitorId String

    Unique ID of this WebTest. This is typically the same value as the Name field.

    id string

    The provider-assigned unique ID for this managed resource.

    syntheticMonitorId string

    Unique ID of this WebTest. This is typically the same value as the Name field.

    id str

    The provider-assigned unique ID for this managed resource.

    synthetic_monitor_id str

    Unique ID of this WebTest. This is typically the same value as the Name field.

    id String

    The provider-assigned unique ID for this managed resource.

    syntheticMonitorId String

    Unique ID of this WebTest. This is typically the same value as the Name field.

    Look up Existing StandardWebTest Resource

    Get an existing StandardWebTest 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?: StandardWebTestState, opts?: CustomResourceOptions): StandardWebTest
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_insights_id: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            frequency: Optional[int] = None,
            geo_locations: Optional[Sequence[str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            request: Optional[StandardWebTestRequestArgs] = 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,
            validation_rules: Optional[StandardWebTestValidationRulesArgs] = None) -> StandardWebTest
    func GetStandardWebTest(ctx *Context, name string, id IDInput, state *StandardWebTestState, opts ...ResourceOption) (*StandardWebTest, error)
    public static StandardWebTest Get(string name, Input<string> id, StandardWebTestState? state, CustomResourceOptions? opts = null)
    public static StandardWebTest get(String name, Output<String> id, StandardWebTestState 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 instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    Description string

    Purpose/user defined descriptive test for this WebTest.

    Enabled bool

    Should the WebTest be enabled?

    Frequency int

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    GeoLocations List<string>

    Specifies 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

    Location string

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    Name string

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    Request StandardWebTestRequest

    A request block as defined below.

    ResourceGroupName string

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    RetryEnabled bool

    Should the retry on WebTest failure be enabled?

    SyntheticMonitorId string

    Unique ID of this WebTest. This is typically the same value as the Name field.

    Tags Dictionary<string, string>

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    Timeout int

    Seconds until this WebTest will timeout and fail. Default is 30.

    ValidationRules StandardWebTestValidationRules

    A validation_rules block as defined below.

    ApplicationInsightsId string

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    Description string

    Purpose/user defined descriptive test for this WebTest.

    Enabled bool

    Should the WebTest be enabled?

    Frequency int

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    GeoLocations []string

    Specifies 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

    Location string

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    Name string

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    Request StandardWebTestRequestArgs

    A request block as defined below.

    ResourceGroupName string

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    RetryEnabled bool

    Should the retry on WebTest failure be enabled?

    SyntheticMonitorId string

    Unique ID of this WebTest. This is typically the same value as the Name field.

    Tags map[string]string

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    Timeout int

    Seconds until this WebTest will timeout and fail. Default is 30.

    ValidationRules StandardWebTestValidationRulesArgs

    A validation_rules block as defined below.

    applicationInsightsId String

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    description String

    Purpose/user defined descriptive test for this WebTest.

    enabled Boolean

    Should the WebTest be enabled?

    frequency Integer

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    geoLocations List<String>

    Specifies 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

    location String

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name String

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    request StandardWebTestRequest

    A request block as defined below.

    resourceGroupName String

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    retryEnabled Boolean

    Should the retry on WebTest failure be enabled?

    syntheticMonitorId String

    Unique ID of this WebTest. This is typically the same value as the Name field.

    tags Map<String,String>

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout Integer

    Seconds until this WebTest will timeout and fail. Default is 30.

    validationRules StandardWebTestValidationRules

    A validation_rules block as defined below.

    applicationInsightsId string

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    description string

    Purpose/user defined descriptive test for this WebTest.

    enabled boolean

    Should the WebTest be enabled?

    frequency number

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    geoLocations string[]

    Specifies 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

    location string

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name string

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    request StandardWebTestRequest

    A request block as defined below.

    resourceGroupName string

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    retryEnabled boolean

    Should the retry on WebTest failure be enabled?

    syntheticMonitorId string

    Unique ID of this WebTest. This is typically the same value as the Name field.

    tags {[key: string]: string}

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout number

    Seconds until this WebTest will timeout and fail. Default is 30.

    validationRules StandardWebTestValidationRules

    A validation_rules block as defined below.

    application_insights_id str

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    description str

    Purpose/user defined descriptive test for this WebTest.

    enabled bool

    Should the WebTest be enabled?

    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]

    Specifies 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

    location str

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name str

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    request StandardWebTestRequestArgs

    A request block as defined below.

    resource_group_name str

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    retry_enabled bool

    Should the retry on WebTest failure be enabled?

    synthetic_monitor_id str

    Unique ID of this WebTest. This is typically the same value as the Name field.

    tags Mapping[str, str]

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout int

    Seconds until this WebTest will timeout and fail. Default is 30.

    validation_rules StandardWebTestValidationRulesArgs

    A validation_rules block as defined below.

    applicationInsightsId String

    The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

    description String

    Purpose/user defined descriptive test for this WebTest.

    enabled Boolean

    Should the WebTest be enabled?

    frequency Number

    Interval in seconds between test runs for this WebTest. Valid options are 300, 600 and 900. Defaults to 300.

    geoLocations List<String>

    Specifies 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

    location String

    The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

    name String

    The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

    request Property Map

    A request block as defined below.

    resourceGroupName String

    The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

    retryEnabled Boolean

    Should the retry on WebTest failure be enabled?

    syntheticMonitorId String

    Unique ID of this WebTest. This is typically the same value as the Name field.

    tags Map<String>

    A mapping of tags which should be assigned to the Application Insights Standard WebTest.

    timeout Number

    Seconds until this WebTest will timeout and fail. Default is 30.

    validationRules Property Map

    A validation_rules block as defined below.

    Supporting Types

    StandardWebTestRequest, StandardWebTestRequestArgs

    Url string

    The WebTest request URL.

    Body string

    The WebTest request body.

    FollowRedirectsEnabled bool

    Should the following of redirects be enabled? Defaults to true.

    Headers List<StandardWebTestRequestHeader>

    One or more header blocks as defined above.

    HttpVerb string

    Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', and 'DELETE'.

    ParseDependentRequestsEnabled bool

    Should the parsing of dependend requests be enabled? Defaults to true.

    Url string

    The WebTest request URL.

    Body string

    The WebTest request body.

    FollowRedirectsEnabled bool

    Should the following of redirects be enabled? Defaults to true.

    Headers []StandardWebTestRequestHeader

    One or more header blocks as defined above.

    HttpVerb string

    Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', and 'DELETE'.

    ParseDependentRequestsEnabled bool

    Should the parsing of dependend requests be enabled? Defaults to true.

    url String

    The WebTest request URL.

    body String

    The WebTest request body.

    followRedirectsEnabled Boolean

    Should the following of redirects be enabled? Defaults to true.

    headers List<StandardWebTestRequestHeader>

    One or more header blocks as defined above.

    httpVerb String

    Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', and 'DELETE'.

    parseDependentRequestsEnabled Boolean

    Should the parsing of dependend requests be enabled? Defaults to true.

    url string

    The WebTest request URL.

    body string

    The WebTest request body.

    followRedirectsEnabled boolean

    Should the following of redirects be enabled? Defaults to true.

    headers StandardWebTestRequestHeader[]

    One or more header blocks as defined above.

    httpVerb string

    Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', and 'DELETE'.

    parseDependentRequestsEnabled boolean

    Should the parsing of dependend requests be enabled? Defaults to true.

    url str

    The WebTest request URL.

    body str

    The WebTest request body.

    follow_redirects_enabled bool

    Should the following of redirects be enabled? Defaults to true.

    headers Sequence[StandardWebTestRequestHeader]

    One or more header blocks as defined above.

    http_verb str

    Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', and 'DELETE'.

    parse_dependent_requests_enabled bool

    Should the parsing of dependend requests be enabled? Defaults to true.

    url String

    The WebTest request URL.

    body String

    The WebTest request body.

    followRedirectsEnabled Boolean

    Should the following of redirects be enabled? Defaults to true.

    headers List<Property Map>

    One or more header blocks as defined above.

    httpVerb String

    Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', and 'DELETE'.

    parseDependentRequestsEnabled Boolean

    Should the parsing of dependend requests be enabled? Defaults to true.

    StandardWebTestRequestHeader, StandardWebTestRequestHeaderArgs

    Name string

    The name which should be used for a header in the request.

    Value string

    The value which should be used for a header in the request.

    Name string

    The name which should be used for a header in the request.

    Value string

    The value which should be used for a header in the request.

    name String

    The name which should be used for a header in the request.

    value String

    The value which should be used for a header in the request.

    name string

    The name which should be used for a header in the request.

    value string

    The value which should be used for a header in the request.

    name str

    The name which should be used for a header in the request.

    value str

    The value which should be used for a header in the request.

    name String

    The name which should be used for a header in the request.

    value String

    The value which should be used for a header in the request.

    StandardWebTestValidationRules, StandardWebTestValidationRulesArgs

    Content StandardWebTestValidationRulesContent

    A content block as defined above.

    ExpectedStatusCode int

    The expected status code of the response. Default is '200', '0' means 'response code < 400'

    SslCertRemainingLifetime int

    The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

    SslCheckEnabled bool

    Should the SSL check be enabled?

    Content StandardWebTestValidationRulesContent

    A content block as defined above.

    ExpectedStatusCode int

    The expected status code of the response. Default is '200', '0' means 'response code < 400'

    SslCertRemainingLifetime int

    The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

    SslCheckEnabled bool

    Should the SSL check be enabled?

    content StandardWebTestValidationRulesContent

    A content block as defined above.

    expectedStatusCode Integer

    The expected status code of the response. Default is '200', '0' means 'response code < 400'

    sslCertRemainingLifetime Integer

    The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

    sslCheckEnabled Boolean

    Should the SSL check be enabled?

    content StandardWebTestValidationRulesContent

    A content block as defined above.

    expectedStatusCode number

    The expected status code of the response. Default is '200', '0' means 'response code < 400'

    sslCertRemainingLifetime number

    The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

    sslCheckEnabled boolean

    Should the SSL check be enabled?

    content StandardWebTestValidationRulesContent

    A content block as defined above.

    expected_status_code int

    The expected status code of the response. Default is '200', '0' means 'response code < 400'

    ssl_cert_remaining_lifetime int

    The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

    ssl_check_enabled bool

    Should the SSL check be enabled?

    content Property Map

    A content block as defined above.

    expectedStatusCode Number

    The expected status code of the response. Default is '200', '0' means 'response code < 400'

    sslCertRemainingLifetime Number

    The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

    sslCheckEnabled Boolean

    Should the SSL check be enabled?

    StandardWebTestValidationRulesContent, StandardWebTestValidationRulesContentArgs

    ContentMatch string

    A string value containing the content to match on.

    IgnoreCase bool

    Ignore the casing in the content_match value.

    PassIfTextFound bool

    If the content of content_match is found, pass the test. If set to false, the WebTest is failing if the content of content_match is found.

    ContentMatch string

    A string value containing the content to match on.

    IgnoreCase bool

    Ignore the casing in the content_match value.

    PassIfTextFound bool

    If the content of content_match is found, pass the test. If set to false, the WebTest is failing if the content of content_match is found.

    contentMatch String

    A string value containing the content to match on.

    ignoreCase Boolean

    Ignore the casing in the content_match value.

    passIfTextFound Boolean

    If the content of content_match is found, pass the test. If set to false, the WebTest is failing if the content of content_match is found.

    contentMatch string

    A string value containing the content to match on.

    ignoreCase boolean

    Ignore the casing in the content_match value.

    passIfTextFound boolean

    If the content of content_match is found, pass the test. If set to false, the WebTest is failing if the content of content_match is found.

    content_match str

    A string value containing the content to match on.

    ignore_case bool

    Ignore the casing in the content_match value.

    pass_if_text_found bool

    If the content of content_match is found, pass the test. If set to false, the WebTest is failing if the content of content_match is found.

    contentMatch String

    A string value containing the content to match on.

    ignoreCase Boolean

    Ignore the casing in the content_match value.

    passIfTextFound Boolean

    If the content of content_match is found, pass the test. If set to false, the WebTest is failing if the content of content_match is found.

    Import

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

     $ pulumi import azure:appinsights/standardWebTest:StandardWebTest example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Insights/webTests/appinsightswebtest
    

    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 Classic v5.52.0 published on Monday, Oct 2, 2023 by Pulumi