More Info:

Ensure that Microsoft Azure SQL database servers are using auto-failover groups in order to enable database replication and automatic failover. A Microsoft Azure SQL failover group is designed to automatically manage replication, connectivity, high availability and failover for a set of SQL databases.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Enable Auto-Failover Groups By Server” for Azure using Azure console, follow the below steps:

  1. Login to Azure portal (https://portal.azure.com/).
  2. Navigate to the SQL Server for which you want to enable auto-failover group.
  3. Click on the “Failover groups” option in the left-hand side menu.
  4. Click on the “Add” button to create a new failover group.
  5. In the “Basic” tab, provide the below details:
    • Name: Enter a name for the failover group.
    • Subscription: Select the subscription in which the failover group should be created.
    • Resource group: Select the resource group in which the failover group should be created.
    • Region: Select the primary region for the failover group.
    • Primary server: Select the primary SQL server for the failover group.
    • Secondary region: Select the secondary region for the failover group.
    • Secondary server: Select the secondary SQL server for the failover group.
  6. In the “Advanced” tab, select the checkbox “Enable auto-failover groups by server”.
  7. Click on the “Review + create” button.
  8. Review the details and click on the “Create” button to create the failover group.

Once the failover group is created with auto-failover groups enabled by server, the SQL server will be configured to automatically failover to the secondary server in case of any outage or failure in the primary server.