-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappinsightswebtest.bicep
57 lines (52 loc) · 1.08 KB
/
appinsightswebtest.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@description('Name of the App Insights Resource')
param AppInsightsName string
param Name string
@description('URL to test')
param WebTestUrl string
param RequestType string = 'Get'
resource AppInsights 'Microsoft.Insights/components@2020-02-02' existing = {
name: AppInsightsName
}
resource urlTest 'Microsoft.Insights/webtests@2018-05-01-preview' = {
name: Name
location: resourceGroup().location
kind: 'ping'
tags: {
'hidden-link:${AppInsights.id}': 'Resource'
}
properties: {
Name: Name
Kind: 'standard'
SyntheticMonitorId: Name
Frequency: 300
Timeout: 30
Enabled:true
Request: {
FollowRedirects: false
HttpVerb: RequestType
RequestUrl: WebTestUrl
ParseDependentRequests: false
}
ValidationRules: {
ExpectedHttpStatusCode: 200
SSLCheck:false
}
Locations: [
{
Id: 'emea-nl-ams-azr'
}
{
Id: 'emea-se-sto-edge'
}
{
Id: 'emea-ru-msa-edge'
}
{
Id: 'emea-gb-db3-azr'
}
{
Id: 'emea-ch-zrh-edge'
}
]
}
}