AZFD0004: Host ID collision
This event occurs when you have the same host ID assigned to multiple function apps or slots, which also share the same storage account.
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.
You can also have the same collision when you explicitly set the same host ID value on multiple function apps that use the same storage account.
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.
For more information, see host ID considerations.
Options for addressing collisions:
- Connect each function app or slot in the collision to a different storage account by changing the AzureWebJobsStorage application setting or slot setting.
- 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.
- Set explicit host ID values for your function apps or slots so they no longer conflict. For more information, see host ID considerations.
When to suppress the event
This event shouldn't be suppressed.