» Data Source: azurerm_mariadb_server

Use this data source to access information about an existing MariaDB Server.

» Example Usage

data "azurerm_mariadb_server" "db_server" {
  name                = "mariadb-server"
  resource_group_name = azurerm_mariadb_server.example.resource_group_name

output "mariadb_server_id" {
  value = data.azurerm_mariadb_server.example.id

» Argument Reference

The following arguments are supported:

  • name - The name of the MariaDB Server to retrieve information about.

  • resource_group_name - The name of the resource group where the MariaDB Server exists.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the MariaDB Server.

  • fqdn - The FQDN of the MariaDB Server.

  • location - The Azure location where the resource exists.

  • sku_name - The SKU Name for this MariaDB Server.

  • storage_profile - A storage_profile block as defined below.

  • administrator_login - The Administrator Login for the MariaDB Server.

  • version - The version of MariaDB being used.

  • ssl_enforcement - The SSL being enforced on connections.

» * tags - A mapping of tags assigned to the resource.

A storage_profile block exports the following:

» Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the MariaDB Server.