Prepare regional disaster recovery for MariaDB workloads

Plan geo-redundant backups and a supported migration destination for recovery requirements.

Description

Azure Database for MariaDB retired on September 19, 2025. When migrating existing data, decide whether you need recovery from a regional outage.

Potential impact

A single-region backup can leave you without a copy outside an affected region. Restoring a geo-redundant backup also takes time.

Remediation

Check application compatibility and migrate the data to a supported service such as MySQL Flexible Server. For regional recovery, choose a supported region and set geo_redundant_backup_enabled = true at creation. Changing it later requires server replacement in AzureRM 5.6.0.

Examples

The first configuration is historical. The second defines a migration target with seven-day retention and public access disabled. Configure authentication, capacity and private connectivity, then transfer the data.

Before

hcl
resource "azurerm_mariadb_server" "example" {
  name                = "example-mariadb-server"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  backup_retention_days        = 7
  geo_redundant_backup_enabled = false
  public_network_access_enabled = false
  ssl_enforcement_enabled      = true
}

After

hcl
resource "azurerm_mysql_flexible_server" "example" {
  name                = "example-mariadb-server"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  backup_retention_days        = 7
  geo_redundant_backup_enabled = true
  public_network_access       = "Disabled"
}

Test a restore to measure the recovery time and the latest point you can recover.

References