Point-to-site VPN session management
Azure virtual network gateways provide an easy way to view and disconnect current Point-to-site VPN sessions. This article helps you view and disconnect current sessions.
The session status is updated every 5 minutes. It is not updated immediately.
To view and disconnect a session in the portal:
Navigate to the VPN gateway.
Under the Monitoring section, select Point-to-site Sessions.
You can view all current sessions in the windowpane.
Select "…" for the session you want to disconnect, then select Disconnect.
To view and disconnect a session using PowerShell:
Run the following PowerShell command to list active sessions:
Get-AzVirtualNetworkGatewayVpnClientConnectionHealth -VirtualNetworkGatewayName <name of the gateway> -ResourceGroupName <name of the resource group>
Copy the VpnConnectionId of the session that you want to disconnect.
To disconnect the session, run the following command:
Disconnect-AzVirtualNetworkGatewayVpnConnection -VirtualNetworkGatewayName <name of the gateway> -ResourceGroupName <name of the resource group> -VpnConnectionId <VpnConnectionId of the session>
For more information about Point-to-site connections, see About Point-to-site VPN.