gpt4 book ai didi

azure - 如何将VS中local.settings.json中存储的SignalRConnectionString上传到azure门户上的Azure函数

转载 作者:行者123 更新时间:2023-12-01 09:29:14 26 4
gpt4 key购买 nike

我能够部署 Azure Functions 以在 Azure 门户上运行 SignalR 消息传递,但包含运行 SignalR 消息传递所需的 SignalRConnectionStringlocal.settings.json 文件没有上传。如何在 Azure 门户上添加此字符串?

Azure 门户上的错误消息:

Microsoft.Azure.WebJobs.Extensions.SignalRService: The SignalR Service connection string must be set either via an 'AzureSignalRConnectionString' app setting, via an 'AzureSignalRConnectionString' environment variable, or directly in code via SignalROptions.ConnectionString or SignalRAttribute.ConnectionStringSetting.

最佳答案

the local.settings.json file which contained the SignalRConnectionString required to run SignalR Messaging was not uploaded. How can I add this string on the Azure portal?

请检查您是否添加了全部 Function app settings发布项目时在 Azure 中的函数应用程序的 local.settings.json 中定义的。

enter image description here

如果您没有为“远程”字段添加 AzureSignalRConnectionString,您可以选择并导航到 Azure 门户上的函数应用,然后可以更新 AzureSignalRConnectionString 的值或添加在平台功能边栏选项卡下的配置中为您的函数应用设置新的应用程序设置,如下所示。

enter image description here

应用程序设置

enter image description here

测试结果

enter image description here

关于azure - 如何将VS中local.settings.json中存储的SignalRConnectionString上传到azure门户上的Azure函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56756828/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com