Skip to content

Use geo-replicated storage#

Reliability · Recovery Services Vault · Rule · 2022_03 · Important

Recovery Services Vaults (RSV) without replication alerts configured may be at risk.

Description#

Recovery Services Vaults (RSV) can be used to replicate virtual machines between Azure Regions. Alerts can be configured to send notifications when replication issues occur.

The replication alerts can be configured for:

  • The resources owners (Based on RBAC permissions).
  • A list of email addresses.

Recommendation#

Configure replication alerts for Recovery Service Vaults that are performing replication tasks.

Examples#

Configure with Azure template#

By default a Recovery Services vaults does not have replication alerts setup. To define a replication alert via ARM templates either configure the sendToOwners or CustomerEmailAddress properties:

  • Set properties.sendToOwners to Send.
  • Set properties.customEmailAddresses to [ "example@email.com" ]

For example:

Azure Template snippet
{
  "type": "Microsoft.RecoveryServices/vaults/replicationAlertSettings",
  "apiVersion": "2021-08-01",
  "name": "replicationAlert",
  "properties": {
    "sendToOwners": "Send",
    "customEmailAddresses": [
      "example@email.com"
    ],
    "locale": "en-US"
  }
}

Configure with Bicep#

By default a Recovery Services vaults does not have replication alerts setup. To define a replication alert via a Bicep either configure the sendToOwners or CustomerEmailAddress properties:

  • Set properties.sendToOwners to Send.
  • Set properties.customEmailAddresses to [ "example@email.com" ]

For example:

Azure Bicep snippet
resource testRecoveryServices 'Microsoft.RecoveryServices/vaults/replicationAlertSettings@2021-08-01' = {
  name: 'replicationAlert'
  parent: resourceSymbolicName
  properties: {
    sendToOwners: 'Sender'
    customEmailAddresses: [
      'example@email.com'
    ]
    locale: 'en-US'
  }
}

Notes#

With the locale property you can define the locale for the email notification.

Comments