azure-native.insights.WebTest
Explore with Pulumi AI
An Application Insights WebTest definition. Azure REST API version: 2022-06-15. Prior API version in Azure Native 1.x: 2015-05-01.
Other available API versions: 2020-10-05-preview.
Example Usage
webTestCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webTest = new AzureNative.Insights.WebTest("webTest", new()
{
Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
{
WebTest = "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
},
Description = "Ping web test alert for mytestwebapp",
Enabled = true,
Frequency = 900,
Kind = AzureNative.Insights.WebTestKind.Ping,
Location = "South Central US",
Locations = new[]
{
new AzureNative.Insights.Inputs.WebTestGeolocationArgs
{
Location = "us-fl-mia-edge",
},
},
ResourceGroupName = "my-resource-group",
RetryEnabled = true,
SyntheticMonitorId = "my-webtest-my-component",
Timeout = 120,
WebTestKind = AzureNative.Insights.WebTestKind.Ping,
WebTestName = "my-webtest-my-component",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
Configuration: &insights.WebTestPropertiesConfigurationArgs{
WebTest: pulumi.String("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"),
},
Description: pulumi.String("Ping web test alert for mytestwebapp"),
Enabled: pulumi.Bool(true),
Frequency: pulumi.Int(900),
Kind: insights.WebTestKindPing,
Location: pulumi.String("South Central US"),
Locations: insights.WebTestGeolocationArray{
&insights.WebTestGeolocationArgs{
Location: pulumi.String("us-fl-mia-edge"),
},
},
ResourceGroupName: pulumi.String("my-resource-group"),
RetryEnabled: pulumi.Bool(true),
SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
Timeout: pulumi.Int(120),
WebTestKind: insights.WebTestKindPing,
WebTestName: pulumi.String("my-webtest-my-component"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.WebTest;
import com.pulumi.azurenative.insights.WebTestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesConfigurationArgs;
import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
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 webTest = new WebTest("webTest", WebTestArgs.builder()
.configuration(WebTestPropertiesConfigurationArgs.builder()
.webTest("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>")
.build())
.description("Ping web test alert for mytestwebapp")
.enabled(true)
.frequency(900)
.kind("ping")
.location("South Central US")
.locations(WebTestGeolocationArgs.builder()
.location("us-fl-mia-edge")
.build())
.resourceGroupName("my-resource-group")
.retryEnabled(true)
.syntheticMonitorId("my-webtest-my-component")
.timeout(120)
.webTestKind("ping")
.webTestName("my-webtest-my-component")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
web_test = azure_native.insights.WebTest("webTest",
configuration={
"web_test": "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
},
description="Ping web test alert for mytestwebapp",
enabled=True,
frequency=900,
kind=azure_native.insights.WebTestKind.PING,
location="South Central US",
locations=[{
"location": "us-fl-mia-edge",
}],
resource_group_name="my-resource-group",
retry_enabled=True,
synthetic_monitor_id="my-webtest-my-component",
timeout=120,
web_test_kind=azure_native.insights.WebTestKind.PING,
web_test_name="my-webtest-my-component")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webTest = new azure_native.insights.WebTest("webTest", {
configuration: {
webTest: "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
},
description: "Ping web test alert for mytestwebapp",
enabled: true,
frequency: 900,
kind: azure_native.insights.WebTestKind.Ping,
location: "South Central US",
locations: [{
location: "us-fl-mia-edge",
}],
resourceGroupName: "my-resource-group",
retryEnabled: true,
syntheticMonitorId: "my-webtest-my-component",
timeout: 120,
webTestKind: azure_native.insights.WebTestKind.Ping,
webTestName: "my-webtest-my-component",
});
resources:
webTest:
type: azure-native:insights:WebTest
properties:
configuration:
webTest: <WebTest Name="my-webtest" Id="678ddf96-1ab8-44c8-9274-123456789abc" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="120" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="" ><Items><Request Method="GET" Guid="a4162485-9114-fcfc-e086-123456789abc" Version="1.1" Url="http://my-component.azurewebsites.net" ThinkTime="0" Timeout="120" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" /></Items></WebTest>
description: Ping web test alert for mytestwebapp
enabled: true
frequency: 900
kind: ping
location: South Central US
locations:
- location: us-fl-mia-edge
resourceGroupName: my-resource-group
retryEnabled: true
syntheticMonitorId: my-webtest-my-component
timeout: 120
webTestKind: ping
webTestName: my-webtest-my-component
webTestCreateStandard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webTest = new AzureNative.Insights.WebTest("webTest", new()
{
Description = "Ping web test alert for mytestwebapp",
Enabled = true,
Frequency = 900,
Location = "South Central US",
Locations = new[]
{
new AzureNative.Insights.Inputs.WebTestGeolocationArgs
{
Location = "us-fl-mia-edge",
},
},
Request = new AzureNative.Insights.Inputs.WebTestPropertiesRequestArgs
{
Headers = new[]
{
new AzureNative.Insights.Inputs.HeaderFieldArgs
{
HeaderFieldName = "Content-Language",
HeaderFieldValue = "de-DE",
},
new AzureNative.Insights.Inputs.HeaderFieldArgs
{
HeaderFieldName = "Accept-Language",
HeaderFieldValue = "de-DE",
},
},
HttpVerb = "POST",
RequestBody = "SGVsbG8gd29ybGQ=",
RequestUrl = "https://bing.com",
},
ResourceGroupName = "my-resource-group",
RetryEnabled = true,
SyntheticMonitorId = "my-webtest-my-component",
Timeout = 120,
ValidationRules = new AzureNative.Insights.Inputs.WebTestPropertiesValidationRulesArgs
{
SSLCertRemainingLifetimeCheck = 100,
SSLCheck = true,
},
WebTestKind = AzureNative.Insights.WebTestKind.Standard,
WebTestName = "my-webtest-my-component",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
Description: pulumi.String("Ping web test alert for mytestwebapp"),
Enabled: pulumi.Bool(true),
Frequency: pulumi.Int(900),
Location: pulumi.String("South Central US"),
Locations: insights.WebTestGeolocationArray{
&insights.WebTestGeolocationArgs{
Location: pulumi.String("us-fl-mia-edge"),
},
},
Request: &insights.WebTestPropertiesRequestArgs{
Headers: insights.HeaderFieldArray{
&insights.HeaderFieldArgs{
HeaderFieldName: pulumi.String("Content-Language"),
HeaderFieldValue: pulumi.String("de-DE"),
},
&insights.HeaderFieldArgs{
HeaderFieldName: pulumi.String("Accept-Language"),
HeaderFieldValue: pulumi.String("de-DE"),
},
},
HttpVerb: pulumi.String("POST"),
RequestBody: pulumi.String("SGVsbG8gd29ybGQ="),
RequestUrl: pulumi.String("https://bing.com"),
},
ResourceGroupName: pulumi.String("my-resource-group"),
RetryEnabled: pulumi.Bool(true),
SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
Timeout: pulumi.Int(120),
ValidationRules: &insights.WebTestPropertiesValidationRulesArgs{
SSLCertRemainingLifetimeCheck: pulumi.Int(100),
SSLCheck: pulumi.Bool(true),
},
WebTestKind: insights.WebTestKindStandard,
WebTestName: pulumi.String("my-webtest-my-component"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.WebTest;
import com.pulumi.azurenative.insights.WebTestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesRequestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesValidationRulesArgs;
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 webTest = new WebTest("webTest", WebTestArgs.builder()
.description("Ping web test alert for mytestwebapp")
.enabled(true)
.frequency(900)
.location("South Central US")
.locations(WebTestGeolocationArgs.builder()
.location("us-fl-mia-edge")
.build())
.request(WebTestPropertiesRequestArgs.builder()
.headers(
HeaderFieldArgs.builder()
.headerFieldName("Content-Language")
.headerFieldValue("de-DE")
.build(),
HeaderFieldArgs.builder()
.headerFieldName("Accept-Language")
.headerFieldValue("de-DE")
.build())
.httpVerb("POST")
.requestBody("SGVsbG8gd29ybGQ=")
.requestUrl("https://bing.com")
.build())
.resourceGroupName("my-resource-group")
.retryEnabled(true)
.syntheticMonitorId("my-webtest-my-component")
.timeout(120)
.validationRules(WebTestPropertiesValidationRulesArgs.builder()
.sSLCertRemainingLifetimeCheck(100)
.sSLCheck(true)
.build())
.webTestKind("standard")
.webTestName("my-webtest-my-component")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
web_test = azure_native.insights.WebTest("webTest",
description="Ping web test alert for mytestwebapp",
enabled=True,
frequency=900,
location="South Central US",
locations=[{
"location": "us-fl-mia-edge",
}],
request={
"headers": [
{
"header_field_name": "Content-Language",
"header_field_value": "de-DE",
},
{
"header_field_name": "Accept-Language",
"header_field_value": "de-DE",
},
],
"http_verb": "POST",
"request_body": "SGVsbG8gd29ybGQ=",
"request_url": "https://bing.com",
},
resource_group_name="my-resource-group",
retry_enabled=True,
synthetic_monitor_id="my-webtest-my-component",
timeout=120,
validation_rules={
"s_sl_cert_remaining_lifetime_check": 100,
"s_sl_check": True,
},
web_test_kind=azure_native.insights.WebTestKind.STANDARD,
web_test_name="my-webtest-my-component")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webTest = new azure_native.insights.WebTest("webTest", {
description: "Ping web test alert for mytestwebapp",
enabled: true,
frequency: 900,
location: "South Central US",
locations: [{
location: "us-fl-mia-edge",
}],
request: {
headers: [
{
headerFieldName: "Content-Language",
headerFieldValue: "de-DE",
},
{
headerFieldName: "Accept-Language",
headerFieldValue: "de-DE",
},
],
httpVerb: "POST",
requestBody: "SGVsbG8gd29ybGQ=",
requestUrl: "https://bing.com",
},
resourceGroupName: "my-resource-group",
retryEnabled: true,
syntheticMonitorId: "my-webtest-my-component",
timeout: 120,
validationRules: {
sSLCertRemainingLifetimeCheck: 100,
sSLCheck: true,
},
webTestKind: azure_native.insights.WebTestKind.Standard,
webTestName: "my-webtest-my-component",
});
resources:
webTest:
type: azure-native:insights:WebTest
properties:
description: Ping web test alert for mytestwebapp
enabled: true
frequency: 900
location: South Central US
locations:
- location: us-fl-mia-edge
request:
headers:
- headerFieldName: Content-Language
headerFieldValue: de-DE
- headerFieldName: Accept-Language
headerFieldValue: de-DE
httpVerb: POST
requestBody: SGVsbG8gd29ybGQ=
requestUrl: https://bing.com
resourceGroupName: my-resource-group
retryEnabled: true
syntheticMonitorId: my-webtest-my-component
timeout: 120
validationRules:
sSLCertRemainingLifetimeCheck: 100
sSLCheck: true
webTestKind: standard
webTestName: my-webtest-my-component
webTestUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webTest = new AzureNative.Insights.WebTest("webTest", new()
{
Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
{
WebTest = "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
},
Frequency = 600,
Kind = AzureNative.Insights.WebTestKind.Ping,
Location = "South Central US",
Locations = new[]
{
new AzureNative.Insights.Inputs.WebTestGeolocationArgs
{
Location = "us-fl-mia-edge",
},
new AzureNative.Insights.Inputs.WebTestGeolocationArgs
{
Location = "apac-hk-hkn-azr",
},
},
ResourceGroupName = "my-resource-group",
SyntheticMonitorId = "my-webtest-my-component",
Timeout = 30,
WebTestKind = AzureNative.Insights.WebTestKind.Ping,
WebTestName = "my-webtest-my-component",
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewWebTest(ctx, "webTest", &insights.WebTestArgs{
Configuration: &insights.WebTestPropertiesConfigurationArgs{
WebTest: pulumi.String("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"),
},
Frequency: pulumi.Int(600),
Kind: insights.WebTestKindPing,
Location: pulumi.String("South Central US"),
Locations: insights.WebTestGeolocationArray{
&insights.WebTestGeolocationArgs{
Location: pulumi.String("us-fl-mia-edge"),
},
&insights.WebTestGeolocationArgs{
Location: pulumi.String("apac-hk-hkn-azr"),
},
},
ResourceGroupName: pulumi.String("my-resource-group"),
SyntheticMonitorId: pulumi.String("my-webtest-my-component"),
Timeout: pulumi.Int(30),
WebTestKind: insights.WebTestKindPing,
WebTestName: pulumi.String("my-webtest-my-component"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.WebTest;
import com.pulumi.azurenative.insights.WebTestArgs;
import com.pulumi.azurenative.insights.inputs.WebTestPropertiesConfigurationArgs;
import com.pulumi.azurenative.insights.inputs.WebTestGeolocationArgs;
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 webTest = new WebTest("webTest", WebTestArgs.builder()
.configuration(WebTestPropertiesConfigurationArgs.builder()
.webTest("<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>")
.build())
.frequency(600)
.kind("ping")
.location("South Central US")
.locations(
WebTestGeolocationArgs.builder()
.location("us-fl-mia-edge")
.build(),
WebTestGeolocationArgs.builder()
.location("apac-hk-hkn-azr")
.build())
.resourceGroupName("my-resource-group")
.syntheticMonitorId("my-webtest-my-component")
.timeout(30)
.webTestKind("ping")
.webTestName("my-webtest-my-component")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
web_test = azure_native.insights.WebTest("webTest",
configuration={
"web_test": "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
},
frequency=600,
kind=azure_native.insights.WebTestKind.PING,
location="South Central US",
locations=[
{
"location": "us-fl-mia-edge",
},
{
"location": "apac-hk-hkn-azr",
},
],
resource_group_name="my-resource-group",
synthetic_monitor_id="my-webtest-my-component",
timeout=30,
web_test_kind=azure_native.insights.WebTestKind.PING,
web_test_name="my-webtest-my-component")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webTest = new azure_native.insights.WebTest("webTest", {
configuration: {
webTest: "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\" ><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>",
},
frequency: 600,
kind: azure_native.insights.WebTestKind.Ping,
location: "South Central US",
locations: [
{
location: "us-fl-mia-edge",
},
{
location: "apac-hk-hkn-azr",
},
],
resourceGroupName: "my-resource-group",
syntheticMonitorId: "my-webtest-my-component",
timeout: 30,
webTestKind: azure_native.insights.WebTestKind.Ping,
webTestName: "my-webtest-my-component",
});
resources:
webTest:
type: azure-native:insights:WebTest
properties:
configuration:
webTest: <WebTest Name="my-webtest" Id="678ddf96-1ab8-44c8-9274-123456789abc" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="30" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="" ><Items><Request Method="GET" Guid="a4162485-9114-fcfc-e086-123456789abc" Version="1.1" Url="http://my-component.azurewebsites.net" ThinkTime="0" Timeout="30" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" /></Items></WebTest>
frequency: 600
kind: ping
location: South Central US
locations:
- location: us-fl-mia-edge
- location: apac-hk-hkn-azr
resourceGroupName: my-resource-group
syntheticMonitorId: my-webtest-my-component
timeout: 30
webTestKind: ping
webTestName: my-webtest-my-component
Create WebTest Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebTest(name: string, args: WebTestArgs, opts?: CustomResourceOptions);
@overload
def WebTest(resource_name: str,
args: WebTestArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebTest(resource_name: str,
opts: Optional[ResourceOptions] = None,
locations: Optional[Sequence[WebTestGeolocationArgs]] = None,
web_test_kind: Optional[WebTestKind] = None,
synthetic_monitor_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
kind: Optional[WebTestKind] = None,
location: Optional[str] = None,
configuration: Optional[WebTestPropertiesConfigurationArgs] = None,
request: Optional[WebTestPropertiesRequestArgs] = None,
frequency: Optional[int] = None,
retry_enabled: Optional[bool] = None,
enabled: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
timeout: Optional[int] = None,
validation_rules: Optional[WebTestPropertiesValidationRulesArgs] = None,
description: Optional[str] = None,
web_test_name: Optional[str] = None)
func NewWebTest(ctx *Context, name string, args WebTestArgs, opts ...ResourceOption) (*WebTest, error)
public WebTest(string name, WebTestArgs args, CustomResourceOptions? opts = null)
public WebTest(String name, WebTestArgs args)
public WebTest(String name, WebTestArgs args, CustomResourceOptions options)
type: azure-native:insights:WebTest
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebTestArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var webTestResource = new AzureNative.Insights.WebTest("webTestResource", new()
{
Locations = new[]
{
new AzureNative.Insights.Inputs.WebTestGeolocationArgs
{
Location = "string",
},
},
WebTestKind = AzureNative.Insights.WebTestKind.Ping,
SyntheticMonitorId = "string",
ResourceGroupName = "string",
Kind = AzureNative.Insights.WebTestKind.Ping,
Location = "string",
Configuration = new AzureNative.Insights.Inputs.WebTestPropertiesConfigurationArgs
{
WebTest = "string",
},
Request = new AzureNative.Insights.Inputs.WebTestPropertiesRequestArgs
{
FollowRedirects = false,
Headers = new[]
{
new AzureNative.Insights.Inputs.HeaderFieldArgs
{
HeaderFieldName = "string",
HeaderFieldValue = "string",
},
},
HttpVerb = "string",
ParseDependentRequests = false,
RequestBody = "string",
RequestUrl = "string",
},
Frequency = 0,
RetryEnabled = false,
Enabled = false,
Tags =
{
{ "string", "string" },
},
Timeout = 0,
ValidationRules = new AzureNative.Insights.Inputs.WebTestPropertiesValidationRulesArgs
{
ContentValidation = new AzureNative.Insights.Inputs.WebTestPropertiesContentValidationArgs
{
ContentMatch = "string",
IgnoreCase = false,
PassIfTextFound = false,
},
ExpectedHttpStatusCode = 0,
IgnoreHttpStatusCode = false,
SSLCertRemainingLifetimeCheck = 0,
SSLCheck = false,
},
Description = "string",
WebTestName = "string",
});
example, err := insights.NewWebTest(ctx, "webTestResource", &insights.WebTestArgs{
Locations: insights.WebTestGeolocationArray{
&insights.WebTestGeolocationArgs{
Location: pulumi.String("string"),
},
},
WebTestKind: insights.WebTestKindPing,
SyntheticMonitorId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Kind: insights.WebTestKindPing,
Location: pulumi.String("string"),
Configuration: &insights.WebTestPropertiesConfigurationArgs{
WebTest: pulumi.String("string"),
},
Request: &insights.WebTestPropertiesRequestArgs{
FollowRedirects: pulumi.Bool(false),
Headers: insights.HeaderFieldArray{
&insights.HeaderFieldArgs{
HeaderFieldName: pulumi.String("string"),
HeaderFieldValue: pulumi.String("string"),
},
},
HttpVerb: pulumi.String("string"),
ParseDependentRequests: pulumi.Bool(false),
RequestBody: pulumi.String("string"),
RequestUrl: pulumi.String("string"),
},
Frequency: pulumi.Int(0),
RetryEnabled: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeout: pulumi.Int(0),
ValidationRules: &insights.WebTestPropertiesValidationRulesArgs{
ContentValidation: &insights.WebTestPropertiesContentValidationArgs{
ContentMatch: pulumi.String("string"),
IgnoreCase: pulumi.Bool(false),
PassIfTextFound: pulumi.Bool(false),
},
ExpectedHttpStatusCode: pulumi.Int(0),
IgnoreHttpStatusCode: pulumi.Bool(false),
SSLCertRemainingLifetimeCheck: pulumi.Int(0),
SSLCheck: pulumi.Bool(false),
},
Description: pulumi.String("string"),
WebTestName: pulumi.String("string"),
})
var webTestResource = new WebTest("webTestResource", WebTestArgs.builder()
.locations(WebTestGeolocationArgs.builder()
.location("string")
.build())
.webTestKind("ping")
.syntheticMonitorId("string")
.resourceGroupName("string")
.kind("ping")
.location("string")
.configuration(WebTestPropertiesConfigurationArgs.builder()
.webTest("string")
.build())
.request(WebTestPropertiesRequestArgs.builder()
.followRedirects(false)
.headers(HeaderFieldArgs.builder()
.headerFieldName("string")
.headerFieldValue("string")
.build())
.httpVerb("string")
.parseDependentRequests(false)
.requestBody("string")
.requestUrl("string")
.build())
.frequency(0)
.retryEnabled(false)
.enabled(false)
.tags(Map.of("string", "string"))
.timeout(0)
.validationRules(WebTestPropertiesValidationRulesArgs.builder()
.contentValidation(WebTestPropertiesContentValidationArgs.builder()
.contentMatch("string")
.ignoreCase(false)
.passIfTextFound(false)
.build())
.expectedHttpStatusCode(0)
.ignoreHttpStatusCode(false)
.sSLCertRemainingLifetimeCheck(0)
.sSLCheck(false)
.build())
.description("string")
.webTestName("string")
.build());
web_test_resource = azure_native.insights.WebTest("webTestResource",
locations=[{
"location": "string",
}],
web_test_kind=azure_native.insights.WebTestKind.PING,
synthetic_monitor_id="string",
resource_group_name="string",
kind=azure_native.insights.WebTestKind.PING,
location="string",
configuration={
"web_test": "string",
},
request={
"follow_redirects": False,
"headers": [{
"header_field_name": "string",
"header_field_value": "string",
}],
"http_verb": "string",
"parse_dependent_requests": False,
"request_body": "string",
"request_url": "string",
},
frequency=0,
retry_enabled=False,
enabled=False,
tags={
"string": "string",
},
timeout=0,
validation_rules={
"content_validation": {
"content_match": "string",
"ignore_case": False,
"pass_if_text_found": False,
},
"expected_http_status_code": 0,
"ignore_http_status_code": False,
"s_sl_cert_remaining_lifetime_check": 0,
"s_sl_check": False,
},
description="string",
web_test_name="string")
const webTestResource = new azure_native.insights.WebTest("webTestResource", {
locations: [{
location: "string",
}],
webTestKind: azure_native.insights.WebTestKind.Ping,
syntheticMonitorId: "string",
resourceGroupName: "string",
kind: azure_native.insights.WebTestKind.Ping,
location: "string",
configuration: {
webTest: "string",
},
request: {
followRedirects: false,
headers: [{
headerFieldName: "string",
headerFieldValue: "string",
}],
httpVerb: "string",
parseDependentRequests: false,
requestBody: "string",
requestUrl: "string",
},
frequency: 0,
retryEnabled: false,
enabled: false,
tags: {
string: "string",
},
timeout: 0,
validationRules: {
contentValidation: {
contentMatch: "string",
ignoreCase: false,
passIfTextFound: false,
},
expectedHttpStatusCode: 0,
ignoreHttpStatusCode: false,
sSLCertRemainingLifetimeCheck: 0,
sSLCheck: false,
},
description: "string",
webTestName: "string",
});
type: azure-native:insights:WebTest
properties:
configuration:
webTest: string
description: string
enabled: false
frequency: 0
kind: ping
location: string
locations:
- location: string
request:
followRedirects: false
headers:
- headerFieldName: string
headerFieldValue: string
httpVerb: string
parseDependentRequests: false
requestBody: string
requestUrl: string
resourceGroupName: string
retryEnabled: false
syntheticMonitorId: string
tags:
string: string
timeout: 0
validationRules:
contentValidation:
contentMatch: string
ignoreCase: false
passIfTextFound: false
expectedHttpStatusCode: 0
ignoreHttpStatusCode: false
sSLCertRemainingLifetimeCheck: 0
sSLCheck: false
webTestKind: ping
webTestName: string
WebTest Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The WebTest resource accepts the following input properties:
- Locations
List<Pulumi.
Azure Native. Insights. Inputs. Web Test Geolocation> - A list of where to physically run the tests from to give global coverage for accessibility of your application.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Synthetic
Monitor stringId - Unique ID of this WebTest. This is typically the same value as the Name field.
- Web
Test Pulumi.Kind Azure Native. Insights. Web Test Kind - The kind of web test this is, valid choices are ping, multistep and standard.
- Configuration
Pulumi.
Azure Native. Insights. Inputs. Web Test Properties Configuration - An XML configuration specification for a WebTest.
- Description string
- User defined description for this WebTest.
- Enabled bool
- Is the test actively being monitored.
- Frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- Kind
Pulumi.
Azure Native. Insights. Web Test Kind - The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- Location string
- Resource location
- Request
Pulumi.
Azure Native. Insights. Inputs. Web Test Properties Request - The collection of request properties
- Retry
Enabled bool - Allow for retries should this WebTest fail.
- Dictionary<string, string>
- Resource tags
- Timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- Validation
Rules Pulumi.Azure Native. Insights. Inputs. Web Test Properties Validation Rules - The collection of validation rule properties
- Web
Test stringName - User defined name if this WebTest.
- Locations
[]Web
Test Geolocation Args - A list of where to physically run the tests from to give global coverage for accessibility of your application.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Synthetic
Monitor stringId - Unique ID of this WebTest. This is typically the same value as the Name field.
- Web
Test WebKind Test Kind - The kind of web test this is, valid choices are ping, multistep and standard.
- Configuration
Web
Test Properties Configuration Args - An XML configuration specification for a WebTest.
- Description string
- User defined description for this WebTest.
- Enabled bool
- Is the test actively being monitored.
- Frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- Kind
Web
Test Kind - The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- Location string
- Resource location
- Request
Web
Test Properties Request Args - The collection of request properties
- Retry
Enabled bool - Allow for retries should this WebTest fail.
- map[string]string
- Resource tags
- Timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- Validation
Rules WebTest Properties Validation Rules Args - The collection of validation rule properties
- Web
Test stringName - User defined name if this WebTest.
- locations
List<Web
Test Geolocation> - A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- synthetic
Monitor StringId - Unique ID of this WebTest. This is typically the same value as the Name field.
- web
Test WebKind Test Kind - The kind of web test this is, valid choices are ping, multistep and standard.
- configuration
Web
Test Properties Configuration - An XML configuration specification for a WebTest.
- description String
- User defined description for this WebTest.
- enabled Boolean
- Is the test actively being monitored.
- frequency Integer
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind
Web
Test Kind - The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location String
- Resource location
- request
Web
Test Properties Request - The collection of request properties
- retry
Enabled Boolean - Allow for retries should this WebTest fail.
- Map<String,String>
- Resource tags
- timeout Integer
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validation
Rules WebTest Properties Validation Rules - The collection of validation rule properties
- web
Test StringName - User defined name if this WebTest.
- locations
Web
Test Geolocation[] - A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- synthetic
Monitor stringId - Unique ID of this WebTest. This is typically the same value as the Name field.
- web
Test WebKind Test Kind - The kind of web test this is, valid choices are ping, multistep and standard.
- configuration
Web
Test Properties Configuration - An XML configuration specification for a WebTest.
- description string
- User defined description for this WebTest.
- enabled boolean
- Is the test actively being monitored.
- frequency number
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind
Web
Test Kind - The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location string
- Resource location
- request
Web
Test Properties Request - The collection of request properties
- retry
Enabled boolean - Allow for retries should this WebTest fail.
- {[key: string]: string}
- Resource tags
- timeout number
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validation
Rules WebTest Properties Validation Rules - The collection of validation rule properties
- web
Test stringName - User defined name if this WebTest.
- locations
Sequence[Web
Test Geolocation Args] - A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- synthetic_
monitor_ strid - Unique ID of this WebTest. This is typically the same value as the Name field.
- web_
test_ Webkind Test Kind - The kind of web test this is, valid choices are ping, multistep and standard.
- configuration
Web
Test Properties Configuration Args - An XML configuration specification for a WebTest.
- description str
- User defined description for this WebTest.
- enabled bool
- Is the test actively being monitored.
- frequency int
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind
Web
Test Kind - The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location str
- Resource location
- request
Web
Test Properties Request Args - The collection of request properties
- retry_
enabled bool - Allow for retries should this WebTest fail.
- Mapping[str, str]
- Resource tags
- timeout int
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validation_
rules WebTest Properties Validation Rules Args - The collection of validation rule properties
- web_
test_ strname - User defined name if this WebTest.
- locations List<Property Map>
- A list of where to physically run the tests from to give global coverage for accessibility of your application.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- synthetic
Monitor StringId - Unique ID of this WebTest. This is typically the same value as the Name field.
- web
Test "ping" | "multistep" | "standard"Kind - The kind of web test this is, valid choices are ping, multistep and standard.
- configuration Property Map
- An XML configuration specification for a WebTest.
- description String
- User defined description for this WebTest.
- enabled Boolean
- Is the test actively being monitored.
- frequency Number
- Interval in seconds between test runs for this WebTest. Default value is 300.
- kind "ping" | "multistep" | "standard"
- The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
- location String
- Resource location
- request Property Map
- The collection of request properties
- retry
Enabled Boolean - Allow for retries should this WebTest fail.
- Map<String>
- Resource tags
- timeout Number
- Seconds until this WebTest will timeout and fail. Default value is 30.
- validation
Rules Property Map - The collection of validation rule properties
- web
Test StringName - User defined name if this WebTest.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebTest resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Azure resource name
- Provisioning
State string - Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- Type string
- Azure resource type
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Azure resource name
- Provisioning
State string - Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- Type string
- Azure resource type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Azure resource name
- provisioning
State String - Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type String
- Azure resource type
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Azure resource name
- provisioning
State string - Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type string
- Azure resource type
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Azure resource name
- provisioning_
state str - Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type str
- Azure resource type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Azure resource name
- provisioning
State String - Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.
- type String
- Azure resource type
Supporting Types
HeaderField, HeaderFieldArgs
- Header
Field stringName - The name of the header.
- Header
Field stringValue - The value of the header.
- Header
Field stringName - The name of the header.
- Header
Field stringValue - The value of the header.
- header
Field StringName - The name of the header.
- header
Field StringValue - The value of the header.
- header
Field stringName - The name of the header.
- header
Field stringValue - The value of the header.
- header_
field_ strname - The name of the header.
- header_
field_ strvalue - The value of the header.
- header
Field StringName - The name of the header.
- header
Field StringValue - The value of the header.
HeaderFieldResponse, HeaderFieldResponseArgs
- Header
Field stringName - The name of the header.
- Header
Field stringValue - The value of the header.
- Header
Field stringName - The name of the header.
- Header
Field stringValue - The value of the header.
- header
Field StringName - The name of the header.
- header
Field StringValue - The value of the header.
- header
Field stringName - The name of the header.
- header
Field stringValue - The value of the header.
- header_
field_ strname - The name of the header.
- header_
field_ strvalue - The value of the header.
- header
Field StringName - The name of the header.
- header
Field StringValue - The value of the header.
WebTestGeolocation, WebTestGeolocationArgs
- Location string
- Location ID for the WebTest to run from.
- Location string
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
- location string
- Location ID for the WebTest to run from.
- location str
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
WebTestGeolocationResponse, WebTestGeolocationResponseArgs
- Location string
- Location ID for the WebTest to run from.
- Location string
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
- location string
- Location ID for the WebTest to run from.
- location str
- Location ID for the WebTest to run from.
- location String
- Location ID for the WebTest to run from.
WebTestKind, WebTestKindArgs
- Ping
- ping
- Multistep
- multistep
- Standard
- standard
- Web
Test Kind Ping - ping
- Web
Test Kind Multistep - multistep
- Web
Test Kind Standard - standard
- Ping
- ping
- Multistep
- multistep
- Standard
- standard
- Ping
- ping
- Multistep
- multistep
- Standard
- standard
- PING
- ping
- MULTISTEP
- multistep
- STANDARD
- standard
- "ping"
- ping
- "multistep"
- multistep
- "standard"
- standard
WebTestPropertiesConfiguration, WebTestPropertiesConfigurationArgs
- Web
Test string - The XML specification of a WebTest to run against an application.
- Web
Test string - The XML specification of a WebTest to run against an application.
- web
Test String - The XML specification of a WebTest to run against an application.
- web
Test string - The XML specification of a WebTest to run against an application.
- web_
test str - The XML specification of a WebTest to run against an application.
- web
Test String - The XML specification of a WebTest to run against an application.
WebTestPropertiesContentValidation, WebTestPropertiesContentValidationArgs
- Content
Match string - Content to look for in the return of the WebTest. Must not be null or empty.
- Ignore
Case bool - When set, this value makes the ContentMatch validation case insensitive.
- Pass
If boolText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- Content
Match string - Content to look for in the return of the WebTest. Must not be null or empty.
- Ignore
Case bool - When set, this value makes the ContentMatch validation case insensitive.
- Pass
If boolText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content
Match String - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore
Case Boolean - When set, this value makes the ContentMatch validation case insensitive.
- pass
If BooleanText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content
Match string - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore
Case boolean - When set, this value makes the ContentMatch validation case insensitive.
- pass
If booleanText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content_
match str - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore_
case bool - When set, this value makes the ContentMatch validation case insensitive.
- pass_
if_ booltext_ found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content
Match String - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore
Case Boolean - When set, this value makes the ContentMatch validation case insensitive.
- pass
If BooleanText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
WebTestPropertiesRequest, WebTestPropertiesRequestArgs
- Follow
Redirects bool - Follow redirects for this web test.
- Headers
List<Pulumi.
Azure Native. Insights. Inputs. Header Field> - List of headers and their values to add to the WebTest call.
- Http
Verb string - Http verb to use for this web test.
- Parse
Dependent boolRequests - Parse Dependent request for this WebTest.
- Request
Body string - Base64 encoded string body to send with this web test.
- Request
Url string - Url location to test.
- Follow
Redirects bool - Follow redirects for this web test.
- Headers
[]Header
Field - List of headers and their values to add to the WebTest call.
- Http
Verb string - Http verb to use for this web test.
- Parse
Dependent boolRequests - Parse Dependent request for this WebTest.
- Request
Body string - Base64 encoded string body to send with this web test.
- Request
Url string - Url location to test.
- follow
Redirects Boolean - Follow redirects for this web test.
- headers
List<Header
Field> - List of headers and their values to add to the WebTest call.
- http
Verb String - Http verb to use for this web test.
- parse
Dependent BooleanRequests - Parse Dependent request for this WebTest.
- request
Body String - Base64 encoded string body to send with this web test.
- request
Url String - Url location to test.
- follow
Redirects boolean - Follow redirects for this web test.
- headers
Header
Field[] - List of headers and their values to add to the WebTest call.
- http
Verb string - Http verb to use for this web test.
- parse
Dependent booleanRequests - Parse Dependent request for this WebTest.
- request
Body string - Base64 encoded string body to send with this web test.
- request
Url string - Url location to test.
- follow_
redirects bool - Follow redirects for this web test.
- headers
Sequence[Header
Field] - List of headers and their values to add to the WebTest call.
- http_
verb str - Http verb to use for this web test.
- parse_
dependent_ boolrequests - Parse Dependent request for this WebTest.
- request_
body str - Base64 encoded string body to send with this web test.
- request_
url str - Url location to test.
- follow
Redirects Boolean - Follow redirects for this web test.
- headers List<Property Map>
- List of headers and their values to add to the WebTest call.
- http
Verb String - Http verb to use for this web test.
- parse
Dependent BooleanRequests - Parse Dependent request for this WebTest.
- request
Body String - Base64 encoded string body to send with this web test.
- request
Url String - Url location to test.
WebTestPropertiesResponseConfiguration, WebTestPropertiesResponseConfigurationArgs
- Web
Test string - The XML specification of a WebTest to run against an application.
- Web
Test string - The XML specification of a WebTest to run against an application.
- web
Test String - The XML specification of a WebTest to run against an application.
- web
Test string - The XML specification of a WebTest to run against an application.
- web_
test str - The XML specification of a WebTest to run against an application.
- web
Test String - The XML specification of a WebTest to run against an application.
WebTestPropertiesResponseContentValidation, WebTestPropertiesResponseContentValidationArgs
- Content
Match string - Content to look for in the return of the WebTest. Must not be null or empty.
- Ignore
Case bool - When set, this value makes the ContentMatch validation case insensitive.
- Pass
If boolText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- Content
Match string - Content to look for in the return of the WebTest. Must not be null or empty.
- Ignore
Case bool - When set, this value makes the ContentMatch validation case insensitive.
- Pass
If boolText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content
Match String - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore
Case Boolean - When set, this value makes the ContentMatch validation case insensitive.
- pass
If BooleanText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content
Match string - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore
Case boolean - When set, this value makes the ContentMatch validation case insensitive.
- pass
If booleanText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content_
match str - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore_
case bool - When set, this value makes the ContentMatch validation case insensitive.
- pass_
if_ booltext_ found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
- content
Match String - Content to look for in the return of the WebTest. Must not be null or empty.
- ignore
Case Boolean - When set, this value makes the ContentMatch validation case insensitive.
- pass
If BooleanText Found - When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match
WebTestPropertiesResponseRequest, WebTestPropertiesResponseRequestArgs
- Follow
Redirects bool - Follow redirects for this web test.
- Headers
List<Pulumi.
Azure Native. Insights. Inputs. Header Field Response> - List of headers and their values to add to the WebTest call.
- Http
Verb string - Http verb to use for this web test.
- Parse
Dependent boolRequests - Parse Dependent request for this WebTest.
- Request
Body string - Base64 encoded string body to send with this web test.
- Request
Url string - Url location to test.
- Follow
Redirects bool - Follow redirects for this web test.
- Headers
[]Header
Field Response - List of headers and their values to add to the WebTest call.
- Http
Verb string - Http verb to use for this web test.
- Parse
Dependent boolRequests - Parse Dependent request for this WebTest.
- Request
Body string - Base64 encoded string body to send with this web test.
- Request
Url string - Url location to test.
- follow
Redirects Boolean - Follow redirects for this web test.
- headers
List<Header
Field Response> - List of headers and their values to add to the WebTest call.
- http
Verb String - Http verb to use for this web test.
- parse
Dependent BooleanRequests - Parse Dependent request for this WebTest.
- request
Body String - Base64 encoded string body to send with this web test.
- request
Url String - Url location to test.
- follow
Redirects boolean - Follow redirects for this web test.
- headers
Header
Field Response[] - List of headers and their values to add to the WebTest call.
- http
Verb string - Http verb to use for this web test.
- parse
Dependent booleanRequests - Parse Dependent request for this WebTest.
- request
Body string - Base64 encoded string body to send with this web test.
- request
Url string - Url location to test.
- follow_
redirects bool - Follow redirects for this web test.
- headers
Sequence[Header
Field Response] - List of headers and their values to add to the WebTest call.
- http_
verb str - Http verb to use for this web test.
- parse_
dependent_ boolrequests - Parse Dependent request for this WebTest.
- request_
body str - Base64 encoded string body to send with this web test.
- request_
url str - Url location to test.
- follow
Redirects Boolean - Follow redirects for this web test.
- headers List<Property Map>
- List of headers and their values to add to the WebTest call.
- http
Verb String - Http verb to use for this web test.
- parse
Dependent BooleanRequests - Parse Dependent request for this WebTest.
- request
Body String - Base64 encoded string body to send with this web test.
- request
Url String - Url location to test.
WebTestPropertiesResponseValidationRules, WebTestPropertiesResponseValidationRulesArgs
- Content
Validation Pulumi.Azure Native. Insights. Inputs. Web Test Properties Response Content Validation - The collection of content validation properties
- Expected
Http intStatus Code - Validate that the WebTest returns the http status code provided.
- Ignore
Http boolStatus Code - When set, validation will ignore the status code.
- SSLCert
Remaining intLifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- Content
Validation WebTest Properties Response Content Validation - The collection of content validation properties
- Expected
Http intStatus Code - Validate that the WebTest returns the http status code provided.
- Ignore
Http boolStatus Code - When set, validation will ignore the status code.
- SSLCert
Remaining intLifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- content
Validation WebTest Properties Response Content Validation - The collection of content validation properties
- expected
Http IntegerStatus Code - Validate that the WebTest returns the http status code provided.
- ignore
Http BooleanStatus Code - When set, validation will ignore the status code.
- s
SLCert IntegerRemaining Lifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s
SLCheck Boolean - Checks to see if the SSL cert is still valid.
- content
Validation WebTest Properties Response Content Validation - The collection of content validation properties
- expected
Http numberStatus Code - Validate that the WebTest returns the http status code provided.
- ignore
Http booleanStatus Code - When set, validation will ignore the status code.
- s
SLCert numberRemaining Lifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s
SLCheck boolean - Checks to see if the SSL cert is still valid.
- content_
validation WebTest Properties Response Content Validation - The collection of content validation properties
- expected_
http_ intstatus_ code - Validate that the WebTest returns the http status code provided.
- ignore_
http_ boolstatus_ code - When set, validation will ignore the status code.
- s_
sl_ intcert_ remaining_ lifetime_ check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s_
sl_ boolcheck - Checks to see if the SSL cert is still valid.
- content
Validation Property Map - The collection of content validation properties
- expected
Http NumberStatus Code - Validate that the WebTest returns the http status code provided.
- ignore
Http BooleanStatus Code - When set, validation will ignore the status code.
- s
SLCert NumberRemaining Lifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s
SLCheck Boolean - Checks to see if the SSL cert is still valid.
WebTestPropertiesValidationRules, WebTestPropertiesValidationRulesArgs
- Content
Validation Pulumi.Azure Native. Insights. Inputs. Web Test Properties Content Validation - The collection of content validation properties
- Expected
Http intStatus Code - Validate that the WebTest returns the http status code provided.
- Ignore
Http boolStatus Code - When set, validation will ignore the status code.
- SSLCert
Remaining intLifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- Content
Validation WebTest Properties Content Validation - The collection of content validation properties
- Expected
Http intStatus Code - Validate that the WebTest returns the http status code provided.
- Ignore
Http boolStatus Code - When set, validation will ignore the status code.
- SSLCert
Remaining intLifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- SSLCheck bool
- Checks to see if the SSL cert is still valid.
- content
Validation WebTest Properties Content Validation - The collection of content validation properties
- expected
Http IntegerStatus Code - Validate that the WebTest returns the http status code provided.
- ignore
Http BooleanStatus Code - When set, validation will ignore the status code.
- s
SLCert IntegerRemaining Lifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s
SLCheck Boolean - Checks to see if the SSL cert is still valid.
- content
Validation WebTest Properties Content Validation - The collection of content validation properties
- expected
Http numberStatus Code - Validate that the WebTest returns the http status code provided.
- ignore
Http booleanStatus Code - When set, validation will ignore the status code.
- s
SLCert numberRemaining Lifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s
SLCheck boolean - Checks to see if the SSL cert is still valid.
- content_
validation WebTest Properties Content Validation - The collection of content validation properties
- expected_
http_ intstatus_ code - Validate that the WebTest returns the http status code provided.
- ignore_
http_ boolstatus_ code - When set, validation will ignore the status code.
- s_
sl_ intcert_ remaining_ lifetime_ check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s_
sl_ boolcheck - Checks to see if the SSL cert is still valid.
- content
Validation Property Map - The collection of content validation properties
- expected
Http NumberStatus Code - Validate that the WebTest returns the http status code provided.
- ignore
Http BooleanStatus Code - When set, validation will ignore the status code.
- s
SLCert NumberRemaining Lifetime Check - A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true.
- s
SLCheck Boolean - Checks to see if the SSL cert is still valid.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:WebTest my-webtest-my-component /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0