To close the loop/updating the findings from offline (support), to benefit the community:
The issue was identified as not specific to deployment slots. When we have multiple servers connected to same ASRS, this is an expected behavior because the ASRS can connect to any of the application server.
We can overcome this behavior by specifying ApplicationName in the server SDK for different server groups.
Suggested workaround to specify ApplicationName in the server SDK for different server groups.
public void ConfigureServices(IServiceCollection services)
{
services.AddSignalR()
.AddAzureSignalR(options =>
{
options.ApplicationName = "app1";
}
);
}
By performing the above change, will help server generate URLs like ......?hub=app1_<your_hub
> during negotiation which can help ASRS instances differentiate connections coming from different server groups.
Reference:
https://github.com/Azure/azure-signalr/issues/825
https://github.com/Azure/azure-signalr/issues/348