Use this data source to access information about an existing SQL elastic pool.
data "azurerm_mssql_elasticpool" "example" {
name = "mssqlelasticpoolname"
resource_group_name = "example-resources"
server_name = "example-sql-server"
}
output "elasticpool_id" {
value = data.azurerm_mssql_elasticpool.example.id
}
name
- The name of the elastic pool.
resource_group_name
- The name of the resource group which contains the elastic pool.
server_name
- The name of the SQL Server which contains the elastic pool.
id
- The ID of the elastic pool.
enclave_type
- The type of enclave being used by the elastic pool.
license_type
- The license type to apply for this elastic pool.
location
- Specifies the supported Azure location where the resource exists.
max_size_gb
- The max data size of the elastic pool in gigabytes.
max_size_bytes
- The max data size of the elastic pool in bytes.
per_db_min_capacity
- The minimum capacity all databases are guaranteed.
per_db_max_capacity
- The maximum capacity any one database can consume.
sku
- A sku
block as defined below.
tags
- A mapping of tags to assign to the resource.
zone_redundant
- Whether or not this elastic pool is zone redundant.
sku
exports the following:
name
- Specifies the SKU Name for this Elasticpool.
capacity
- The scale up/out capacity, representing server's compute units.
tier
- The tier of the particular SKU.
family
- The family
of hardware.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the SQL elastic pool.