Use this data source to access information about an existing MariaDB Server.
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
}
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.
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:
storage_mb
- The max storage allowed for a server.
backup_retention_days
- Backup retention days for the server.
geo_redundant_backup
- Whether Geo-redundant is enabled or not for server backup.
auto_grow
- Whether autogrow is enabled or disabled for the storage.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the MariaDB Server.