Skip to content

Replicate workspaces across regions#

Reliability · Log Analytics · Rule · Preview · 2024_06 · Important

Log Analytics workspaces should have workspace replication enabled to improve service availability.

Description#

In the event of a service disruption, access to monitoring data and collection of new data in a workspace may be temporarily impacted.

Log Analytics workspaces support replication of monitoring data to a workspace to a secondary region. When relication is enabled, new monitoring data is replicated to the secondary region in addition to the primary region. Failover to the workspace in the secondary region can be triggered manually.

Some limitations apply:

  • Failover occurs by updating DNS records to point to the secondary region. As a result, failover won't occur immediately and clients with open connections won't update until a new connection is established.
  • Failover is a customer initiated action. Failover to the secondard region does not occur automatically.
  • Data collection rules need to be updated to point to the system data collection endpoint for ingested data to be replicated.
  • See documentation references below for additional limitations and important information.

Recommendation#

Consider replicating Log Analytics workspaces across regions to improve access to monitoring data in the event of a regional service disruption.

Examples#

Configure with Azure template#

To deploy Log Analytics workspaces that pass this rule:

  • Set the properties.replication.enabled property to true.
  • Set the properties.replication.location property to a supported region in the same region group as the workspace primary region.

For example:

Azure Template snippet
{
  "type": "Microsoft.OperationalInsights/workspaces",
  "apiVersion": "2023-01-01-preview",
  "name": "[parameters('name')]",
  "location": "westeurope",
  "properties": {
    "replication": {
      "enabled": true,
      "location": "northeurope"
    },
    "publicNetworkAccessForIngestion": "Enabled",
    "publicNetworkAccessForQuery": "Enabled",
    "retentionInDays": 30,
    "sku": {
      "name": "PERGB2018"
    }
  }
}

Configure with Bicep#

To deploy Log Analytics workspaces that pass this rule:

  • Set the properties.replication.enabled property to true.
  • Set the properties.replication.location property to a supported region in the same region group as the workspace primary region.

For example:

Azure Bicep snippet
resource workspace 'Microsoft.OperationalInsights/workspaces@2023-01-01-preview' = {
  name: name
  location: 'westeurope'
  properties: {
    replication: {
      enabled: true
      location: 'northeurope'
    }
    publicNetworkAccessForIngestion: 'Enabled'
    publicNetworkAccessForQuery: 'Enabled'
    retentionInDays: 30
    sku: {
      name: 'PERGB2018'
    }
  }
}

Notes#

This feature for Log Analytics workspaces is currently in preview.

Replication of Log Analytics workspaces linked to a dedicated cluster is currently not supported.

Comments