Azure Force Tunneling – not working after setup

Set-AzVirtualNetworkGatewayDefaultSite -GatewayDefaultSite $LocalGateway -VirtualNetworkGateway $VirtualGateway

Sets the force tunneling from Azure to on-premise. But just after sometime you lost connection at all. The solution can be just restart the virtual network gateway double, even if you see traffic selectors mismatch.

 

More info: https://learn.microsoft.com/en-us/azure/vpn-gateway/site-to-site-tunneling