hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.59k stars 4.63k forks source link

azurerm_sql_elasticpool: support vcore model #1745

Closed ricohomewood closed 5 years ago

ricohomewood commented 6 years ago

Community Note

Description

With SQL Server Elastic Pools, you can deploy with either DTU or vCore model, this is an enhancement request to support the vCore model of setting up SQL Elastic Pools.

Service tiers are differentiated by a range of performance levels, high availability design, fault isolation, types of storage and IO range. With the vCore model, single databases and elastic pools are eligible for up to 30 percent savings with the Azure Hybrid Use Benefit for SQL Server.

When creating new SQL Elastic Pools, you can specify DTU or vCore

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurerm_sql_elasticpool" "test" {
    name = "test"
    resource_group_name = "${azurerm_resource_group.test.name}"
    location = "${azurerm_resource_group.test.location}"
    server_name = "${azurerm_sql_server.test.name}"
    sku_name = "GP_Gen5"
    sku_tier = "GeneralPurpose"
    sku_capacity = 4
    db_perf_min = 0
    db_perf_max = 4
    pool_size = 161061273600   =(150GB) Would be nice to specify in friendly format
    zone_redundant = false
    license_type = "LicenseIncluded"
}

References

https://docs.microsoft.com/en-us/rest/api/sql/elasticpools/createorupdate

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers-vcore

ghost commented 5 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!