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/azure-functions/errors-diagnostics/diagnostic-events/azfd0004.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ description: "AZFD0004: Host ID collision"
5
5
author: madelinegordon
6
6
ms.author: magordon
7
7
ms.topic: troubleshooting
8
-
ms.date: 01/19/2023
8
+
ms.date: 01/28/2023
9
9
---
10
10
11
11
# AZFD0004: Host ID collision
12
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.
13
+
This event occurs when you have multiple function apps or slots with the same generated host ID sharing the same storage account.
14
14
15
15
|| Value |
16
16
|-|-|
@@ -20,16 +20,18 @@ This event occurs when you have multiple Function Apps sharing a single storage
20
20
21
21
## Event description
22
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.
23
+
A host ID collision can occur when you've more than one function app or slot using the same host ID while sharing a storage account. This condition usually occurs due to truncation of similar function app names when the host ID value is generated. 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
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.
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 collision can result in incorrect behavior when the host can't differentiate between apps by host ID. When such a collision is detected, an error (hard failure) is logged and the host is shut down.
26
26
27
27
For more information, see [host ID considerations](../../../storage-considerations.md#host-id-considerations).
28
28
29
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).
30
+
31
+
- Connect each function app or slot in the collision to a different storage account by changing the [AzureWebJobsStorage](../../../functions-app-settings.md#azurewebjobsstorage) application setting or slot setting.
32
+
- Rename your function apps to a name that is fewer than 32 characters in length. When names have fewer than 32 characters, unique host IDs can be generated for each app, which removes the collision.
33
+
- Set 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).
0 commit comments