Files
2026-02-09 21:51:46 -08:00

28 lines
670 B
HCL

# Azure Networking Module Outputs
output "vnet_id" {
description = "Virtual network ID"
value = azurerm_virtual_network.main.id
}
output "vnet_name" {
description = "Virtual network name"
value = azurerm_virtual_network.main.name
}
output "subnet_ids" {
description = "Map of subnet names to IDs"
value = { for k, v in azurerm_subnet.subnets : k => v.id }
}
output "subnet_names" {
description = "Map of subnet names"
value = { for k, v in azurerm_subnet.subnets : k => v.name }
}
output "nsg_ids" {
description = "Map of NSG names to IDs"
value = { for k, v in azurerm_network_security_group.nsgs : k => v.id }
}