title: Unable to create availability group - tried all suggestions on the net
body: <p>After several trials I keep getting this error message when setting new availablity group, please help me out.</p>
  
  <blockquote>
    <p>Create failed for Availability Group 'SQLAVG'. (Microsoft.SqlServer.Management.HadrModel) For help, click:
    <a href="http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=14.0.17177.0+((SSMS_Rel).170803-0429)&amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;EvtID=Create+AvailabilityGroup&amp;LinkId=20476" rel="nofollow noreferrer">http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=14.0.17177.0+((SSMS_Rel).170803-0429)&amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;EvtID=Create+AvailabilityGroup&amp;LinkId=20476</a></p>
    
    <p>ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch.
    (Microsoft.SqlServer.ConnectionInfo)</p>
    
    <p>Cannot bring the Windows Server Failover Clustering (WSFC) resource
    (ID 'fd6eecaa-fa25-47d3-8e44-4a143a82411e') online (Error code 5018).
    The WSFC service may not be running or may not be accessible in its
    current state, or the WSFC resource may not be in a state that could
    accept the request. For information about this error code, see "System
    Error Codes" in the Windows Development documentation. Failed to
    designate the local availability replica of availability group
    'SQLAVG' as the primary replica. The operation encountered SQL Server
    error 41066 and has been terminated. Check the preceding error and the
    SQL Server error log for more details about the error and corrective
    actions. Failed to create availability group 'SQLAVG'. The operation
    encountered SQL Server error 41160 and has been rolled back. Check the
    SQL Server error log for more details. When the cause of the error has
    been resolved, retry CREATE AVAILABILITY GROUP command. (Microsoft SQL
    Server, Error: 41066) For help, click:
    <a href="http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&amp;ProdVer=13.00.4206&amp;EvtSrc=MSSQLServer&amp;EvtID=41066&amp;LinkId=20476" rel="nofollow noreferrer">http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&amp;ProdVer=13.00.4206&amp;EvtSrc=MSSQLServer&amp;EvtID=41066&amp;LinkId=20476</a></p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/8laYj.png" rel="nofollow noreferrer">sql log</a></p>