Skip to content

Commit 2fc03c9

Browse files
authored
Update availability-azure-functions.md
1 parent 4b567eb commit 2fc03c9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

articles/azure-monitor/app/availability-azure-functions.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Create and run custom availability tests using Azure Functions
2+
title: Create and run custom availability tests by using Azure Functions
33
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.
44
ms.topic: conceptual
55
ms.date: 05/06/2021
66
ms.devlang: csharp
77
---
88

9-
# Create and run custom availability tests using Azure Functions
9+
# Create and run custom availability tests by using Azure Functions
1010

1111
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:
1212

@@ -27,9 +27,10 @@ This article explains how to create an Azure function with `TrackAvailability()`
2727

2828
- 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.
2929
- 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.
3132

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.":::
3334

3435
- If you don't have an Application Insights resource created yet for your timer-triggered function:
3536
- 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
8182
}
8283
```
8384

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.)
8586

8687
```csharp
8788
#load "runAvailabilityTest.csx"

0 commit comments

Comments
 (0)