github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/azurerm/r/sql_server.html.markdown (about) 1 --- 2 layout: "azurerm" 3 page_title: "Azure Resource Manager: azurerm_sql_server" 4 sidebar_current: "docs-azurerm-resource-sql-server" 5 description: |- 6 Create a SQL Server. 7 --- 8 9 # azurerm\_sql\_server 10 11 Allows you to manage an Azure SQL Database Server 12 13 ## Example Usage 14 15 ``` 16 resource "azurerm_resource_group" "test" { 17 name = "acceptanceTestResourceGroup1" 18 location = "West US" 19 } 20 resource "azurerm_sql_server" "test" { 21 name = "MySqlServer" 22 resource_group_name = "${azurerm_resource_group.test.name}" 23 location = "West US" 24 version = "12.0" 25 administrator_login = "mradministrator" 26 administrator_login_password = "thisIsDog11" 27 28 tags { 29 environment = "production" 30 } 31 } 32 ``` 33 ## Argument Reference 34 35 The following arguments are supported: 36 37 * `name` - (Required) The name of the SQL Server. 38 39 * `resource_group_name` - (Required) The name of the resource group in which to 40 create the sql server. 41 42 * `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. 43 44 * `version` - (Required) The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). 45 46 * `administrator_login` - (Required) The administrator login name for the new server. 47 48 * `administrator_login_password` - (Required) The password for the new AdministratorLogin. Please following Azures [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) 49 50 * `tags` - (Optional) A mapping of tags to assign to the resource. 51 52 ## Attributes Reference 53 54 The following attributes are exported: 55 56 * `id` - The SQL Server ID. 57 * `fully_qualified_domain_name` - The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)