forked from Azure/terraform-azurerm-database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
29 lines (24 loc) · 1.24 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output "database_name" {
description = "Database name of the Azure SQL Database created."
value = "${azurerm_sql_database.db.name}"
}
output "sql_server_name" {
description = "Server name of the Azure SQL Database created."
value = "${azurerm_sql_server.server.name}"
}
output "sql_server_location" {
description = "Location of the Azure SQL Database created."
value = "${azurerm_sql_server.server.location}"
}
output "sql_server_version" {
description = "Version the Azure SQL Database created."
value = "${azurerm_sql_server.server.version}"
}
output "sql_server_fqdn" {
description = "Fully Qualified Domain Name (FQDN) of the Azure SQL Database created."
value = "${azurerm_sql_server.server.fully_qualified_domain_name}"
}
output "connection_string" {
description = "Connection string for the Azure SQL Database created."
value = "Server=tcp:${azurerm_sql_server.server.fully_qualified_domain_name},1433;Initial Catalog=${azurerm_sql_database.db.name};Persist Security Info=False;User ID=${azurerm_sql_server.server.administrator_login};Password=${azurerm_sql_server.server.administrator_login_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
}