Skip to content

Commit fddbff2

Browse files
Clarifying host ID override when using slots
The propose change aims to make it more clear/explicit that when slot host id collision is happening the proper way to override the host ID is by setting a different host ID on all setting including and most import the production slot. If this is not done, when you do a swap operation the same will fail with a generic error saying "Swap failed. Details: Cannot swap site slots for site 'YOU_SITE_NAME' because the 'YOUR_SLOT_NAME' slot did not respond to http ping.". This behavior was tested on the following environment: -> Function on Linux Dedicated Plan -> Function runtime version 4.14.0.0 -> Language dotnet 6.0 (the code used was the hello world template from the Azure Portal. I created a timer trigger function and an HTTP trigger function )
1 parent a4f82ee commit fddbff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-functions/storage-considerations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ You can use the following strategies to avoid host ID collisions:
9393

9494
You can explicitly set a specific host ID for your function app in the application settings by using the `AzureFunctionsWebHost__hostid` setting. For more information, see [AzureFunctionsWebHost__hostid](functions-app-settings.md#azurefunctionswebhost__hostid).
9595

96-
When the collision occurs between slots, you may need to mark this setting as a slot setting. To learn how to create app settings, see [Work with application settings](functions-how-to-use-azure-function-app-settings.md#settings).
96+
When the collision occurs between slots, you need to mark this setting as a sticky slot setting, for all slots, including production slot. To learn how to create app settings, see [Work with application settings](functions-how-to-use-azure-function-app-settings.md#settings).
9797

9898
## Azure Arc-enabled clusters
9999

0 commit comments

Comments
 (0)