Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload SignalRConnectionString stored in local.settings.json in VS to Azure functions on azure portal

I was able to deploy Azure Functions to run SignalR Messaging to the Azure portal, but 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?

Error message on Azure portal :

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.

like image 399
JamCode Avatar asked Dec 29 '25 14:12

JamCode


1 Answers

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?

Please check whether you add all Function app settings that you defined in the local.settings.json to function app in Azure when you publish the project.

enter image description here

If you did not add AzureSignalRConnectionString for the Remote field, you can select and navigate to your function app on Azure portal, then you can update value of AzureSignalRConnectionString or add new application setting for your function app in Configuration under Platform features blade, like below.

enter image description here

Application settings

enter image description here

Test Result

enter image description here

like image 167
Fei Han Avatar answered Jan 01 '26 05:01

Fei Han



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!