Skip to content

Commit 8c6bdd4

Browse files
committed
Merge remote-tracking branch 'magordon/patch-1' into errors
2 parents cbcb932 + 4f24dc9 commit 8c6bdd4

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

articles/azure-functions/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,8 @@
855855
href: errors-diagnostics/diagnostic-events/azfd0002.md
856856
- name: AZFD0003
857857
href: errors-diagnostics/diagnostic-events/azfd0003.md
858+
- name: AZFD0004
859+
href: errors-diagnostics/diagnostic-events/azfd0004.md
858860
- name: host.json 2.x reference
859861
href: functions-host-json.md
860862
- name: host.json 1.x reference
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: "AZFD0004: Host ID collision"
3+
titleSuffix: "Azure Functions"
4+
description: "AZFD0004: Host ID collision"
5+
author: madelinegordon
6+
ms.author: magordon
7+
ms.topic: troubleshooting
8+
ms.date: 01/19/2023
9+
---
10+
11+
# AZFD0004: Host ID collision
12+
13+
This event occurs when you have multiple Function Apps sharing a single storage account they're each using the same host ID, which is usually autogenerated.
14+
15+
| | Value |
16+
|-|-|
17+
| **Event ID** |AZFD0004|
18+
| **Category** |[Usage]|
19+
| **Severity** |Error|
20+
21+
## Event description
22+
23+
A host ID collision can occur when you have more than one function app or slots sharing the same storage account and using the same host ID. For example, if you have multiple apps or slots with names longer than 32 characters and the first 32 characters are shared, both generated host ID values may be the same due to truncation.
24+
25+
When multiple apps have the same host ID, the resulting collision can result incorrect behaviors. For example, some triggers, like timer and Blob Storage, store tracking info by host ID. This can result in incorrect behavior when the host can't differentiate between apps by host ID. When this collision is detected, an error (hard failure) is logged and the host is shut down.
26+
27+
For more information, see [host ID considerations](../../../storage-considerations.md#host-id-considerations).
28+
29+
## Options for addressing collisions:
30+
- Connection your function app at a different storage account by changing the [AzureWebJobsStorage](../../../functions-app-settings.md#azurewebjobsstorage) application setting.
31+
- Rename your function app to something less than 32 characters in length. This changes the host ID generated for the app and removes the collision.
32+
- Provide explicit host ID values for your function apps or slots so they no longer conflict. For more information, see [host ID considerations](../../../storage-considerations.md#host-id-considerations).
33+
34+
## When to suppress the event
35+
This event should not be suppressed.

0 commit comments

Comments
 (0)