title: How to automate the failover in SQL Sever Agent Jobs with "Always On"
body: <p>I am running SQL Server Agent Jobs in SQL Server 2014, It has "Always On" enabled.</p>
  
  <p>Primary server: A
  Secondary Server: B</p>
  
  <p>We faced a situation, Server A had a network issue so "Always on" feature automatically switched the primary server to B.
  In this case, our jobs are running in Server A so it has been failed since the Server A goes to read only mode.</p>
  
  <p>Is there a way to automate the SQL Server Agent Jobs without any manual intervention using "Always on"</p>