When trying to create an availability group listener, SQL Server may fail and report the following error:
Create failed for Availability Group Listener 'SQLCDB01Temp'. (Microsoft.SqlServer.Smo)
The WSFC cluster could not bring the Network Name resource with DNS name 'SQLCDB01Temp' online. The DNS name may have been taken or have a conflict with existing name services, or the WSFC cluster service may not be running or may be inaccessible. Use a different DNS name to resolve name conflicts, or check the WSFC cluster log for more information. The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the WSFC duster and validate the network name and IP address with the network administrator. (Microsoft SQL Server, Error: 19471)
When a client access point (CAP) is created directly from Windows Cluster Administrator, the CAP is successfully created, but the network name resource fails to come online, even though the IP Address resource is online.
Right-clicking the client access point resource and choosing Properties, under the General tab, the DNS Status reports a message 'DNS handle is invalid.'
This issue occurs because the rc4-hmac keys on the Domain Controller and the cluster side for the virtual computer object (VCO) are different. The ticket decryption fails when the ticket is encrypted by using the rc4-hmac encryption. Additionally, the cluster becomes unavailable for any computer that uses the rc4-hmac keys.
The issue is described as Issue 2 in the following Knowledge Base article:
Can't access a resource that is hosted on a Windows Server 2012-based failover cluster
- Apply the hotfix described in article 2838043.
- Workaround the problem using the following steps:
- Launch Failover Cluster Manager.
- In the Roles pane, right-click the availability group resource and choose Add Resource and then Client Access Point.
- Enter a DNS Name and click in the affirmative through the rest of the wizard to create the CAP. The CAP is created, the IP Address resource comes online, but the network name resource fails to come online.
- Right-click the Network Name resource, click the General tab and check the DNS Status, it will read "DNS handle is invalid."
- With the network name resource offline, right-click on the network name resource and navigate to More Actions, choose Repair.
- Repeat repair until DNS Status reports OK under the General tab of the network name properties.
- Bring the network name resource online.
- Delete this CAP and try creating the AG Listener from the SQL Server Management Studio.
Windows cluster is actually failing to create or bring the availability group listener clustered resource online in Windows Cluster. Therefore, this error is a generic error message and does not give us enough information about the cause of the error. If availability group listener creation fails, but the symptoms above do not match, there could be other causes of this error and the generic troubleshooting is outlined in: