added sample for creating a NAT gateway with a virtual machine and corresponding network, subnet and public IP addresses

This commit is contained in:
asudbring
2024-01-19 23:58:31 -08:00
committed by lonegunmanb
parent 7e1008fa74
commit 482e26632b
6 changed files with 265 additions and 0 deletions

View File

@ -0,0 +1,19 @@
output "resource_group_name" {
description = "The name of the created resource group."
value = azurerm_resource_group.rg.name
}
output "virtual_network_name" {
description = "The name of the created virtual network."
value = azurerm_virtual_network.my_terraform_network.name
}
output "subnet_name_1" {
description = "The name of the created subnet 1."
value = azurerm_subnet.my_terraform_subnet_1.name
}
output "nat_gateway"{
description = "The name of the created NAT gateway."
value = azurerm_nat_gateway.my_nat_gateway.id
}