|
1 | 1 | --- |
2 | | -title: Resolve Function App Down or Reporting Errors |
3 | | -description: Describes how to troubleshoot the Azure Functions app if it's down or reporting errors. |
| 2 | +title: Resolve Function App Not Responding or Reporting Errors |
| 3 | +description: Describes how to troubleshoot Azure Functions app if it's not responding or reports errors. |
4 | 4 | ms.date: 08/05/2025 |
5 | 5 | ms.reviewer: v-liuamson; v-gsitser |
6 | 6 | ms.custom: sap:Function app down or reporting errors |
7 | 7 | --- |
8 | 8 |
|
9 | | -# Resolve Function App Down or Reporting Errors |
| 9 | +# Resolve function app not responding or reporting errors |
10 | 10 |
|
11 | 11 | ## Common scenarios, error messages, and symptoms |
12 | 12 |
|
13 | | -Function App failures typically fall into three major categories, which are configuration issues, customer code issues, and platform issues. This article explores these issues in detail and introduces the appropiate diagnostic tools for troubleshooting. |
| 13 | +Microsoft Azure Functions app failures typically fit into three major categories: configuration issues, customer code issues, and platform issues. This article explores these issues in detail and introduces the appropriate diagnostic tools for troubleshooting. |
14 | 14 |
|
15 | 15 | ### Configuration issues |
16 | 16 |
|
17 | | -These are the most frequent and include: |
| 17 | +These issues are the most common. They include: |
18 | 18 |
|
19 | | -- Missing or incorrect application settings such as `AzureWebJobsStorage`, `FUNCTIONS_WORKER_RUNTIME`, or binding-specific configurations. For more info, check the [App settings reference for Azure Functions](/azure/azure-functions/functions-app-settings). |
20 | | -- Storage account misconfigurations, including deleted accounts, rotated keys, or firewall restrictions. For more info, check the [Storage considerations for Azure Functions](/azure/azure-functions/storage-considerations?tabs=azure-cli). |
21 | | -- Key Vault and Managed Identity access problems due to misconfigured permissions or missing identity assignments. Check the following resources for more info: |
| 19 | +- Missing or incorrect application settings, such as `AzureWebJobsStorage`, `FUNCTIONS_WORKER_RUNTIME`, and binding-specific configurations. For more information, see the [App settings reference for Azure Functions](/azure/azure-functions/functions-app-settings). |
| 20 | +- Storage account misconfigurations, including deleted accounts, rotated keys, and firewall restrictions. For more information, see [Storage considerations for Azure Functions](/azure/azure-functions/storage-considerations?tabs=azure-cli). |
| 21 | +- Key Vault and Managed Identity access problems because of misconfigured permissions or missing identity assignments. For more information, see the following resources: |
22 | 22 | - [Use Key Vault references as app settings - Azure App Service](/azure/app-service/app-service-key-vault-references?tabs=azure-cli#troubleshoot-key-vault-references) |
23 | 23 | - [Create a function app without default storage secrets in its definition - Azure Functions](/azure/azure-functions/functions-identity-based-connections-tutorial) |
24 | 24 |
|
25 | 25 | ### Customer code issues |
26 | 26 |
|
27 | | -These issues originate from: |
| 27 | +These issues have the following causes: |
28 | 28 |
|
29 | | -- Faulty code patterns that lead to high CPU/memory usage, SNAT exhaustion, or runtime exceptions (e.g., division by zero, null reference). |
30 | | -- Long-running or inefficient functions, which are especially problematic on consumption plans due to timeout constraints. |
| 29 | +- Faulty code patterns that cause high CPU or memory usage, SNAT exhaustion, or runtime exceptions (for example, division by zero or null reference). |
| 30 | +- Long-running or inefficient functions that are especially problematic on consumption plans because of timeout constraints. |
31 | 31 |
|
32 | | -Check the following resources for more info: |
| 32 | +For more information, see the following resources: |
33 | 33 |
|
34 | 34 | - [Azure Functions best practices](/azure/azure-functions/functions-best-practices?tabs=csharp) |
35 | 35 | - [Improve Azure Functions performance and reliability](/azure/azure-functions/performance-reliability) |
36 | 36 | - [Manage connections in Azure Functions](/azure/azure-functions/manage-connections?tabs=csharp) |
37 | 37 |
|
38 | 38 | ### Platform issues |
39 | 39 |
|
40 | | -Less frequent but impactful: |
| 40 | +These issues are less common but usually have a greater effect: |
41 | 41 |
|
42 | | -- Unsupported runtime versions (e.g., Azure Functions `~2.x` or `~3.x`). |
43 | | -Check the following resources for more info: |
| 42 | +- Unsupported runtime versions (for example, Azure Functions `~2.x` or `~3.x`). |
| 43 | +For more information, see the following resources: |
44 | 44 | - [Azure Functions language stack support policy](/azure/azure-functions/language-support-policy?pivots=programming-language-csharp) |
45 | 45 | - [Supported languages in Azure Functions](/azure/azure-functions/supported-languages?tabs=isolated-process%2Cv4&pivots=programming-language-csharp#languages-by-runtime-version) |
46 | 46 |
|
47 | | -- Host startup failures, including placeholder site specialization errors or container allocation issues. |
| 47 | +- Host startup failures, including placeholder site specialization errors and container allocation issues. |
48 | 48 |
|
49 | 49 | ### Typical error messages |
50 | 50 |
|
51 | | -You may encounter common errors such as: |
| 51 | +You may experience common errors such as the following: |
52 | 52 |
|
53 | 53 | - **Azure Functions runtime is unreachable.** |
54 | | - [Troubleshoot error: Azure Functions runtime is unreachable](/azure/azure-functions/functions-recover-storage-account). |
| 54 | + |
| 55 | + See [Troubleshoot error: Azure Functions runtime is unreachable](/azure/azure-functions/functions-recover-storage-account). |
55 | 56 |
|
56 | 57 | - **Function host not running.** |
57 | 58 |
|
58 | 59 | - **Access Denied**: `'C:\home\site\wwwroot\host.json'`. |
59 | 60 |
|
60 | | -- **HTTP 5xx errors**: 503, 502, 500, or timeouts. |
| 61 | +- **HTTP 5*xx* errors**: 503, 502, 500, or timeouts. |
61 | 62 |
|
62 | | -### Symptoms to watch |
| 63 | +### Symptoms to watch for |
63 | 64 |
|
64 | | -- Function not triggering or executing. [Analyze Azure Functions telemetry in Application Insights](/azure/azure-functions/analyze-telemetry-data#viewing-telemetry-in-monitor-tab) |
| 65 | +- Function not triggering or running. See [Analyze Azure Functions telemetry in Application Insights](/azure/azure-functions/analyze-telemetry-data#viewing-telemetry-in-monitor-tab). |
65 | 66 |
|
66 | 67 | - Missing invocation history or unexpected gaps. |
67 | 68 |
|
68 | | -- High resource consumption (CPU/memory spikes flagged by detectors). |
| 69 | +- High resource consumption (CPU or memory spikes that are flagged by detectors). |
69 | 70 |
|
70 | | -- Timeouts or long response times, especially on Consumption plans (max 230 seconds). |
| 71 | +- Timeouts or long response times, especially on Consumption plans (maximum of 230 seconds). |
71 | 72 |
|
72 | | -- Functions not listed in the overview page. |
| 73 | +- Functions not listed on the overview page. |
73 | 74 |
|
74 | 75 | ## Diagnostic tools |
75 | 76 |
|
76 | | -You may use the following tools in the Azure portal to identify and resolve issues: |
| 77 | +To identify and resolve issues, you can use the following tools in the Azure portal. |
77 | 78 |
|
78 | 79 | ### Function App Down or Reporting Errors (Preview) |
79 | 80 |
|
80 | 81 | To access this tool, follow these steps: |
81 | 82 |
|
82 | 83 | 1. Sign in to the [Azure portal](https://portal.azure.com). |
83 | | -1. Navigate to **Function App**. |
| 84 | +1. Open **Function App**. |
84 | 85 | 1. Select **Diagnose and solve problems**. |
85 | 86 | 1. Search for **Function App Down or Reporting Errors (Preview)**. |
86 | 87 |
|
87 | | -**Features**: |
| 88 | +**Features of this tool** |
88 | 89 |
|
89 | | -- Automates key troubleshooting checks using existing detectors. |
| 90 | +- Automates key troubleshooting checks by using existing detectors. |
90 | 91 | - Provides minimal noise and focused root cause analysis. |
91 | | -- Supports [Conversational diagnostics](https://techcommunity.microsoft.com/blog/appsonazureblog/power-of-conversational-diagnostics-public-preview-diagnostic-workflows/428866ution). |
| 92 | +- Supports [conversational diagnostics](https://techcommunity.microsoft.com/blog/appsonazureblog/power-of-conversational-diagnostics-public-preview-diagnostic-workflows/428866ution). |
92 | 93 |
|
93 | 94 | ## Issue categories |
94 | 95 |
|
95 | | -Function App downtime errors are classified into: |
| 96 | +Function app downtime errors are categorized as follows. |
96 | 97 |
|
97 | | -### Common configuration problems |
| 98 | +### Common configuration issues |
98 | 99 |
|
99 | | -- Misconfigured application settings. |
100 | | -- Incorrect or unreachable storage account configuration. |
101 | | -- Key Vault access permission issues. |
102 | | -- Managed Identity authentication problems. |
103 | | -- Binding/trigger misconfiguration. |
104 | | -- Network connectivity issues. |
| 100 | +- Misconfigured application settings |
| 101 | +- Incorrect or unreachable storage account configuration |
| 102 | +- Key Vault access permission issues |
| 103 | +- Managed Identity authentication problems |
| 104 | +- Binding or trigger misconfiguration |
| 105 | +- Network connectivity issues |
105 | 106 |
|
106 | 107 | ### Code and runtime resource issues |
107 | 108 |
|
108 | | -- High CPU/memory consumption. |
109 | | -- SNAT port exhaustion. |
110 | | -- TCP connection exhaustion. |
111 | | -- Long-running or stuck functions. |
112 | | -- Runtime exceptions and failures. |
113 | | -- Poor error handling or retry logic. |
| 109 | +- High CPU or memory consumption |
| 110 | +- SNAT port exhaustion |
| 111 | +- TCP connection exhaustion |
| 112 | +- Long-running or stuck functions |
| 113 | +- Runtime exceptions and failures |
| 114 | +- Poor error handling or retry logic |
114 | 115 |
|
115 | 116 | ## Diagnostic checks performed |
116 | 117 |
|
117 | | -The diagnostic workflow evaluates the following aspects of your Function App: |
| 118 | +The diagnostic workflow evaluates the following aspects of your function spp: |
118 | 119 |
|
119 | 120 | - **General information** |
120 | | - - Hosting plan type (Consumption, Premium, Dedicated, Flex). |
121 | | - - Runtime version. |
122 | | - - Platform (Linux or Windows). |
123 | | - - Trigger types and bindings. |
| 121 | + - Hosting plan type (Consumption, Premium, Dedicated, Flex) |
| 122 | + - Runtime version |
| 123 | + - Platform (Linux or Windows) |
| 124 | + - Trigger types and bindings |
124 | 125 | - **Startup issues** |
125 | | - - Diagnostic events during app startup. |
126 | | - - Offline history analysis for unexpected downtimes. |
| 126 | + - Diagnostic events during app startup |
| 127 | + - Offline history analysis for unexpected downtimes |
127 | 128 | - **Recent deployments** |
128 | | - - Highlights deployments that may have impacted the app. |
| 129 | + - Highlights deployments that may have impacted the app |
129 | 130 | - **Runtime and language version validation** |
130 | | - - Confirms use of supported versions. |
| 131 | + - Confirms use of supported versions |
131 | 132 | - **Configuration checks** |
132 | | - - Verifies mandatory app settings. |
133 | | - - Validates Key Vault and Managed Identity configuration. |
134 | | - - Checks for SyncTrigger issues. |
135 | | - - Detects Function Host name collisions. |
| 133 | + - Verifies mandatory app settings |
| 134 | + - Verifies Key Vault and Managed Identity configuration |
| 135 | + - Checks for SyncTrigger issues |
| 136 | + - Detects Function Host name collisions |
136 | 137 | - **Extension versions** |
137 | | - - Identifies outdated or unsupported extensions. |
| 138 | + - Identifies outdated or unsupported extensions |
138 | 139 | - **Hosting plan setup** |
139 | | - - Analyzes configuration and scaling behavior. |
140 | | - - Checks for SNAT port exhaustion, high CPU, and memory issues. |
| 140 | + - Analyzes configuration and scaling behavior |
| 141 | + - Checks for SNAT port exhaustion, high CPU, and memory issues |
141 | 142 | - Includes risk alerts: |
142 | | - - For Dedicated plans: validates **AlwaysOn** is enabled. |
143 | | - - For Elastic Premium: checks VNet routing and scaling. |
| 143 | + - For Dedicated plans: verifies that **AlwaysOn** is enabled |
| 144 | + - For Elastic Premium: checks VNet routing and scaling |
144 | 145 | - **Execution health** |
145 | 146 | - Detects: |
146 | | - - Execution failures. |
147 | | - - Non-triggering functions. |
148 | | - - Stuck or long-running executions. |
| 147 | + - Execution failures |
| 148 | + - Non-triggering functions |
| 149 | + - Stuck or long-running executions |
149 | 150 | - **AI-powered analysis** |
150 | | - - Uses OpenAI to detect issue patterns and provide contextual recommendations. |
| 151 | + - Uses OpenAI to detect issue patterns and provide contextual recommendations |
151 | 152 |
|
152 | 153 | ### Application Insights queries |
153 | 154 |
|
@@ -178,48 +179,48 @@ For diagnostics, run these queries in Application Insights: |
178 | 179 | ``` |
179 | 180 |
|
180 | 181 | > [!NOTE] |
181 | | -> Sampling is enabled by default. Disable temporarily if needed during investigation. |
| 182 | +> Sampling is enabled by default. If it's necessary, disable this feature temporarily during an investigation. |
182 | 183 |
|
183 | | -For more info, check [Analyze Azure Functions telemetry in Application Insights](/azure/azure-functions/analyze-telemetry-data#viewing-telemetry-in-monitor-tab). |
| 184 | +For more information, see [Analyze Azure Functions telemetry in Application Insights](/azure/azure-functions/analyze-telemetry-data#viewing-telemetry-in-monitor-tab). |
184 | 185 |
|
185 | 186 | ### Network validator tool |
186 | 187 |
|
187 | 188 | > [!NOTE] |
188 | | -> This applies to all hosting plans, with the exception of the Windows and Linux Consumption plans. |
| 189 | +> This tool applies to all hosting plans, except for the Windows and Linux Consumption plans. |
189 | 190 |
|
190 | | -If your app shows errors such as `FAILED TO INITIALIZE RUN FROM PACKAGE.txt` or `host.json not found`, use the [Network troubleshooter](../../app-service/troubleshoot-vnet-integration-apps.md#network-troubleshooter) to resolve. |
| 191 | +If your app shows errors such as `FAILED TO INITIALIZE RUN FROM PACKAGE.txt` or `host.json not found`, use the [network troubleshooter](../../app-service/troubleshoot-vnet-integration-apps.md#network-troubleshooter) to resolve the errors. |
191 | 192 |
|
192 | | -**To access:** |
| 193 | +To access the tool, follow these steps: |
193 | 194 |
|
194 | | -- Log on to the [Azure portal](https://portal.azure.com). |
195 | | -- Navigate to **Diagnose and solve problems**. |
196 | | -- Search for **Connectivity Troubleshooter**. |
| 195 | +1. Sign in to the [Azure portal](https://portal.azure.com). |
| 196 | +1. Navigate to **Diagnose and solve problems**. |
| 197 | +1. Search for **Connectivity Troubleshooter**. |
197 | 198 |
|
198 | | -**This tool checks for:** |
| 199 | +This tool checks for: |
199 | 200 |
|
200 | | -- DNS resolution. |
201 | | -- Storage and Key Vault access. |
202 | | -- Outbound restrictions (VNet, NSG, firewalls). |
| 201 | +- DNS resolution |
| 202 | +- Storage and Key Vault access |
| 203 | +- Outbound restrictions (VNet, NSG, firewalls) |
203 | 204 |
|
204 | | -**Ensure that:** |
| 205 | +When you use the network validator, make sure that: |
205 | 206 |
|
206 | 207 | - VNet integration is correctly configured. |
207 | 208 | - No endpoint or firewall blocks are in place. |
208 | 209 |
|
209 | | -Check the following resources for more info: |
| 210 | +For more information, see the following resources: |
210 | 211 |
|
211 | 212 | - [Azure Functions networking options](/azure/azure-functions/functions-networking-options?tabs=azure-portal#troubleshooting) |
212 | 213 | - [Frequently asked questions about networking in Azure Functions](/azure/azure-functions/functions-networking-faq) |
213 | 214 |
|
214 | 215 | ### Kudu logs (SCM) |
215 | 216 |
|
216 | 217 | > [!NOTE] |
217 | | -> This applies to all hosting plans, with the exception of the Linux Consumption and Flex Consumption plans. |
| 218 | +> This tool applies to all hosting plans, except for the Linux Consumption and Flex Consumption plans. |
218 | 219 |
|
219 | | -Access logs under: |
| 220 | +### Additional logs |
220 | 221 |
|
221 | 222 | - **Host Logs**: `%HOME%\LogFiles\Application\Functions\Host` |
222 | 223 | - **Functions log**: `%HOME%\LogFiles\Application\Functions\Function\<your_triggername>` |
223 | 224 | - **System-level log**: `%HOME%\LogFiles\Eventlog.xml` |
224 | 225 |
|
225 | | -For more info, check [Understanding the Azure App Service file system](https://github.com/projectkudu/kudu/wiki/understanding-the-azure-app-service-file-system). |
| 226 | +For more information, see [Understanding the Azure App Service file system](https://github.com/projectkudu/kudu/wiki/understanding-the-azure-app-service-file-system). |
0 commit comments