Azure VPN client SessionTimeout post x minutes

Shashank Kapoor 41 Reputation points
2021-09-17T16:40:56.173+00:00

I have a route based VPN gateway in Azure. I'm looking to configure a timeout on the client side (Azure VPN client) so its not connected forever. Is there a way to do that?

  1. I have not been successful in finding a setting in the XML config downloaded from VPN gateway.
  2. On the Gateway settings in Azure poral there is no such option
  3. Locally on the client in Windows there is no such option
  4. I've tried to edit "IdleDisconnectSeconds" to 60 at %AppData%\Roaming\Microsoft\Network\Connections\Pbk in the rasphone.pbk but that had no effect either.
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,389 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. suvasara-MSFT 10,006 Reputation points
    2021-09-21T04:13:50.453+00:00

    @Shashank Kapoor , Unfortunately there is no option to set idle timeout in Route based VPN gateway. Also, automatic reconnection of the flow cannot be achieved here after an idle timeout likewise in policy-based VPN. For now, the best bet is to work with your client machine to achieve this feature. To help you further, I would be sharing a third-party document where client configuration is mentioned. Please be advised that you can try the instructions first on a trial node which is in non-prod env to avoid any kind of downtimes that may occur.

    Disclaimer: This response contains a reference to a third-party document. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments

  2. Shashank Kapoor 41 Reputation points
    2021-09-22T15:52:15.033+00:00

    i'm looking for a disconnect on the Azure VPN client side. I though the cmdlet Set-Vpnconnection an the idle timeout option in it would do something but that has no effect.

    0 comments No comments