question

ShashankKapoor-7081 avatar image
0 Votes"
ShashankKapoor-7081 asked ShashankKapoor-7081 answered

Azure VPN client SessionTimeout post x minutes

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

suvasara-MSFT avatar image
0 Votes"
suvasara-MSFT answered

@ShashankKapoor-7081, 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.





5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ShashankKapoor-7081 avatar image
0 Votes"
ShashankKapoor-7081 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.