Azure Database for MariaDB server parameters in Terraform

Thanks to someone where I work for pointing out that the azurerm_mariadb_configuration resource type controls the server parameters for mariadb servers in Terraform for azure:

Server parameters on azure portal

In practice, this looks a bit like this:

resource "azurerm_mariadb_configuration" "mariadb-regional-config" {

resource_group_name = "resource_group_name_here"
server_name = "server_name_here"

name = "log_bin_trust_function_creators"
value = "ON"
}

Replace name and value where needed. No amount of googling helped me with this so I hope someone else finds this when they need it.

This article was updated on November 24, 2022