AlwaysOn Failover History - SQLNODE01

Created: 2026-07-19 10:05:00
Source: www.powershelldba.de | sqmSQLTool v1.9.103.0
Illustrative example, this lab has no Always On Availability Group configured (single-node, HADR disabled), so there is no failover history to read from the Windows Application Event Log. Values below are representative, not measured output.
TimeAGNew RoleTypeSourceEvent IDMessage
2026-07-15 02:00:11AG_PROD_01PRIMARYPlannedApplicationLog1480The local availability replica of availability group 'AG_PROD_01' is going online... manual failover initiated by CONTOSO\dba_team.
2026-07-15 02:00:14AG_PROD_01SECONDARYPlannedApplicationLog1480The local availability replica of availability group 'AG_PROD_01' is changing roles from primary to secondary...
2026-06-02 14:22:03AG_PROD_01PRIMARYForcedApplicationLog19407The lease between availability group 'AG_PROD_01' and the Windows Server Failover Cluster has expired...
2026-06-02 14:22:03AG_PROD_01PRIMARYAutomaticApplicationLog1480The local availability replica of availability group 'AG_PROD_01' is going online... automatic failover, WSFC-initiated.
2026-05-28 09:00:00AG_PROD_01PRIMARYRoleStartTime-Approximate current-role start time from SQL Server DMVs (fallback source when no matching event log entry exists).

Sources: Windows Application Event Log (EventID 1480 role changes, EventID 19407 lease expiry) and, with -IncludeClusterLog, the WSFC cluster operational log (EventID 1641). A 19407 lease-expiry event within 5 minutes of a 1480 role change is classified Forced rather than Automatic. Default lookback: 30 days.