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.



Connection source info is provided for IKEv2 and OpenVPN connections only.

To view and disconnect a session in the portal:

  1. Navigate to the VPN gateway.

  2. Under the Monitoring section, select Point-to-site Sessions.

    Portal example

  3. You can view all current sessions in the windowpane.

  4. Select "…" for the session you want to disconnect, then select Disconnect.

Currently, you can't use this feature in the portal for VpnGw4 and VpnGw5 SKUs. If you have one of these gateways, use the PowerShell method that's described in the next section.


To view and disconnect a session using PowerShell:

  1. Run the following PowerShell command to list active sessions:

    Get-AzVirtualNetworkGatewayVpnClientConnectionHealth -VirtualNetworkGatewayName <name of the gateway>  -ResourceGroupName <name of the resource group>
  2. Copy the VpnConnectionId of the session that you want to disconnect.

    PowerShell example

  3. 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>

Next steps

For more information about Point-to-site connections, see About Point-to-site VPN.