We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fce96 commit 2e29c73Copy full SHA for 2e29c73
output.tf
@@ -77,7 +77,7 @@ output "secondary_sql_server_private_endpoint" {
77
78
output "sql_server_private_dns_zone_domain" {
79
description = "DNS zone name of SQL server Private endpoints dns name records"
80
- value = element(concat(azurerm_private_dns_zone.dnszone1.*.name, [""]), 0)
+ value = var.existing_private_dns_zone == null && var.enable_private_endpoint ? element(concat(azurerm_private_dns_zone.dnszone1.*.name, [""]), 0) : var.existing_private_dns_zone
81
}
82
83
output "primary_sql_server_private_endpoint_ip" {
0 commit comments