azure-native.insights.WebTest
Explore with Pulumi AI
An Application Insights web test definition. API Version: 2015-05-01.
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"
"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.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 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(Map.of("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(Map.of("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")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
web_test = azure_native.insights.WebTest("webTest",
configuration=azure_native.insights.WebTestPropertiesConfigurationArgs(
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=[azure_native.insights.WebTestGeolocationArgs(
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
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"
"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.WebTestGeolocationArgs{
{
Location: pulumi.String("us-fl-mia-edge"),
},
{
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 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(Map.of("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(
Map.of("location", "us-fl-mia-edge"),
Map.of("location", "apac-hk-hkn-azr"))
.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=azure_native.insights.WebTestPropertiesConfigurationArgs(
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=[
azure_native.insights.WebTestGeolocationArgs(
location="us-fl-mia-edge",
),
azure_native.insights.WebTestGeolocationArgs(
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,
synthetic_monitor_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
web_test_kind: Optional[WebTestKind] = None,
locations: Optional[Sequence[WebTestGeolocationArgs]] = None,
kind: Optional[WebTestKind] = None,
location: Optional[str] = None,
description: Optional[str] = None,
frequency: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
configuration: Optional[WebTestPropertiesConfigurationArgs] = None,
retry_enabled: Optional[bool] = None,
timeout: Optional[int] = None,
enabled: Optional[bool] = 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()
{
SyntheticMonitorId = "string",
ResourceGroupName = "string",
WebTestKind = "ping",
Locations = new[]
{
{
{ "location", "string" },
},
},
Kind = "ping",
Location = "string",
Description = "string",
Frequency = 0,
Tags =
{
{ "string", "string" },
},
Configuration =
{
{ "webTest", "string" },
},
RetryEnabled = false,
Timeout = 0,
Enabled = false,
WebTestName = "string",
});
example, err := insights.NewWebTest(ctx, "webTestResource", &insights.WebTestArgs{
SyntheticMonitorId: "string",
ResourceGroupName: "string",
WebTestKind: "ping",
Locations: []map[string]interface{}{
map[string]interface{}{
"location": "string",
},
},
Kind: "ping",
Location: "string",
Description: "string",
Frequency: 0,
Tags: map[string]interface{}{
"string": "string",
},
Configuration: map[string]interface{}{
"webTest": "string",
},
RetryEnabled: false,
Timeout: 0,
Enabled: false,
WebTestName: "string",
})
var webTestResource = new WebTest("webTestResource", WebTestArgs.builder()
.syntheticMonitorId("string")
.resourceGroupName("string")
.webTestKind("ping")
.locations(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.kind("ping")
.location("string")
.description("string")
.frequency(0)
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.configuration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.retryEnabled(false)
.timeout(0)
.enabled(false)
.webTestName("string")
.build());
web_test_resource = azure_native.insights.WebTest("webTestResource",
synthetic_monitor_id=string,
resource_group_name=string,
web_test_kind=ping,
locations=[{
location: string,
}],
kind=ping,
location=string,
description=string,
frequency=0,
tags={
string: string,
},
configuration={
webTest: string,
},
retry_enabled=False,
timeout=0,
enabled=False,
web_test_name=string)
const webTestResource = new azure_native.insights.WebTest("webTestResource", {
syntheticMonitorId: "string",
resourceGroupName: "string",
webTestKind: "ping",
locations: [{
location: "string",
}],
kind: "ping",
location: "string",
description: "string",
frequency: 0,
tags: {
string: "string",
},
configuration: {
webTest: "string",
},
retryEnabled: false,
timeout: 0,
enabled: false,
webTestName: "string",
});
type: azure-native:insights:WebTest
properties:
configuration:
webTest: string
description: string
enabled: false
frequency: 0
kind: ping
location: string
locations:
- location: string
resourceGroupName: string
retryEnabled: false
syntheticMonitorId: string
tags:
string: string
timeout: 0
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 and multistep.
- Configuration
Pulumi.
Azure Native. Insights. Inputs. Web Test Properties Configuration - An XML configuration specification for a WebTest.
- Description string
- Purpose/user defined descriptive test 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 web test that this web test watches. Choices are ping and multistep.
- Location string
- Resource location
- 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.
- 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 and multistep.
- Configuration
Web
Test Properties Configuration Args - An XML configuration specification for a WebTest.
- Description string
- Purpose/user defined descriptive test 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 web test that this web test watches. Choices are ping and multistep.
- Location string
- Resource location
- 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.
- 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 and multistep.
- configuration
Web
Test Properties Configuration - An XML configuration specification for a WebTest.
- description String
- Purpose/user defined descriptive test 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 web test that this web test watches. Choices are ping and multistep.
- location String
- Resource location
- 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.
- 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 and multistep.
- configuration
Web
Test Properties Configuration - An XML configuration specification for a WebTest.
- description string
- Purpose/user defined descriptive test 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 web test that this web test watches. Choices are ping and multistep.
- location string
- Resource location
- 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.
- 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 and multistep.
- configuration
Web
Test Properties Configuration Args - An XML configuration specification for a WebTest.
- description str
- Purpose/user defined descriptive test 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 web test that this web test watches. Choices are ping and multistep.
- location str
- Resource location
- 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.
- 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"Kind - The kind of web test this is, valid choices are ping and multistep.
- configuration Property Map
- An XML configuration specification for a WebTest.
- description String
- Purpose/user defined descriptive test 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"
- The kind of web test that this web test watches. Choices are ping and multistep.
- location String
- Resource location
- 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.
- 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
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
- Web
Test Kind Ping - ping
- Web
Test Kind Multistep - multistep
- Ping
- ping
- Multistep
- multistep
- Ping
- ping
- Multistep
- multistep
- PING
- ping
- MULTISTEP
- multistep
- "ping"
- ping
- "multistep"
- multistep
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.
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.
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/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0