Created
December 1, 2021 13:03
-
-
Save alexs77/fc61992f84cf2d3ca80bda54cb2717cb to your computer and use it in GitHub Desktop.
Azure Standard Web Tests - with and without http status code check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- "/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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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 | |
} | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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