admin管理员组文章数量:1244219
I have a function app in Azure. I have created a slot and deploy to the slot. The issue is I can't see my functions and get the error:
Microsoft.Azure.WebJobs.Extensions.DurableTask: Task Hub name must be specified in host.json when using slots.
Specified name must not equal the default HubName (myfuncapp).We were not able to load some functions in the list due to errors. Refresh the page to try again. See details
Encountered an error (InternalServerError) from host runtime.
I have created a unique name in the host.json
file and re-deployed. Still no difference.
How can I fix this ?
I have a function app in Azure. I have created a slot and deploy to the slot. The issue is I can't see my functions and get the error:
Microsoft.Azure.WebJobs.Extensions.DurableTask: Task Hub name must be specified in host.json when using slots.
Specified name must not equal the default HubName (myfuncapp).We were not able to load some functions in the list due to errors. Refresh the page to try again. See details
Encountered an error (InternalServerError) from host runtime.
I have created a unique name in the host.json
file and re-deployed. Still no difference.
How can I fix this ?
Share Improve this question edited Feb 16 at 6:49 marc_s 755k184 gold badges1.4k silver badges1.5k bronze badges asked Feb 16 at 5:01 Wendy Wendy 217 bronze badges 2 |1 Answer
Reset to default 0Microsoft.Azure.WebJobs.Extensions.DurableTask: Task Hub name must be specified in host.json when using slots. Specified name must not equal the default HubName (myfuncapp).
To resolve this error, you have to add Task Hub name
in host.json
as below.
host.json:
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
},
"enableLiveMetricsFilters": true
}
},
"extensions": {
"durableTask": {
"hubName": "MyTaskHub"
}
}
}
Able to deploy the function to Deployment slot of Azure function app:
Portal:
本文标签: How can I deploy a function app to a slot in AzureStack Overflow
版权声明:本文标题:How can I deploy a function app to a slot in Azure? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1740216797a2243016.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
"extensions": { "durableTask": { "hubName": "MyTaskHub" } }
inhost.json
and deploy the function. – Pravallika KV Commented Feb 17 at 4:46