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

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.appinsights.StandardWebTest

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Manages a Application Insights Standard WebTest.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "rg-example",
        location: "West Europe",
    });
    const exampleInsights = new azure.appinsights.Insights("example", {
        name: "example",
        location: example.location,
        resourceGroupName: example.name,
        applicationType: "web",
    });
    const exampleStandardWebTest = new azure.appinsights.StandardWebTest("example", {
        name: "example-test",
        resourceGroupName: example.name,
        location: "West Europe",
        applicationInsightsId: exampleInsights.id,
        geoLocations: ["example"],
        request: {
            url: "http://www.example.com",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="rg-example",
        location="West Europe")
    example_insights = azure.appinsights.Insights("example",
        name="example",
        location=example.location,
        resource_group_name=example.name,
        application_type="web")
    example_standard_web_test = azure.appinsights.StandardWebTest("example",
        name="example-test",
        resource_group_name=example.name,
        location="West Europe",
        application_insights_id=example_insights.id,
        geo_locations=["example"],
        request=azure.appinsights.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 {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("rg-example"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
    			Name:              pulumi.String("example"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			ApplicationType:   pulumi.String("web"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appinsights.NewStandardWebTest(ctx, "example", &appinsights.StandardWebTestArgs{
    			Name:                  pulumi.String("example-test"),
    			ResourceGroupName:     example.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
    	})
    }
    
    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 = "rg-example",
            Location = "West Europe",
        });
    
        var exampleInsights = new Azure.AppInsights.Insights("example", new()
        {
            Name = "example",
            Location = example.Location,
            ResourceGroupName = example.Name,
            ApplicationType = "web",
        });
    
        var exampleStandardWebTest = new Azure.AppInsights.StandardWebTest("example", new()
        {
            Name = "example-test",
            ResourceGroupName = example.Name,
            Location = "West Europe",
            ApplicationInsightsId = exampleInsights.Id,
            GeoLocations = new[]
            {
                "example",
            },
            Request = new Azure.AppInsights.Inputs.StandardWebTestRequestArgs
            {
                Url = "http://www.example.com",
            },
        });
    
    });
    
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("rg-example")
                .location("West Europe")
                .build());
    
            var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
                .name("example")
                .location(example.location())
                .resourceGroupName(example.name())
                .applicationType("web")
                .build());
    
            var exampleStandardWebTest = new StandardWebTest("exampleStandardWebTest", StandardWebTestArgs.builder()
                .name("example-test")
                .resourceGroupName(example.name())
                .location("West Europe")
                .applicationInsightsId(exampleInsights.id())
                .geoLocations("example")
                .request(StandardWebTestRequestArgs.builder()
                    .url("http://www.example.com")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: rg-example
          location: West Europe
      exampleInsights:
        type: azure:appinsights:Insights
        name: example
        properties:
          name: example
          location: ${example.location}
          resourceGroupName: ${example.name}
          applicationType: web
      exampleStandardWebTest:
        type: azure:appinsights:StandardWebTest
        name: example
        properties:
          name: example-test
          resourceGroupName: ${example.name}
          location: West Europe
          applicationInsightsId: ${exampleInsights.id}
          geoLocations:
            - example
          request:
            url: http://www.example.com
    

    Create StandardWebTest Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StandardWebTest(name: string, args: StandardWebTestArgs, opts?: CustomResourceOptions);
    @overload
    def StandardWebTest(resource_name: str,
                        args: StandardWebTestArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def StandardWebTest(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        geo_locations: Optional[Sequence[str]] = None,
                        resource_group_name: Optional[str] = None,
                        request: Optional[StandardWebTestRequestArgs] = None,
                        application_insights_id: Optional[str] = None,
                        name: Optional[str] = None,
                        location: Optional[str] = None,
                        frequency: Optional[int] = None,
                        enabled: Optional[bool] = None,
                        description: Optional[str] = None,
                        retry_enabled: Optional[bool] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        timeout: Optional[int] = None,
                        validation_rules: Optional[StandardWebTestValidationRulesArgs] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var standardWebTestResource = new Azure.AppInsights.StandardWebTest("standardWebTestResource", new()
    {
        GeoLocations = new[]
        {
            "string",
        },
        ResourceGroupName = "string",
        Request = new Azure.AppInsights.Inputs.StandardWebTestRequestArgs
        {
            Url = "string",
            Body = "string",
            FollowRedirectsEnabled = false,
            Headers = new[]
            {
                new Azure.AppInsights.Inputs.StandardWebTestRequestHeaderArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            HttpVerb = "string",
            ParseDependentRequestsEnabled = false,
        },
        ApplicationInsightsId = "string",
        Name = "string",
        Location = "string",
        Frequency = 0,
        Enabled = false,
        Description = "string",
        RetryEnabled = false,
        Tags = 
        {
            { "string", "string" },
        },
        Timeout = 0,
        ValidationRules = new Azure.AppInsights.Inputs.StandardWebTestValidationRulesArgs
        {
            Content = new Azure.AppInsights.Inputs.StandardWebTestValidationRulesContentArgs
            {
                ContentMatch = "string",
                IgnoreCase = false,
                PassIfTextFound = false,
            },
            ExpectedStatusCode = 0,
            SslCertRemainingLifetime = 0,
            SslCheckEnabled = false,
        },
    });
    
    example, err := appinsights.NewStandardWebTest(ctx, "standardWebTestResource", &appinsights.StandardWebTestArgs{
    	GeoLocations: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	Request: &appinsights.StandardWebTestRequestArgs{
    		Url:                    pulumi.String("string"),
    		Body:                   pulumi.String("string"),
    		FollowRedirectsEnabled: pulumi.Bool(false),
    		Headers: appinsights.StandardWebTestRequestHeaderArray{
    			&appinsights.StandardWebTestRequestHeaderArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		HttpVerb:                      pulumi.String("string"),
    		ParseDependentRequestsEnabled: pulumi.Bool(false),
    	},
    	ApplicationInsightsId: pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	Location:              pulumi.String("string"),
    	Frequency:             pulumi.Int(0),
    	Enabled:               pulumi.Bool(false),
    	Description:           pulumi.String("string"),
    	RetryEnabled:          pulumi.Bool(false),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeout: pulumi.Int(0),
    	ValidationRules: &appinsights.StandardWebTestValidationRulesArgs{
    		Content: &appinsights.StandardWebTestValidationRulesContentArgs{
    			ContentMatch:    pulumi.String("string"),
    			IgnoreCase:      pulumi.Bool(false),
    			PassIfTextFound: pulumi.Bool(false),
    		},
    		ExpectedStatusCode:       pulumi.Int(0),
    		SslCertRemainingLifetime: pulumi.Int(0),
    		SslCheckEnabled:          pulumi.Bool(false),
    	},
    })
    
    var standardWebTestResource = new StandardWebTest("standardWebTestResource", StandardWebTestArgs.builder()
        .geoLocations("string")
        .resourceGroupName("string")
        .request(StandardWebTestRequestArgs.builder()
            .url("string")
            .body("string")
            .followRedirectsEnabled(false)
            .headers(StandardWebTestRequestHeaderArgs.builder()
                .name("string")
                .value("string")
                .build())
            .httpVerb("string")
            .parseDependentRequestsEnabled(false)
            .build())
        .applicationInsightsId("string")
        .name("string")
        .location("string")
        .frequency(0)
        .enabled(false)
        .description("string")
        .retryEnabled(false)
        .tags(Map.of("string", "string"))
        .timeout(0)
        .validationRules(StandardWebTestValidationRulesArgs.builder()
            .content(StandardWebTestValidationRulesContentArgs.builder()
                .contentMatch("string")
                .ignoreCase(false)
                .passIfTextFound(false)
                .build())
            .expectedStatusCode(0)
            .sslCertRemainingLifetime(0)
            .sslCheckEnabled(false)
            .build())
        .build());
    
    standard_web_test_resource = azure.appinsights.StandardWebTest("standardWebTestResource",
        geo_locations=["string"],
        resource_group_name="string",
        request=azure.appinsights.StandardWebTestRequestArgs(
            url="string",
            body="string",
            follow_redirects_enabled=False,
            headers=[azure.appinsights.StandardWebTestRequestHeaderArgs(
                name="string",
                value="string",
            )],
            http_verb="string",
            parse_dependent_requests_enabled=False,
        ),
        application_insights_id="string",
        name="string",
        location="string",
        frequency=0,
        enabled=False,
        description="string",
        retry_enabled=False,
        tags={
            "string": "string",
        },
        timeout=0,
        validation_rules=azure.appinsights.StandardWebTestValidationRulesArgs(
            content=azure.appinsights.StandardWebTestValidationRulesContentArgs(
                content_match="string",
                ignore_case=False,
                pass_if_text_found=False,
            ),
            expected_status_code=0,
            ssl_cert_remaining_lifetime=0,
            ssl_check_enabled=False,
        ))
    
    const standardWebTestResource = new azure.appinsights.StandardWebTest("standardWebTestResource", {
        geoLocations: ["string"],
        resourceGroupName: "string",
        request: {
            url: "string",
            body: "string",
            followRedirectsEnabled: false,
            headers: [{
                name: "string",
                value: "string",
            }],
            httpVerb: "string",
            parseDependentRequestsEnabled: false,
        },
        applicationInsightsId: "string",
        name: "string",
        location: "string",
        frequency: 0,
        enabled: false,
        description: "string",
        retryEnabled: false,
        tags: {
            string: "string",
        },
        timeout: 0,
        validationRules: {
            content: {
                contentMatch: "string",
                ignoreCase: false,
                passIfTextFound: false,
            },
            expectedStatusCode: 0,
            sslCertRemainingLifetime: 0,
            sslCheckEnabled: false,
        },
    });
    
    type: azure:appinsights:StandardWebTest
    properties:
        applicationInsightsId: string
        description: string
        enabled: false
        frequency: 0
        geoLocations:
            - string
        location: string
        name: string
        request:
            body: string
            followRedirectsEnabled: false
            headers:
                - name: string
                  value: string
            httpVerb: string
            parseDependentRequestsEnabled: false
            url: string
        resourceGroupName: string
        retryEnabled: false
        tags:
            string: string
        timeout: 0
        validationRules:
            content:
                contentMatch: string
                ignoreCase: false
                passIfTextFound: false
            expectedStatusCode: 0
            sslCertRemainingLifetime: 0
            sslCheckEnabled: false
    

    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', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to GET.
    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', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to GET.
    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', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to GET.
    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', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to GET.
    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', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to GET.
    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', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to GET.
    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
    

    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 Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi