Skip to content

Commit 2e29c73

Browse files
committed
updating outputs
1 parent 18fce96 commit 2e29c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

output.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ output "secondary_sql_server_private_endpoint" {
7777

7878
output "sql_server_private_dns_zone_domain" {
7979
description = "DNS zone name of SQL server Private endpoints dns name records"
80-
value = element(concat(azurerm_private_dns_zone.dnszone1.*.name, [""]), 0)
80+
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
8181
}
8282

8383
output "primary_sql_server_private_endpoint_ip" {

0 commit comments

Comments
 (0)