azurerm_mariadb_firewall_rule

Manages a Firewall Rule for a MariaDB Server

Example Usage (Single IP Address)

resource "azurerm_mariadb_firewall_rule" "example" {
  name                = "test-rule"
  resource_group_name = "test-rg"
  server_name         = "test-server"
  start_ip_address    = "40.112.8.12"
  end_ip_address      = "40.112.8.12"
}

Example Usage (IP Range)

resource "azurerm_mariadb_firewall_rule" "example" {
  name                = "test-rule"
  resource_group_name = "test-rg"
  server_name         = "test-server"
  start_ip_address    = "40.112.0.0"
  end_ip_address      = "40.112.255.255"
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

MariaDB Firewall rules can be imported using the resource id, e.g.

terraform import azurerm_mariadb_firewall_rule.rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforMariaDB/servers/server1/firewallRules/rule1