-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/use-open-telemetry-graphql
- Loading branch information
Showing
7 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@description('The name of the availability test') | ||
param name string | ||
|
||
@description('The location where the resources will be deployed') | ||
param location string | ||
|
||
@description('Tags to apply to resources') | ||
param tags object | ||
|
||
@description('The ID of the Application Insights resource') | ||
param appInsightsId string | ||
|
||
@description('The URL of the availability test') | ||
param url string | ||
|
||
@description('The frequency in seconds at which the test runs') | ||
param frequency int = 120 // Default is every 2 minutes | ||
|
||
@description('The timeout in seconds for the test') | ||
param timeout int = 60 // Default is 1 minute | ||
|
||
resource availabilityTest 'Microsoft.Insights/webtests@2022-06-15' = { | ||
name: name | ||
location: location | ||
tags: union(tags, { | ||
'hidden-link:${appInsightsId}': 'Resource' | ||
}) | ||
kind: 'standard' | ||
properties: { | ||
Enabled: true | ||
SyntheticMonitorId: name | ||
Name: name | ||
Description: 'Availability test for ${name}' | ||
Frequency: frequency | ||
Timeout: timeout | ||
Kind: 'standard' | ||
RetryEnabled: true | ||
Locations: [ | ||
{ Id: 'emea-nl-ams-azr' } // Amsterdam | ||
{ Id: 'emea-se-sto-edge' } // Stockholm | ||
{ Id: 'emea-gb-db3-azr' } // Dublin | ||
] | ||
Request: { | ||
RequestUrl: url | ||
HttpVerb: 'GET' | ||
ParseDependentRequests: false | ||
} | ||
ValidationRules: { | ||
ExpectedHttpStatusCode: 200 | ||
SSLCheck: true | ||
SSLCertRemainingLifetimeCheck: 7 | ||
} | ||
} | ||
} |
This file contains 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