Description
Azure Database for MariaDB retired on September 19, 2025. In its legacy configuration, enabling public network access let clients allowed by the firewall reach the server. Authentication and database permissions controlled data access.
Potential impact
A broad public rule lets more clients attempt to sign in. A compromised account with excessive permissions can expose or change data.
Remediation
Migrate to a supported service and review its firewall, TLS and account permissions. For private-only connectivity, configure the destination’s private path and DNS, test application connections, then disable public access. Limiting a public rule to an administrator’s IP still leaves a public path.
Examples
The excerpts show the retired resource and omit SKU, version and TLS settings. Supply the password securely and protect the Terraform state.
Before
resource "azurerm_mariadb_server" "app_db" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "mariadbadmin"
administrator_login_password = var.administrator_password
public_network_access_enabled = true
}
true enabled the public path for sources admitted by the firewall.
After
resource "azurerm_mariadb_server" "app_db" {
name = "example-mariadb-server"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
administrator_login = "mariadbadmin"
administrator_login_password = var.administrator_password
public_network_access_enabled = false
}
false disabled public access. Private endpoints and DNS required separate configuration.