Skip to content

Commit b44b31e

Browse files
committed
Fixing indentation in PR 121543
1 parent 4786900 commit b44b31e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,25 @@ To create a new file, right-click under your timer trigger function (for example
206206

207207
```
208208

209+
### Multi-Step Web Test Code Sample
210+
Follow the same instructions above and instead paste the following code into the **runAvailabilityTest.csx** file:
211+
212+
```csharp
213+
using System.Net.Http;
214+
215+
public async static Task RunAvailabilityTestAsync(ILogger log)
216+
{
217+
using (var httpClient = new HttpClient())
218+
{
219+
// TODO: Replace with your business logic
220+
await httpClient.GetStringAsync("https://www.bing.com/");
221+
222+
// TODO: Replace with your business logic for an additional monitored endpoint, and logic for additional steps as needed
223+
await httpClient.GetStringAsync("https://www.learn.microsoft.com/");
224+
}
225+
}
226+
```
227+
209228
## Next steps
210229

211230
* [Standard tests](availability-standard-tests.md)

0 commit comments

Comments
 (0)