modules/virtualnetwork/outputs.tf (12 lines of code) (raw):
output "resource_group_resource_ids" {
description = "The created resource group IDs, expressed as a map."
value = {
for k, v in azapi_resource.rg : k => v.id
}
}
output "virtual_network_resource_ids" {
description = "The created virtual network resource IDs, expressed as a map."
value = {
for k, v in module.virtual_networks : k => v.resource_id
}
}