I am creating a site to site VPN from Azure to company headquarters. The Connection comes up fine, but is dropped after exactly 1 hour. In the Palo Alto logs we can see a timeout value of 3600 secs, which is the default for Policy Based VPN Gateways. We are using a Route Based VPN Gateway (using BGP), which should have a timeout value of 27,000 secs according to https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpn-devices#ipsec If we reset the Virtual Network Gateway, the VPN comes up again for exactly an hour. Any ideas how to resolve this?
Try troubleshooting with Network Watcher and see if you can get any logs from your gateway .
If that doesn’t help triple check the configuration of both sides.