Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexs77/fc61992f84cf2d3ca80bda54cb2717cb to your computer and use it in GitHub Desktop.
Save alexs77/fc61992f84cf2d3ca80bda54cb2717cb to your computer and use it in GitHub Desktop.
Azure Standard Web Tests - with and without http status code check
--- "/tmp/example test with http.json" 2021-12-01 13:58:15.174891220 +0100
+++ "/tmp/example test without http.json" 2021-12-01 14:01:31.609020588 +0100
@@ -4,4 +4,4 @@
"parameters": {
- "webtests_example_1337_test_with_http_adv_example_alert_name": {
- "defaultValue": "example 1337 test with http-adv-example-alert",
+ "webtests_example_1338_test_without_http_adv_example_alert_name": {
+ "defaultValue": "example 1338 test without http-adv-example-alert",
"type": "String"
@@ -14,3 +14,3 @@
"apiVersion": "2018-05-01-preview",
- "name": "[parameters('webtests_example_1337_test_with_http_adv_example_alert_name')]",
+ "name": "[parameters('webtests_example_1338_test_without_http_adv_example_alert_name')]",
"location": "westeurope",
@@ -20,4 +20,4 @@
"properties": {
- "SyntheticMonitorId": "[parameters('webtests_example_1337_test_with_http_adv_example_alert_name')]",
- "Name": "example 1337 test with http",
+ "SyntheticMonitorId": "[parameters('webtests_example_1338_test_without_http_adv_example_alert_name')]",
+ "Name": "example 1338 test without http",
"Enabled": true,
@@ -29,15 +29,15 @@
{
- "Id": "emea-fr-pra-edge"
+ "Id": "emea-nl-ams-azr"
},
{
- "Id": "emea-ru-msa-edge"
+ "Id": "emea-gb-db3-azr"
},
{
- "Id": "emea-ch-zrh-edge"
+ "Id": "emea-se-sto-edge"
},
{
- "Id": "us-tx-sn1-azr"
+ "Id": "us-fl-mia-edge"
},
{
- "Id": "apac-jp-kaw-edge"
+ "Id": "apac-hk-hkn-azr"
}
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webtests_example_1337_test_with_http_adv_example_alert_name": {
"defaultValue": "example 1337 test with http-adv-example-alert",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "microsoft.insights/webtests",
"apiVersion": "2018-05-01-preview",
"name": "[parameters('webtests_example_1337_test_with_http_adv_example_alert_name')]",
"location": "westeurope",
"tags": {
"hidden-link:/subscriptions/........................../resourceGroups/exampleDevopsTesting/providers/microsoft.insights/components/adv-example-alert": "Resource"
},
"properties": {
"SyntheticMonitorId": "[parameters('webtests_example_1337_test_with_http_adv_example_alert_name')]",
"Name": "example 1337 test with http",
"Enabled": true,
"Frequency": 300,
"Timeout": 120,
"Kind": "standard",
"RetryEnabled": true,
"Locations": [
{
"Id": "emea-fr-pra-edge"
},
{
"Id": "emea-ru-msa-edge"
},
{
"Id": "emea-ch-zrh-edge"
},
{
"Id": "us-tx-sn1-azr"
},
{
"Id": "apac-jp-kaw-edge"
}
],
"Request": {
"RequestUrl": "https://example.com",
"HttpVerb": "GET",
"ParseDependentRequests": false
},
"ValidationRules": {
"ExpectedHttpStatusCode": 200,
"SSLCheck": true,
"SSLCertRemainingLifetimeCheck": 7
}
}
}
]
}
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webtests_example_1338_test_without_http_adv_example_alert_name": {
"defaultValue": "example 1338 test without http-adv-example-alert",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "microsoft.insights/webtests",
"apiVersion": "2018-05-01-preview",
"name": "[parameters('webtests_example_1338_test_without_http_adv_example_alert_name')]",
"location": "westeurope",
"tags": {
"hidden-link:/subscriptions/........................../resourceGroups/exampleDevopsTesting/providers/microsoft.insights/components/adv-example-alert": "Resource"
},
"properties": {
"SyntheticMonitorId": "[parameters('webtests_example_1338_test_without_http_adv_example_alert_name')]",
"Name": "example 1338 test without http",
"Enabled": true,
"Frequency": 300,
"Timeout": 120,
"Kind": "standard",
"RetryEnabled": true,
"Locations": [
{
"Id": "emea-nl-ams-azr"
},
{
"Id": "emea-gb-db3-azr"
},
{
"Id": "emea-se-sto-edge"
},
{
"Id": "us-fl-mia-edge"
},
{
"Id": "apac-hk-hkn-azr"
}
],
"Request": {
"RequestUrl": "https://example.com",
"HttpVerb": "GET",
"ParseDependentRequests": false
},
"ValidationRules": {
"ExpectedHttpStatusCode": 200,
"SSLCheck": true,
"SSLCertRemainingLifetimeCheck": 7
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment