FIX: SQLDiag fails with function 87 error in a SQL AlwaysOn availability group

Applies to: SQL Server 2012 EnterpriseSQL Server 2012 DeveloperSQL Server 2012 Standard

Symptoms


When the SQLDiag utility runs on a server in a Windows Cluster and at least one computer in this cluster group has a 15-character-long name, the SQLDiag utility would fail. Additionally, you receive the following error message in the SQLDiag output logs:
Error enumerating virtual servers.  Is your SQL Server instance clustered?
There are no instances of version 12 on this computer.
Function result: 87. Message: The parameter is incorrect.

Resolution


The issue was first fixed in the following cumulative update of SQL Server:

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.