diff --git a/README.md b/README.md index 7dae9bd..3b3696d 100644 --- a/README.md +++ b/README.md @@ -427,6 +427,10 @@ The following outputs are exported: Description: The final map of private link private DNS zones to link to virtual networks including the region name replacements as required. +### [private\_dns\_zone\_resource\_ids](#output\_private\_dns\_zone\_resource\_ids) + +Description: The map of private DNS zones to resource ids. + ### [resource\_group\_resource\_id](#output\_resource\_group\_resource\_id) Description: The resource ID of the resource group that the Private DNS Zones are deployed into. diff --git a/outputs.tf b/outputs.tf index 9c9c8f6..ba7306b 100644 --- a/outputs.tf +++ b/outputs.tf @@ -3,6 +3,11 @@ output "combined_private_link_private_dns_zones_replaced_with_vnets_to_link" { value = local.combined_private_link_private_dns_zones_replaced_with_vnets_to_link } +output "private_dns_zone_resource_ids" { + description = "The map of private DNS zones to resource ids." + value = { for key, mod in module.avm_res_network_privatednszone : key => mod.resource_id } +} + output "resource_group_resource_id" { description = "The resource ID of the resource group that the Private DNS Zones are deployed into." value = local.resource_group_resource_id