» Data Source: azurerm_mssql_server

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

» Example Usage

data "azurerm_mssql_server" "example" {
  name                = "existingMsSqlServer"
  resource_group_name = "existingResGroup"
}

output "id" {
  value = data.azurerm_mssql_server.example.id
}

» Arguments Reference

The following arguments are supported:

  • name - (Required) The name of this Microsoft SQL Server.

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

» Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


A identity block exports the following:

  • principal_id - The Principal ID for the Service Principal associated with the Identity of this SQL Server.

  • tenant_id - The Tenant ID for the Service Principal associated with the Identity of this SQL Server.

  • type - The identity type of the Microsoft SQL Server.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Microsoft SQL Server.