github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/website/source/docs/providers/azure/r/sql_database_service.html.markdown (about) 1 --- 2 layout: "azure" 3 page_title: "Azure: azure_sql_database_service" 4 sidebar_current: "docs-azure-sql-database-service" 5 description: |- 6 Creates a new SQL Database Service on an Azure Database Server. 7 --- 8 9 # azure\_sql\_database\_service 10 11 Creates a new SQL database service on an Azure database server. 12 13 ## Example Usage 14 15 ``` 16 resource "azure_sql_database_service" "sql-server" { 17 name = "terraform-testing-db-renamed" 18 database_server_name = "flibberflabber" 19 edition = "Standard" 20 collation = "SQL_Latin1_General_CP1_CI_AS" 21 max_size_bytes = "5368709120" 22 service_level_id = "f1173c43-91bd-4aaa-973c-54e79e15235b" 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `name` - (Required) The name of the database service. 31 32 * `database_server_name` - (Required) The name of the database server this service 33 should run on. Changes here force the creation of a new resource. 34 35 * `edition` - (Optional) The edition of the database service. For more information 36 on each variant, please view [this](https://msdn.microsoft.com/library/azure/dn741340.aspx) link. 37 38 * `collation` - (Optional) The collation to be used within the database service. 39 Defaults to the standard Latin charset. 40 41 * `max_size_bytes` - (Optional) The maximum size in bytes the database service 42 should be allowed to expand to. Range depends on the database `edition` 43 selected above. 44 45 * `service_level_id` - (Optional) The ID corresponding to the service level per 46 edition. Please refer to [this](https://msdn.microsoft.com/en-us/library/azure/dn505701.aspx) link for more details. 47 48 ## Attributes Reference 49 50 The following attributes are exported: 51 52 * `id` - The database service ID. Coincides with the given `name`.