-
Notifications
You must be signed in to change notification settings - Fork 63
/
outputs.tf
30 lines (25 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
30
output "connection_string" {
description = "Connection string for the Azure SQL Database created."
sensitive = true
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;"
}
output "database_name" {
description = "Database name of the Azure SQL Database created."
value = azurerm_sql_database.db.name
}
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 "sql_server_location" {
description = "Location of the Azure SQL Database created."
value = azurerm_sql_server.server.location
}
output "sql_server_name" {
description = "Server name of the Azure SQL Database created."
value = azurerm_sql_server.server.name
}
output "sql_server_version" {
description = "Version the Azure SQL Database created."
value = azurerm_sql_server.server.version
}