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.

Note

The session status is updated every 5 minutes. It is not updated immediately.

Portal

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.

PowerShell

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.