3
votes

I am establishing a site to site vpn from on prem to Azure, however, i cannot assign a static public ip to it. Per this link, https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-ip-addresses-overview-arm, it's designed that way. Can someone please explain why and what if the dynamic ip changes on azure end? Then the site-site vpn breaks. Unless Azure assumes the tunnel is always running, it will keep that dynamic IP.

VPN gateways An Azure VPN Gateway connects an Azure virtual network to other Azure virtual networks, or to an on-premises network. A public IP address is assigned to the VPN Gateway to enable it to communicate with the remote network. You can only assign a dynamic basic public IP address to a VPN gateway.

1
Even when you set the allocation method to static, you cannot specify the actual IP address assigned to the public IP address resource. Azure assigns the IP address from a pool of available IP addresses in the Azure location the resource is created in.Zahid Faroq

1 Answers

2
votes

The only time the VPN gateway IP address changes is when the gateway is deleted and re-created. The VPN gateway public IP address doesn't change across resizing, resetting, or other internal maintenance/upgrades of your VPN gateway.