You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/availability-azure-functions.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
-
title: Create and run custom availability tests using Azure Functions
2
+
title: Create and run custom availability tests by using Azure Functions
3
3
description: This article explains how to create an Azure function with TrackAvailability() that will run periodically according to the configuration given in a TimerTrigger function.
4
4
ms.topic: conceptual
5
5
ms.date: 05/06/2021
6
6
ms.devlang: csharp
7
7
---
8
8
9
-
# Create and run custom availability tests using Azure Functions
9
+
# Create and run custom availability tests by using Azure Functions
10
10
11
11
This article explains how to create an Azure function with `TrackAvailability()` that will run periodically according to the configuration given in the `TimerTrigger` function with your own business logic. The results of this test will be sent to your Application Insights resource, where you can query for and alert on the availability results data. Then you can create customized tests similar to what you can do via [availability monitoring](./monitor-web-app-availability.md) in the Azure portal. By using customized tests, you can:
12
12
@@ -27,9 +27,10 @@ This article explains how to create an Azure function with `TrackAvailability()`
27
27
28
28
- By default, Azure Functions creates an Application Insights resource. But if you want to use a resource you created previously, you must specify that during creation.
29
29
- Follow the instructions on how to [create an Azure Functions resource](../../azure-functions/functions-create-scheduled-function.md#create-a-function-app) with the following modification:
30
-
- On the **Monitoring** tab, select the **Application Insights** dropdown box and then enter or select the name of your resource.
30
+
31
+
On the **Monitoring** tab, select the **Application Insights** dropdown box and then enter or select the name of your resource.
31
32
32
-
:::image type="content" source="media/availability-azure-functions/app-insights-resource.png" alt-text="Screenshot that shows selecting your existing Application Insights resource on the Monitoring tab.":::
33
+
:::image type="content" source="media/availability-azure-functions/app-insights-resource.png" alt-text="Screenshot that shows selecting your existing Application Insights resource on the Monitoring tab.":::
33
34
34
35
- If you don't have an Application Insights resource created yet for your timer-triggered function:
35
36
- By default, when you're creating your Azure Functions application, it will create an Application Insights resource for you. Follow the instructions on how to [create an Azure Functions resource](../../azure-functions/functions-create-scheduled-function.md#create-a-function-app).
@@ -81,7 +82,7 @@ To create a new file, right-click under your timer trigger function (for example
81
82
}
82
83
```
83
84
84
-
1. Copy the following code into the **run.csx** file (you'll replace the preexisting code):
85
+
1. Copy the following code into the **run.csx** file. (You'll replace the preexisting code.)
0 commit comments