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",
"followRedirectsEnabled": False,
"headers": [{
"name": "string",
"value": "string",
}],
"httpVerb": "string",
"parseDependentRequestsEnabled": 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": {
"contentMatch": "string",
"ignoreCase": False,
"passIfTextFound": False,
},
"expectedStatusCode": 0,
"sslCertRemainingLifetime": 0,
"sslCheckEnabled": 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:
- Application
Insights 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.
- Geo
Locations List<string> Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.
- Request
Standard
Web Test Request - A
request
block as defined below. - Resource
Group 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
,600
and900
. 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.
- Retry
Enabled 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
. - Validation
Rules StandardWeb Test Validation Rules - A
validation_rules
block as defined below.
- Application
Insights 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.
- Geo
Locations []string Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.
- Request
Standard
Web Test Request Args - A
request
block as defined below. - Resource
Group 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
,600
and900
. 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.
- Retry
Enabled 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
. - Validation
Rules StandardWeb Test Validation Rules Args - A
validation_rules
block as defined below.
- application
Insights 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.
- geo
Locations List<String> Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.
- request
Standard
Web Test Request - A
request
block as defined below. - resource
Group 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
,600
and900
. 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.
- retry
Enabled 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
. - validation
Rules StandardWeb Test Validation Rules - A
validation_rules
block as defined below.
- application
Insights 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.
- geo
Locations string[] Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.
- request
Standard
Web Test Request - A
request
block as defined below. - resource
Group 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
,600
and900
. 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.
- retry
Enabled 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
. - validation
Rules StandardWeb Test Validation Rules - A
validation_rules
block 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
Standard
Web Test Request Args - A
request
block 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
,600
and900
. 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_rules
block as defined below.
- application
Insights 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.
- geo
Locations 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
request
block as defined below. - resource
Group 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
,600
and900
. 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.
- retry
Enabled 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
. - validation
Rules 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.
- Synthetic
Monitor 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.
- Synthetic
Monitor 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.
- synthetic
Monitor 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.
- synthetic
Monitor 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.
- synthetic
Monitor 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) -> 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.
- Application
Insights 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
,600
and900
. Defaults to300
. - Geo
Locations 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
Standard
Web Test Request - A
request
block as defined below. - Resource
Group 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.
- Retry
Enabled bool - Should the retry on WebTest failure be enabled?
- Synthetic
Monitor 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
. - Validation
Rules StandardWeb Test Validation Rules - A
validation_rules
block as defined below.
- Application
Insights 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
,600
and900
. Defaults to300
. - Geo
Locations []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
Standard
Web Test Request Args - A
request
block as defined below. - Resource
Group 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.
- Retry
Enabled bool - Should the retry on WebTest failure be enabled?
- Synthetic
Monitor 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
. - Validation
Rules StandardWeb Test Validation Rules Args - A
validation_rules
block as defined below.
- application
Insights 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
,600
and900
. Defaults to300
. - geo
Locations 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
Standard
Web Test Request - A
request
block as defined below. - resource
Group 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.
- retry
Enabled Boolean - Should the retry on WebTest failure be enabled?
- synthetic
Monitor 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
. - validation
Rules StandardWeb Test Validation Rules - A
validation_rules
block as defined below.
- application
Insights 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
,600
and900
. Defaults to300
. - geo
Locations 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
Standard
Web Test Request - A
request
block as defined below. - resource
Group 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.
- retry
Enabled boolean - Should the retry on WebTest failure be enabled?
- synthetic
Monitor 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
. - validation
Rules StandardWeb Test Validation Rules - A
validation_rules
block 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
,600
and900
. 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
Standard
Web Test Request Args - A
request
block 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_rules
block as defined below.
- application
Insights 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
,600
and900
. Defaults to300
. - geo
Locations 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
request
block as defined below. - resource
Group 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.
- retry
Enabled Boolean - Should the retry on WebTest failure be enabled?
- synthetic
Monitor 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
. - validation
Rules 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.
- Follow
Redirects boolEnabled - Should the following of redirects be enabled? Defaults to
true
. - Headers
List<Standard
Web Test Request Header> - One or more
header
blocks as defined above. - Http
Verb string - 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.
- Follow
Redirects boolEnabled - Should the following of redirects be enabled? Defaults to
true
. - Headers
[]Standard
Web Test Request Header - One or more
header
blocks as defined above. - Http
Verb string - 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.
- follow
Redirects BooleanEnabled - Should the following of redirects be enabled? Defaults to
true
. - headers
List<Standard
Web Test Request Header> - One or more
header
blocks as defined above. - http
Verb String - Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to
GET
. - parse
Dependent 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.
- follow
Redirects booleanEnabled - Should the following of redirects be enabled? Defaults to
true
. - headers
Standard
Web Test Request Header[] - One or more
header
blocks as defined above. - http
Verb string - Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to
GET
. - parse
Dependent 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[Standard
Web Test Request Header] - 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_ 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.
- follow
Redirects BooleanEnabled - Should the following of redirects be enabled? Defaults to
true
. - headers List<Property Map>
- One or more
header
blocks as defined above. - http
Verb String - Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to
GET
. - parse
Dependent BooleanRequests Enabled - Should the parsing of dependend requests be enabled? Defaults to
true
.
StandardWebTestRequestHeader, StandardWebTestRequestHeaderArgs
StandardWebTestValidationRules, StandardWebTestValidationRulesArgs
- Content
Standard
Web Test Validation Rules Content - A
content
block 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
Standard
Web Test Validation Rules Content - A
content
block 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
Standard
Web Test Validation Rules Content - A
content
block as defined above. - expected
Status IntegerCode - The expected status code of the response. Default is '200', '0' means 'response code < 400'
- ssl
Cert 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.
- ssl
Check BooleanEnabled - Should the SSL check be enabled?
- content
Standard
Web Test Validation Rules Content - A
content
block as defined above. - expected
Status numberCode - The expected status code of the response. Default is '200', '0' means 'response code < 400'
- ssl
Cert 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.
- ssl
Check booleanEnabled - Should the SSL check be enabled?
- content
Standard
Web Test Validation Rules Content - A
content
block 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
content
block as defined above. - expected
Status NumberCode - The expected status code of the response. Default is '200', '0' means 'response code < 400'
- ssl
Cert 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.
- ssl
Check BooleanEnabled - Should the SSL check be enabled?
StandardWebTestValidationRulesContent, StandardWebTestValidationRulesContentArgs
- Content
Match string - A string value containing the content to match on.
- Ignore
Case bool - Ignore the casing in the
content_match
value. - Pass
If boolText Found - If the content of
content_match
is found, pass the test. If set tofalse
, the WebTest is failing if the content ofcontent_match
is found.
- Content
Match string - A string value containing the content to match on.
- Ignore
Case bool - Ignore the casing in the
content_match
value. - Pass
If boolText Found - If the content of
content_match
is found, pass the test. If set tofalse
, the WebTest is failing if the content ofcontent_match
is found.
- content
Match String - A string value containing the content to match on.
- ignore
Case Boolean - Ignore the casing in the
content_match
value. - pass
If BooleanText Found - If the content of
content_match
is found, pass the test. If set tofalse
, the WebTest is failing if the content ofcontent_match
is found.
- content
Match string - A string value containing the content to match on.
- ignore
Case boolean - Ignore the casing in the
content_match
value. - pass
If booleanText Found - If the content of
content_match
is found, pass the test. If set tofalse
, the WebTest is failing if the content ofcontent_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_ booltext_ found - If the content of
content_match
is found, pass the test. If set tofalse
, the WebTest is failing if the content ofcontent_match
is found.
- content
Match String - A string value containing the content to match on.
- ignore
Case Boolean - Ignore the casing in the
content_match
value. - pass
If BooleanText Found - If the content of
content_match
is found, pass the test. If set tofalse
, the WebTest is failing if the content ofcontent_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.