Skip to content

Use an SLA for Web PubSub Services#

Reliability · Web PubSub Service · Rule · 2022_03 · Important

Use SKUs that include an SLA when configuring Web PubSub Services.

Description#

When choosing a SKU for a Web PubSub Service you should consider the SLA that is included in the SKU. Web PubSub Services offer a range of SKU offerings:

  • Free - Are designed for early non-production use and do not include any SLA.
  • Standard - Are designed for production use and include an SLA.

Recommendation#

Consider using a Standard SKU that includes an SLA.

Examples#

Configure with Azure template#

To deploy services that pass this rule:

  • Set the sku.name property to Standard_S1.

For example:

Azure Template snippet
{
  "type": "Microsoft.SignalRService/webPubSub",
  "apiVersion": "2023-02-01",
  "name": "[parameters('name')]",
  "location": "[parameters('location')]",
  "sku": {
    "name": "Standard_S1"
  },
  "identity": {
    "type": "SystemAssigned"
  },
  "properties": {
    "disableLocalAuth": true
  }
}

Configure with Bicep#

To deploy services that pass this rule:

  • Set the sku.name property to Standard_S1.

For example:

Azure Bicep snippet
resource service 'Microsoft.SignalRService/webPubSub@2023-02-01' = {
  name: name
  location: location
  sku: {
    name: 'Standard_S1'
  }
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    disableLocalAuth: true
  }
}

Comments