You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/includes/configure-azure-storage/azure-storage-linux-container-pivot.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,46 @@ To validate that the Azure Storage is mounted successfully for the app:
203
203
tcpping Storageaccount.file.core.windows.net
204
204
```
205
205
206
+
### Storage mount health checks and auto‑recovery
207
+
208
+
Azure App Service includes a built‑in health‑check mechanism to ensure that mounted Azure Storage volumes (Azure Files or Azure Blob) remain accessible and responsive. This system helps prevent application hangs caused by stale or disconnected storage mounts.
209
+
210
+
#### How the health check works
211
+
212
+
1.**Periodic I/O test**
213
+
App Service periodically performs file I/O on a marker file named `__lastCheckTime.txt`.
214
+
-**Location:** A `LogFiles` subdirectory under the mounted path (for example, `/mount/path/LogFiles/__lastCheckTime.txt`).
215
+
-**Behavior:**
216
+
- A read operation is attempted on this file.
217
+
- The file does *not* need to exist—“file not found” is treated as a successful check.
218
+
219
+
2.**Frequency**
220
+
The check runs every **5 seconds** by default.
221
+
222
+
3.**Failure handling**
223
+
- Each failed or timed‑out check increments a *failed ping counter*.
224
+
- When failures exceed the configured threshold:
225
+
-**Azure Files:** 18 failed pings
226
+
-**Azure Blob:** 15 failed pings
227
+
- The mount is marked **Faulted**, and **App Service automatically restarts the app** to restore connectivity to the share.
228
+
229
+
#### Configuration via App Settings
230
+
231
+
You can customize health‑check behavior using the following app settings.
232
+
233
+
| Storage type | Setting name | Default value | Description |
0 commit comments