Skip to main content

web_tests

Creates, updates, deletes, gets or lists a web_tests resource.

Overview

Nameweb_tests
TypeResource
Idazure.application_insights.web_tests

Fields

NameDatatypeDescription
idtextAzure resource Id
nametextAzure resource name
descriptiontextfield from the properties object
configurationtextfield from the properties object
enabledtextfield from the properties object
frequencytextfield from the properties object
kindtextThe kind of WebTest that this web test watches. Choices are ping, multistep and standard.
locationtextResource location
locationstextfield from the properties object
provisioning_statetextfield from the properties object
requesttextfield from the properties object
resourceGroupNametextfield from the properties object
retry_enabledtextfield from the properties object
subscriptionIdtextfield from the properties object
synthetic_monitor_idtextfield from the properties object
tagstextResource tags
timeouttextfield from the properties object
typetextAzure resource type
validation_rulestextfield from the properties object
webTestNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, webTestNameGet a specific Application Insights web test definition.
listSELECTsubscriptionIdGet all Application Insights web test definitions for the specified subscription.
list_by_componentSELECTcomponentName, resourceGroupName, subscriptionIdGet all Application Insights web tests defined for the specified component.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all Application Insights web tests defined for the specified resource group.
create_or_updateINSERTresourceGroupName, subscriptionId, webTestNameCreates or updates an Application Insights web test definition.
deleteDELETEresourceGroupName, subscriptionId, webTestNameDeletes an Application Insights web test.
update_tagsEXECresourceGroupName, subscriptionId, webTestNameUpdates the tags associated with an Application Insights web test.

SELECT examples

Get all Application Insights web test definitions for the specified subscription.

SELECT
id,
name,
description,
configuration,
enabled,
frequency,
kind,
location,
locations,
provisioning_state,
request,
resourceGroupName,
retry_enabled,
subscriptionId,
synthetic_monitor_id,
tags,
timeout,
type,
validation_rules,
webTestName
FROM azure.application_insights.vw_web_tests
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new web_tests resource.

/*+ create */
INSERT INTO azure.application_insights.web_tests (
resourceGroupName,
subscriptionId,
webTestName,
location,
tags,
kind,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ webTestName }}',
'{{ location }}',
'{{ tags }}',
'{{ kind }}',
'{{ properties }}'
;

DELETE example

Deletes the specified web_tests resource.

/*+ delete */
DELETE FROM azure.application_insights.web_tests
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webTestName = '{{ webTestName }}';