More Info:

Ensure that your Microsoft Azure Cosmos DB accounts are using the Automatic Failover feature in order to enable resource replication and fault tolerance at the account level. Automatic failover allows Azure Cosmos DB to failover to the Azure cloud region with the highest failover priority when the source region become unavailable, without any additional action from the application or the user. The Cosmos DB account must have two or more regions configured in order to enable the feature.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of “Enable Automatic Failover” in Azure, please follow the below steps:

  1. Log in to the Azure portal at https://portal.azure.com/
  2. Navigate to the Azure SQL database that you want to remediate.
  3. Click on “Failover Groups” in the left-hand menu.
  4. Click on “Add Failover Group.”
  5. In the “Add Failover Group” blade, provide the following details:
    • Name: A unique name for the failover group.
    • Subscription: The subscription associated with the failover group.
    • Resource group: The resource group associated with the failover group.
    • Primary region: The region where the primary database is located.
    • Secondary region: The region where the secondary database is located.
  6. Click on “Create” to create the failover group.
  7. Once the failover group is created, click on it to open the “Failover Group” blade.
  8. In the “Failover Group” blade, click on “Add Secondary.”
  9. In the “Add Secondary” blade, provide the following details:
    • Subscription: The subscription associated with the secondary database.
    • Server: The server where the secondary database is located.
    • Database: The name of the secondary database.
    • Auto-failover: Select the “On” option to enable automatic failover.
  10. Click on “Create” to add the secondary database to the failover group.

Once you have completed these steps, automatic failover will be enabled for the Azure SQL database.