» Data Source: azurerm_sql_server

Use this data source to access information about an existing SQL Azure Database Server.

» Example Usage

data "azurerm_sql_server" "example" {
  name                = "examplesqlservername"
  resource_group_name = "example-resources"

output "sql_server_id" {
  value = "${data.azurerm_sql_server.test.id}"

» Argument Reference

  • name - (Required) The name of the SQL Server.

  • resource_group_name - (Required) Specifies the name of the Resource Group where the SQL Server exists.

» Attributes Reference

  • location - The location of the Resource Group in which the SQL Server exists.

  • fqdn - The fully qualified domain name of the SQL Server.

  • version - The version of the SQL Server.

  • administrator_login - The administrator username of the SQL Server.

  • tags - A mapping of tags assigned to the resource.