'task hub name must be specified in host.json when using slots
On adding a staging slot in my function app, I see the error:
task hub name must be specified in host.json when using slots
I updated host.json as follows:
{
    "version": "2.0",
    "extensions": {
        "durableTask": {
        "hubName": "staging"
        }
    }
}
Should I specify 2 hub names - for production and staging slots?
How do I fix that?
Solution 1:[1]
Task hubs can also be configured using app settings
Check documentation here: https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-task-hubs?WT.mc_id=Portal-WebsitesExtension&tabs=csharp#task-hub-names
You'd configure the specific value in each slot's settings.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source | 
|---|---|
| Solution 1 | Nirmal Patel | 

