Skip to content

Commit dd5ba88

Browse files
author
ecfan
committed
Update ToC and file renames for consistency
1 parent 469885c commit dd5ba88

File tree

5 files changed

+130
-1
lines changed

5 files changed

+130
-1
lines changed

articles/logic-apps/.openpublishing.redirection.logic-apps.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path_from_root": "/articles/logic-apps/monitor-logic-apps.md",
5+
"redirect_url": "/azure/logic-apps/view-workflow-status-run-history",
6+
"redirect_document_id": true
7+
},
38
{
49
"source_path_from_root": "/articles/logic-apps/logic-apps-move-from-mabs.md",
510
"redirect_url": "/azure/logic-apps/biztalk-server-to-azure-integration-services-overview",
8.22 KB
Loading
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
---
2+
title: Monitor Standard workflows with Health Check
3+
description: Set up Health Check to monitor health for Standard workflows in Azure Logic Apps.
4+
services: azure-logic-apps
5+
ms.suite: integration
6+
ms.reviewer: estfan, azla
7+
ms.topic: how-to
8+
ms.date: 08/06/2024
9+
# Customer intent: As a developer, I want to monitor the health for my Standard logic app workflows in single-tenant Azure Logic Apps by setting up Health Check, which is an Azure App Service feature.
10+
---
11+
12+
# Monitor health for Standard workflows in Azure Logic Apps with Health Check
13+
14+
[!INCLUDE [logic-apps-sku-standard](../../includes/logic-apps-sku-standard.md)]
15+
16+
To help your Standard logic app workflows run with high availability and performance, set up the Health Check feature on your logic app to monitor workflow health. This feature makes sure that your app stays resilient by providing the following benefits:
17+
18+
- Proactive monitoring so you can find and address issues before they impact your customers.
19+
20+
- Increased availability by removing unhealthy instances from the load balancer in Azure.
21+
22+
- Automatic recovery by replacing unhealthy instances.
23+
24+
## How does Health Check work in Azure Logic Apps?
25+
26+
Health Check is an Azure App Service feature that reroutes requests away from unhealthy instances and replaces those instances if they stay unhealthy. For a Standard logic app, you can specify a path to a "health" workflow that you create for this purpose and for App Service to ping at regular intervals. For example, the following sample shows the minimum basic version:
27+
28+
:::image type="content" source="media/monitor-workflows-health-check/health-workflow.png" alt-text="Screenshot shows Standard logic app workflow to use as the health workflow." lightbox="media/monitor-workflows-health-check/health-workflow.png":::
29+
30+
After you enable Health Check, App Service pings the specified path for all Standard workflow instances at 1-minute intervals. If the logic app requires scale out, Azure immediately creates a new instance. App Service pings the workflow path again to make sure that the new instance is ready.
31+
32+
If a workflow on an instance doesn't respond to the ping, App Service determines that the instance is unhealthy and removes that instance from the load balancer rotation in Azure for that specific logic app. With a two-request minimum, you can specify the required number of failed requests to determine that an instance is unhealthy. For more information about overriding default behavior, see [Configuration: Monitor App Service instances using Health Check](../app-service/monitor-instances-health-check.md#configuration).
33+
34+
After removing the unhealthy instance, Health Check continues to ping the instance. If the instance responds with a healthy status code, inclusively ranging from 200 to 299, Health Check returns the instance to the load balancer. However, if the workflow running on the instance remains unhealthy for one hour, Health Check replaces the instance with a new one. For more information, see [What App Service does with health checks](../app-service/monitor-instances-health-check.md#what-app-service-does-with-health-checks).
35+
36+
## Prerequisites
37+
38+
- An Azure account and subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
39+
40+
- A Standard logic app resource with the following attributes:
41+
42+
- An App Service plan that is scaled to two or more instances.
43+
44+
- A "health" workflow that specifically runs the health check and the following elements:
45+
46+
- Starts with the **Request** trigger named **When a HTTP request is received**.
47+
48+
- Includes the **Request** action named **Response** that returns a status code that inclusively ranges from **200** to **299**.
49+
50+
You can also optionally have this workflow run other checks to make sure that dependent services are available and work as expected. As a best practice, make sure that the Health Check path monitors critical components in your workflow. For example, if your app depends on a database and messaging system, make sure that Health Check can access those components.
51+
52+
## Limitations
53+
54+
- The specified path length must have fewer than 65 characters.
55+
56+
- Changes to the specified path for Health Check causes your logic app to restart. To reduce the impact on production apps, [set up and use deployment slots](set-up-deployment-slots.md).
57+
58+
- Health Check doesn't follow redirects for the **302** status code So, avoid redirects, and make sure to select a valid path that exists in your app.
59+
60+
## Set up Health Check
61+
62+
1. In the [Azure portal](https://portal.azure.com), go to your Standard logic app resource.
63+
64+
1. On the logic app menu, select **Diagnose and solve problems**.
65+
66+
1. On the **Diagnose and solve problems** page, in the search box, find and select **Health Check feature**.
67+
68+
1. In the **Health Check feature** section, select **View Solution**.
69+
70+
1. On the pane that opens, select **Configure and enable health check feature**.
71+
72+
1. On the **Health check** tab, next to **Health check**, select **Enable**.
73+
74+
1. Under **Health probe path**, in the **Path** box, enter a valid URL path for your workflow, for example:
75+
76+
**`/api/{workflow-name}/triggers/{request-trigger-name}/invoke?api-version=2022-05-01`**
77+
78+
1. Save your changes. On the toolbar, select **Save**.
79+
80+
1. In your logic app resource, update the **host.json** file by following these steps:
81+
82+
1. On the logic app menu, under **Development Tools**, select **Advanced Tools** > **Go**.
83+
84+
1. On the **KuduPlus** toolbar, from the **Debug console** menu, select **CMD**.
85+
86+
1. Browse to the **site/wwwroot** folder, and next to the **host.json** file, select **Edit**.
87+
88+
1. In the **host.json** file editor, add the **Workflows.HealthCheckWorkflowName** property and your health workflow name to enable health check authentication and authorization, for example:
89+
90+
```json
91+
"extensions": {
92+
"workflow": {
93+
"settings": {
94+
"Workflows.HealthCheckWorkflowName" : "{workflow-name}"
95+
}
96+
}
97+
}
98+
```
99+
100+
1. When you finish, select **Save**.
101+
102+
## Troubleshooting
103+
104+
### After I set the health path, my health workflow doesn't trigger.
105+
106+
1. On the logic app menu, select **Diagnose and solve problems**.
107+
108+
1. Under **Troubleshooting categories**, select **Availability and Performance**.
109+
110+
1. Find and review the status code section.
111+
112+
If the status code is **401**, check the following items:
113+
114+
- Confirm that the **Workflows.HealthCheckWorkflowName** property and your health workflow name appear correctly.
115+
116+
- Confirm that the specified path matches the workflow and **Request** trigger name.
117+
118+
## Related content
119+
120+
- [Monitor and collect diagnostic data for workflows](monitor-workflows-collect-diagnostic-data.md)
121+
- [Enable and view enhanced telemetry for Standard workflows](enable-enhanced-telemetry-standard-workflows.md)
122+
- [View health and performance metrics](view-workflow-metrics.md)

articles/logic-apps/toc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,11 @@ items:
458458
- name: Monitor workflows
459459
href: monitor-logic-apps-overview.md
460460
- name: View workflow status and run history
461-
href: monitor-logic-apps.md
461+
href: view-workflow-status-run-history.md
462462
- name: View health and performance metrics
463463
href: view-workflow-metrics.md
464+
- name: Enable Health Check for Standard workflows
465+
href: monitor-health-standard-workflows.md
464466
- name: Enable and view enhanced telemetry for Standard workflows
465467
href: enable-enhanced-telemetry-standard-workflows.md
466468
- name: Monitor and collect diagnostic data for workflows
File renamed without changes.

0 commit comments

Comments
 (0)