We recommend using Azure Native.
azure.appinsights.StandardWebTest
Explore with Pulumi AI
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={
        "url": "http://www.example.com",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("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={
        "url": "string",
        "body": "string",
        "follow_redirects_enabled": False,
        "headers": [{
            "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={
        "content": {
            "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The StandardWebTest resource accepts the following input properties:
- ApplicationInsights stringId 
- 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. 
- Request
StandardWeb Test Request 
- A requestblock as defined below.
- ResourceGroup stringName 
- 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,600and900. Defaults to300.
- 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?
- 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 StandardWeb Test Validation Rules 
- A validation_rulesblock as defined below.
- ApplicationInsights stringId 
- 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. 
- Request
StandardWeb Test Request Args 
- A requestblock as defined below.
- ResourceGroup stringName 
- 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,600and900. Defaults to300.
- 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?
- 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 StandardWeb Test Validation Rules Args 
- A validation_rulesblock as defined below.
- applicationInsights StringId 
- 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. 
- request
StandardWeb Test Request 
- A requestblock as defined below.
- resourceGroup StringName 
- 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,600and900. Defaults to300.
- 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?
- 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 StandardWeb Test Validation Rules 
- A validation_rulesblock as defined below.
- applicationInsights stringId 
- 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. 
- request
StandardWeb Test Request 
- A requestblock as defined below.
- resourceGroup stringName 
- 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,600and900. Defaults to300.
- 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?
- {[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 StandardWeb Test Validation Rules 
- A validation_rulesblock as defined below.
- application_insights_ strid 
- 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. 
- request
StandardWeb Test Request Args 
- A requestblock as defined below.
- resource_group_ strname 
- 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,600and900. Defaults to300.
- 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?
- 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 StandardWeb Test Validation Rules Args 
- A validation_rulesblock as defined below.
- applicationInsights StringId 
- 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. 
- request Property Map
- A requestblock as defined below.
- resourceGroup StringName 
- 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,600and900. Defaults to300.
- 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?
- 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_rulesblock 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.
- SyntheticMonitor stringId 
- 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.
- SyntheticMonitor stringId 
- 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.
- syntheticMonitor StringId 
- 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.
- syntheticMonitor stringId 
- 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_ strid 
- 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.
- syntheticMonitor StringId 
- 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) -> StandardWebTestfunc 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)resources:  _:    type: azure:appinsights:StandardWebTest    get:      id: ${id}- 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.
- ApplicationInsights stringId 
- 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,600and900. Defaults to300.
- GeoLocations List<string>
- Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application. 
- 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
StandardWeb Test Request 
- A requestblock as defined below.
- ResourceGroup stringName 
- 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?
- SyntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- 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 StandardWeb Test Validation Rules 
- A validation_rulesblock as defined below.
- ApplicationInsights stringId 
- 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,600and900. Defaults to300.
- GeoLocations []string
- Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application. 
- 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
StandardWeb Test Request Args 
- A requestblock as defined below.
- ResourceGroup stringName 
- 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?
- SyntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- 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 StandardWeb Test Validation Rules Args 
- A validation_rulesblock as defined below.
- applicationInsights StringId 
- 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,600and900. Defaults to300.
- geoLocations List<String>
- Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application. 
- 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
StandardWeb Test Request 
- A requestblock as defined below.
- resourceGroup StringName 
- 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?
- syntheticMonitor StringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- 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 StandardWeb Test Validation Rules 
- A validation_rulesblock as defined below.
- applicationInsights stringId 
- 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,600and900. Defaults to300.
- geoLocations string[]
- Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application. 
- 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
StandardWeb Test Request 
- A requestblock as defined below.
- resourceGroup stringName 
- 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?
- syntheticMonitor stringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- {[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 StandardWeb Test Validation Rules 
- A validation_rulesblock as defined below.
- application_insights_ strid 
- 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,600and900. Defaults to300.
- geo_locations Sequence[str]
- Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application. 
- 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
StandardWeb Test Request Args 
- A requestblock as defined below.
- resource_group_ strname 
- 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_ strid 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- 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 StandardWeb Test Validation Rules Args 
- A validation_rulesblock as defined below.
- applicationInsights StringId 
- 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,600and900. Defaults to300.
- geoLocations List<String>
- Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application. 
- 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 requestblock as defined below.
- resourceGroup StringName 
- 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?
- syntheticMonitor StringId 
- Unique ID of this WebTest. This is typically the same value as the Name field.
- 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_rulesblock as defined below.
Supporting Types
StandardWebTestRequest, StandardWebTestRequestArgs        
- Url string
- The WebTest request URL.
- Body string
- The WebTest request body.
- FollowRedirects boolEnabled 
- Should the following of redirects be enabled? Defaults to true.
- Headers
List<StandardWeb Test Request Header> 
- One or more headerblocks 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.
- ParseDependent boolRequests Enabled 
- Should the parsing of dependend requests be enabled? Defaults to true.
- Url string
- The WebTest request URL.
- Body string
- The WebTest request body.
- FollowRedirects boolEnabled 
- Should the following of redirects be enabled? Defaults to true.
- Headers
[]StandardWeb Test Request Header 
- One or more headerblocks 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.
- ParseDependent boolRequests Enabled 
- Should the parsing of dependend requests be enabled? Defaults to true.
- url String
- The WebTest request URL.
- body String
- The WebTest request body.
- followRedirects BooleanEnabled 
- Should the following of redirects be enabled? Defaults to true.
- headers
List<StandardWeb Test Request Header> 
- One or more headerblocks 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.
- parseDependent BooleanRequests Enabled 
- Should the parsing of dependend requests be enabled? Defaults to true.
- url string
- The WebTest request URL.
- body string
- The WebTest request body.
- followRedirects booleanEnabled 
- Should the following of redirects be enabled? Defaults to true.
- headers
StandardWeb Test Request Header[] 
- One or more headerblocks 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.
- parseDependent booleanRequests Enabled 
- 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_ boolenabled 
- Should the following of redirects be enabled? Defaults to true.
- headers
Sequence[StandardWeb Test Request Header] 
- One or more headerblocks 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_ boolrequests_ enabled 
- Should the parsing of dependend requests be enabled? Defaults to true.
- url String
- The WebTest request URL.
- body String
- The WebTest request body.
- followRedirects BooleanEnabled 
- Should the following of redirects be enabled? Defaults to true.
- headers List<Property Map>
- One or more headerblocks 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.
- parseDependent BooleanRequests Enabled 
- Should the parsing of dependend requests be enabled? Defaults to true.
StandardWebTestRequestHeader, StandardWebTestRequestHeaderArgs          
StandardWebTestValidationRules, StandardWebTestValidationRulesArgs          
- Content
StandardWeb Test Validation Rules Content 
- A contentblock as defined above.
- ExpectedStatus intCode 
- The expected status code of the response. Default is '200', '0' means 'response code < 400'
- SslCert intRemaining Lifetime 
- 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.
- SslCheck boolEnabled 
- Should the SSL check be enabled?
- Content
StandardWeb Test Validation Rules Content 
- A contentblock as defined above.
- ExpectedStatus intCode 
- The expected status code of the response. Default is '200', '0' means 'response code < 400'
- SslCert intRemaining Lifetime 
- 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.
- SslCheck boolEnabled 
- Should the SSL check be enabled?
- content
StandardWeb Test Validation Rules Content 
- A contentblock as defined above.
- expectedStatus IntegerCode 
- The expected status code of the response. Default is '200', '0' means 'response code < 400'
- sslCert IntegerRemaining Lifetime 
- 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.
- sslCheck BooleanEnabled 
- Should the SSL check be enabled?
- content
StandardWeb Test Validation Rules Content 
- A contentblock as defined above.
- expectedStatus numberCode 
- The expected status code of the response. Default is '200', '0' means 'response code < 400'
- sslCert numberRemaining Lifetime 
- 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.
- sslCheck booleanEnabled 
- Should the SSL check be enabled?
- content
StandardWeb Test Validation Rules Content 
- A contentblock as defined above.
- expected_status_ intcode 
- The expected status code of the response. Default is '200', '0' means 'response code < 400'
- ssl_cert_ intremaining_ lifetime 
- 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_ boolenabled 
- Should the SSL check be enabled?
- content Property Map
- A contentblock as defined above.
- expectedStatus NumberCode 
- The expected status code of the response. Default is '200', '0' means 'response code < 400'
- sslCert NumberRemaining Lifetime 
- 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.
- sslCheck BooleanEnabled 
- 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_matchvalue.
- PassIf boolText Found 
- If the content of content_matchis found, pass the test. If set tofalse, the WebTest is failing if the content ofcontent_matchis found.
- ContentMatch string
- A string value containing the content to match on.
- IgnoreCase bool
- Ignore the casing in the content_matchvalue.
- PassIf boolText Found 
- If the content of content_matchis found, pass the test. If set tofalse, the WebTest is failing if the content ofcontent_matchis found.
- contentMatch String
- A string value containing the content to match on.
- ignoreCase Boolean
- Ignore the casing in the content_matchvalue.
- passIf BooleanText Found 
- If the content of content_matchis found, pass the test. If set tofalse, the WebTest is failing if the content ofcontent_matchis found.
- contentMatch string
- A string value containing the content to match on.
- ignoreCase boolean
- Ignore the casing in the content_matchvalue.
- passIf booleanText Found 
- If the content of content_matchis found, pass the test. If set tofalse, the WebTest is failing if the content ofcontent_matchis found.
- content_match str
- A string value containing the content to match on.
- ignore_case bool
- Ignore the casing in the content_matchvalue.
- pass_if_ booltext_ found 
- If the content of content_matchis found, pass the test. If set tofalse, the WebTest is failing if the content ofcontent_matchis found.
- contentMatch String
- A string value containing the content to match on.
- ignoreCase Boolean
- Ignore the casing in the content_matchvalue.
- passIf BooleanText Found 
- If the content of content_matchis found, pass the test. If set tofalse, the WebTest is failing if the content ofcontent_matchis 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 azurermTerraform Provider.