This availability replica cannot be joined to an availability group on server instance '{0}'. Ensure that this server instance ...

This availability replica cannot be joined to an availability group on server instance '{0}'. Ensure that this server instance is on a node in a Windows Server Failover Clustering (WSFC) failover cluster. Then, enable the HADR service for the server instance by using SQL Server Configuration Manager.