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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.date: 01/28/2023
10
10
11
11
# AZFD0004: Host ID collision
12
12
13
-
This event occurs when you have the same host ID assigned to multiple function apps or slots, which also share the storage account.
13
+
This event occurs when you have the same host ID assigned to multiple function apps or slots, which also share the samed storage account.
14
14
15
15
|| Value |
16
16
|-|-|
@@ -20,18 +20,18 @@ This event occurs when you have the same host ID assigned to multiple function a
20
20
21
21
## Event description
22
22
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.
23
+
A host ID collision can occur when more than one function app or slot uses 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
25
You can also have the same collision when you explicitly set the same host ID value on multiple function apps using the same storage account.
26
26
27
-
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.
27
+
When multiple apps have the same host ID, the resulting collision can cause incorrect behaviors. For example, some triggers, like timer and Blob Storage, store tracking data by host ID. A host ID 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. Before version 4.x of the Functions runtime, a warning was logged, but the host wasn't shut down.
28
28
29
29
For more information, see [host ID considerations](../../storage-considerations.md#host-id-considerations).
30
30
31
31
## Options for addressing collisions:
32
32
33
33
- 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.
34
-
- Rename your function apps to a name that has fewer than 32 characters. When names have fewer than 32 characters, unique host IDs can be generated for each app, which removes the collision.
34
+
- Rename your function apps to a name that has fewer than 32 characters. When app names have fewer than 32 characters, unique host IDs can be generated for each app, which removes the collision.
35
35
- 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