Skip to content

Commit 5e7de83

Browse files
authored
Update functions-troubleshoot-issues.md
1 parent 77f80a4 commit 5e7de83

1 file changed

Lines changed: 83 additions & 82 deletions

File tree

Lines changed: 83 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,154 @@
11
---
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.
44
ms.date: 08/05/2025
55
ms.reviewer: v-liuamson; v-gsitser
66
ms.custom: sap:Function app down or reporting errors
77
---
88

9-
# Resolve Function App Down or Reporting Errors
9+
# Resolve function app not responding or reporting errors
1010

1111
## Common scenarios, error messages, and symptoms
1212

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.
1414

1515
### Configuration issues
1616

17-
These are the most frequent and include:
17+
These issues are the most common. They include:
1818

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:
2222
- [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)
2323
- [Create a function app without default storage secrets in its definition - Azure Functions](/azure/azure-functions/functions-identity-based-connections-tutorial)
2424

2525
### Customer code issues
2626

27-
These issues originate from:
27+
These issues have the following causes:
2828

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.
3131

32-
Check the following resources for more info:
32+
For more information, see the following resources:
3333

3434
- [Azure Functions best practices](/azure/azure-functions/functions-best-practices?tabs=csharp)
3535
- [Improve Azure Functions performance and reliability](/azure/azure-functions/performance-reliability)
3636
- [Manage connections in Azure Functions](/azure/azure-functions/manage-connections?tabs=csharp)
3737

3838
### Platform issues
3939

40-
Less frequent but impactful:
40+
These issues are less common but usually have a greater effect:
4141

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:
4444
- [Azure Functions language stack support policy](/azure/azure-functions/language-support-policy?pivots=programming-language-csharp)
4545
- [Supported languages in Azure Functions](/azure/azure-functions/supported-languages?tabs=isolated-process%2Cv4&pivots=programming-language-csharp#languages-by-runtime-version)
4646

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.
4848

4949
### Typical error messages
5050

51-
You may encounter common errors such as:
51+
You may experience common errors such as the following:
5252

5353
- **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).
5556

5657
- **Function host not running.**
5758

5859
- **Access Denied**: `'C:\home\site\wwwroot\host.json'`.
5960

60-
- **HTTP 5xx errors**: 503, 502, 500, or timeouts.
61+
- **HTTP 5*xx* errors**: 503, 502, 500, or timeouts.
6162

62-
### Symptoms to watch
63+
### Symptoms to watch for
6364

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

6667
- Missing invocation history or unexpected gaps.
6768

68-
- High resource consumption (CPU/memory spikes flagged by detectors).
69+
- High resource consumption (CPU or memory spikes that are flagged by detectors).
6970

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

72-
- Functions not listed in the overview page.
73+
- Functions not listed on the overview page.
7374

7475
## Diagnostic tools
7576

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.
7778

7879
### Function App Down or Reporting Errors (Preview)
7980

8081
To access this tool, follow these steps:
8182

8283
1. Sign in to the [Azure portal](https://portal.azure.com).
83-
1. Navigate to **Function App**.
84+
1. Open **Function App**.
8485
1. Select **Diagnose and solve problems**.
8586
1. Search for **Function App Down or Reporting Errors (Preview)**.
8687

87-
**Features**:
88+
**Features of this tool**
8889

89-
- Automates key troubleshooting checks using existing detectors.
90+
- Automates key troubleshooting checks by using existing detectors.
9091
- 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).
9293

9394
## Issue categories
9495

95-
Function App downtime errors are classified into:
96+
Function app downtime errors are categorized as follows.
9697

97-
### Common configuration problems
98+
### Common configuration issues
9899

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
105106

106107
### Code and runtime resource issues
107108

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
114115

115116
## Diagnostic checks performed
116117

117-
The diagnostic workflow evaluates the following aspects of your Function App:
118+
The diagnostic workflow evaluates the following aspects of your function spp:
118119

119120
- **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
124125
- **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
127128
- **Recent deployments**
128-
- Highlights deployments that may have impacted the app.
129+
- Highlights deployments that may have impacted the app
129130
- **Runtime and language version validation**
130-
- Confirms use of supported versions.
131+
- Confirms use of supported versions
131132
- **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
136137
- **Extension versions**
137-
- Identifies outdated or unsupported extensions.
138+
- Identifies outdated or unsupported extensions
138139
- **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
141142
- 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
144145
- **Execution health**
145146
- 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
149150
- **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
151152

152153
### Application Insights queries
153154

@@ -178,48 +179,48 @@ For diagnostics, run these queries in Application Insights:
178179
```
179180
180181
> [!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.
182183
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).
184185
185186
### Network validator tool
186187
187188
> [!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.
189190
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.
191192
192-
**To access:**
193+
To access the tool, follow these steps:
193194
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**.
197198
198-
**This tool checks for:**
199+
This tool checks for:
199200
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)
203204
204-
**Ensure that:**
205+
When you use the network validator, make sure that:
205206
206207
- VNet integration is correctly configured.
207208
- No endpoint or firewall blocks are in place.
208209
209-
Check the following resources for more info:
210+
For more information, see the following resources:
210211
211212
- [Azure Functions networking options](/azure/azure-functions/functions-networking-options?tabs=azure-portal#troubleshooting)
212213
- [Frequently asked questions about networking in Azure Functions](/azure/azure-functions/functions-networking-faq)
213214
214215
### Kudu logs (SCM)
215216
216217
> [!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.
218219
219-
Access logs under:
220+
### Additional logs
220221
221222
- **Host Logs**: `%HOME%\LogFiles\Application\Functions\Host`
222223
- **Functions log**: `%HOME%\LogFiles\Application\Functions\Function\<your_triggername>`
223224
- **System-level log**: `%HOME%\LogFiles\Eventlog.xml`
224225
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

Comments
 (0)