How To Check The History Of Availability Group State Change? This script is quite helpful when you want to know…