diff --git a/schemas/2022-06-15/Microsoft.Insights.Application.json b/schemas/2022-06-15/Microsoft.Insights.Application.json new file mode 100644 index 0000000000..781faee844 --- /dev/null +++ b/schemas/2022-06-15/Microsoft.Insights.Application.json @@ -0,0 +1,399 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-06-15/Microsoft.Insights.Application.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Insights", + "description": "Microsoft Insights Resource Types", + "resourceDefinitions": { + "webtests": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-06-15" + ] + }, + "kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ping", + "multistep", + "standard" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The kind of WebTest that this web test watches. Choices are ping, multistep and standard." + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the Application Insights WebTest resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata describing a web test for an Azure resource." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/webtests" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/webtests" + } + }, + "definitions": { + "HeaderField": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "The name of the header." + }, + "value": { + "type": "string", + "description": "The value of the header." + } + }, + "description": "A header to add to the WebTest." + }, + "WebTestGeolocation": { + "type": "object", + "properties": { + "Id": { + "type": "string", + "description": "Location ID for the WebTest to run from." + } + }, + "description": "Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from." + }, + "WebTestProperties": { + "type": "object", + "properties": { + "Configuration": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An XML configuration specification for a WebTest." + }, + "Description": { + "type": "string", + "description": "User defined description for this WebTest." + }, + "Enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Is the test actively being monitored." + }, + "Frequency": { + "oneOf": [ + { + "type": "integer", + "default": "300" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Interval in seconds between test runs for this WebTest. Default value is 300." + }, + "Kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ping", + "multistep", + "standard" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The kind of web test this is, valid choices are ping, multistep and standard." + }, + "Locations": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebTestGeolocation" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of where to physically run the tests from to give global coverage for accessibility of your application." + }, + "Name": { + "type": "string", + "description": "User defined name if this WebTest." + }, + "Request": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesRequest" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of request properties" + }, + "RetryEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Allow for retries should this WebTest fail." + }, + "SyntheticMonitorId": { + "type": "string", + "description": "Unique ID of this WebTest. This is typically the same value as the Name field." + }, + "Timeout": { + "oneOf": [ + { + "type": "integer", + "default": "30" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Seconds until this WebTest will timeout and fail. Default value is 30." + }, + "ValidationRules": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesValidationRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of validation rule properties" + } + }, + "required": [ + "Kind", + "Locations", + "Name", + "SyntheticMonitorId" + ], + "description": "Metadata describing a web test for an Azure resource." + }, + "WebTestPropertiesConfiguration": { + "type": "object", + "properties": { + "WebTest": { + "type": "string", + "description": "The XML specification of a WebTest to run against an application." + } + }, + "description": "An XML configuration specification for a WebTest." + }, + "WebTestPropertiesRequest": { + "type": "object", + "properties": { + "FollowRedirects": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Follow redirects for this web test." + }, + "Headers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/HeaderField" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of headers and their values to add to the WebTest call." + }, + "HttpVerb": { + "type": "string", + "description": "Http verb to use for this web test." + }, + "ParseDependentRequests": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Parse Dependent request for this WebTest." + }, + "RequestBody": { + "type": "string", + "description": "Base64 encoded string body to send with this web test." + }, + "RequestUrl": { + "type": "string", + "description": "Url location to test." + } + }, + "description": "The collection of request properties" + }, + "WebTestPropertiesValidationRules": { + "type": "object", + "properties": { + "ContentValidation": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesValidationRulesContentValidation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of content validation properties" + }, + "ExpectedHttpStatusCode": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Validate that the WebTest returns the http status code provided." + }, + "IgnoreHttpsStatusCode": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When set, validation will ignore the status code." + }, + "SSLCertRemainingLifetimeCheck": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "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": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Checks to see if the SSL cert is still valid." + } + }, + "description": "The collection of validation rule properties" + }, + "WebTestPropertiesValidationRulesContentValidation": { + "type": "object", + "properties": { + "ContentMatch": { + "type": "string", + "description": "Content to look for in the return of the WebTest. Must not be null or empty." + }, + "IgnoreCase": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When set, this value makes the ContentMatch validation case insensitive." + }, + "PassIfTextFound": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match" + } + }, + "description": "The collection of content validation properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index ca6cb6a686..3c6a1a9241 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -10270,6 +10270,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-04-01/Microsoft.Insights.Application.json#/resourceDefinitions/workbooks" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-06-15/Microsoft.Insights.Application.json#/resourceDefinitions/webtests" + }, { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/alertrules" },