Skip to content

Commit eacc142

Browse files
Merge pull request #297609 from cherylmc/p2s-trouble
Entra ID
2 parents d06f51c + 9b50b00 commit eacc142

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

articles/vpn-gateway/vpn-gateway-troubleshoot-vpn-point-to-site-connection-problems.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn to troubleshoot and solve common point-to-site connection pro
55
author: chadmath
66
ms.service: azure-vpn-gateway
77
ms.topic: troubleshooting
8-
ms.date: 03/31/2025
8+
ms.date: 04/03/2025
99
ms.author: genli
1010
---
1111
# Troubleshooting: Azure point-to-site connection problems
@@ -349,6 +349,34 @@ The refresh token can show as expired/invalid due to several reasons. You can ch
349349

350350
In these scenarios, users need to reconnect. This triggers an interactive sign-in process in Microsoft Entra that issues a new refresh token and access token.
351351

352+
## <a name="reauthenticate"></a>Azure VPN Client with Entra ID authentication doesn't prompt the user to reauthenticate every time it disconnects
353+
354+
### Cause
355+
356+
An Azure VPN client connecting using point-to-site with Entra ID authentication doesn't require interactive reauthentication when disconnected.
357+
358+
The recommended sign-in frequency (SIF) or refresh token expiry time for the best experience with the Azure VPN Client should be set to greater than 2 hours, depending on what works best for the customer. This means the customer will remain connected for that duration without needing to reauthenticate interactively.
359+
360+
Setting the SIF to "every time" is not recommended, as it would require interactive reauthentication every hour, causing frequent disconnects.
361+
362+
With the sign-in cache enabled (default), the token is stored in permanent storage, allowing reconnection without interactive reauthentication even after disconnection, as long as the refresh token is valid. Meaning, the reconnection duration is within the SIF or refresh token expiry time.
363+
364+
### Solution
365+
366+
To ensure the Azure VPN client is prompted for reauthentication every time it gets disconnected, the customer can use the "sign-in cache disabled" option in the Azure VPN Client (version 4.0.0.0 and later). The customer can modify the user profile (XML) setting `cachesigninuser` to `false`.
367+
368+
```
369+
<azvpnprofile>
370+
<clientauth>
371+
<aad>
372+
<cachesigninuser>false</cachesigninuser>
373+
</aad>
374+
</clientauth>
375+
</azvpnprofile>
376+
```
377+
378+
When the sign-in cache is disabled, the token is stored in in-memory storage, valid for one connection (or session), regardless of its duration (from 30 minutes to 90 days). Once the connection is disconnected, the in-memory token is dropped. The duration of one connection depends on the refresh token expiry time or the SIF.
379+
352380
## VPN client error: Dialing VPN connection \<VPN Connection Name\>, Status = VPN Platform did not trigger connection
353381

354382
You might also see the following error in Event Viewer from RasClient: "The user \<User\> dialed a connection named \<VPN Connection Name\> which has failed. The error code returned on failure is 1460."

0 commit comments

Comments
 (0)