Automating IPSec Connections: Retrieving vWAN Hub Public IP with Terraform

Itay Alayoff 0 Reputation points
2024-12-30T08:33:46.98+00:00

I want to implement a Terraform module to create an IPSec connection between a vWAN Hub and my on-premises site. To automate this process, I need to retrieve the public IP address of the vWAN Hub.

Is it possible to retrieve the hub's public IP using Terraform?

For context, I have already created the following resources via Terraform:

azurerm_vpn_site
azurerm_vpn_gateway
azurerm_vpn_gateway_connection
Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
235 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,596 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.