如何将存储在 VS 中 local.settings.json 中的 SignalRConnectionString 上传到 Azure 门户上的 Azure 函数
How to upload SignalRConnectionString stored in local.settings.json in VS to Azure functions on azure portal
我能够将 Azure Functions 部署到 运行 SignalR Messaging 到 Azure 门户,但是 local.settings.json
文件包含 SignalRConnectionString
运行 SignalR Messaging 所需的文件没有上传。如何在 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?
请检查您在发布项目时是否将local.settings.json中定义的所有Function app settings添加到Azure中的函数应用
如果您没有为 Remote 字段添加 AzureSignalRConnectionString,您可以 select 并导航到 Azure 门户上的函数应用程序,然后您可以更新 AzureSignalRConnectionString 或在 Configuration 下的 Platform features blade 中为您的函数应用程序添加新的应用程序设置,如下所示。
应用程序设置
测试结果
我能够将 Azure Functions 部署到 运行 SignalR Messaging 到 Azure 门户,但是 local.settings.json
文件包含 SignalRConnectionString
运行 SignalR Messaging 所需的文件没有上传。如何在 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?
请检查您在发布项目时是否将local.settings.json中定义的所有Function app settings添加到Azure中的函数应用
如果您没有为 Remote 字段添加 AzureSignalRConnectionString,您可以 select 并导航到 Azure 门户上的函数应用程序,然后您可以更新 AzureSignalRConnectionString 或在 Configuration 下的 Platform features blade 中为您的函数应用程序添加新的应用程序设置,如下所示。
应用程序设置
测试结果