SignalR

Overview

The SignalR builder creates SignalR services.

  • SignalR Service (Microsoft.SignalRService/signalR)

Builder Keywords

KeywordPurpose
nameSets the name of the SignalR service.
skuSets the sku of the SignalR service.
capacitySets the capacity of the SignalR service. (optional)
service_modeSets the service mode of the SignalR service. (optional)
allowed_originsSets the allowed origins of the SignalR service. (optional)

Configuration Members

MemberPurpose
KeyReturns an ARM expression to retrieve the primary Key of the service. Useful for e.g. supplying the connection string to another resource e.g. KeyVault or an app setting in the App Service.
ConnectionStringReturns an ARM expression to retrieve the primary Connection String of the service. Useful for e.g. supplying the connection string to another resource e.g. KeyVault or an app setting in the App Service.

Example

open Farmer
open Farmer.Builders

let mySignalR = signalR {
    name "mysignalr"
    sku SignalR.Standard
    capacity 10
    service_mode ServiceMode.Default
    allowed_origins [ "https://github.com" ]
}