Error adding a server to a Database Availability Group : Error 0x6f7


Adding the first or an additional server to a Database Aavailability Group Fail with error message. 

A Server Side database availability group Administrative Operation failed.
Error the Operation faield with message: Error 0x6f7 (The Stub Received Bad Data)


Cluster creating process checks for all the valid IP Addresses on Network Process and errors when invalid entry is found on the network card. 

A search for IP Addresses :  __in string IPAddresses[],      : IP addresses of the cluster.

If Network Cards are found with out DefaultGateway onthe node, following error is logged in DAG Task logs.

Connecting to server '' via WMI...
[Fetching the network adapters and ignoring the ones without default gateways. has an address: default gateway(s)=====<none> [invalid] ---Private network has an address: default gateway(s)=======<none> [invalid] ---Public network


One NIC in the cluster should be configured with a Default Gateway. Static routes should then be configured on the remaining NICs to facilate communication.

Please note: You should not have more than 1 default gateway on the server as per the following:

From the Planning for High Availability Technet documentation

More Information

Following Error is logged in DAG Tasks Log

The operation wasn't successful because an error was encountered. You may find more details in log file "C:\ExchangeSetupLogs\DagTasks\dagtask_XXXX-XX-XX_XX-XX-XX.XXX_add-databaseavailabiltygroupserver.log".
 WriteError! Exception = Microsoft.Exchange.Cluster.Replay.DagTaskOperationFailedException: A server-side database availability group administrative operation failed. Error: The operation failed with message: Error 0x6f7 (The stub received bad data) from cli_RpccCreateCluster ---> Microsoft.Exchange.Rpc.RpcException: Error 0x6f7 (The stub received bad data) from cli_RpccCreateCluster
   at ThrowRpcException(Int32 rpcStatus, String message)
   at Microsoft.Exchange.Rpc.RpcClientBase.ThrowRpcException(Int32 rpcStatus, String routineName)
   at Microsoft.Exchange.Rpc.Cluster.ReplayRpcClient.RpccCreateCluster(String clusterName, String firstNodeName, String[] ipAddresses, UInt32[] rgNetMasks, String& verboseLog)
   at Microsoft.Exchange.Cluster.Replay.ReplayRpcClientWrapper.<>c__DisplayClass1e.<RunCreateCluster>b__1c()
   at Microsoft.Exchange.Cluster.Replay.ReplayRpcClientWrapper.<>c__DisplayClass32.<RunRpcOperationDbName>b__30()
   at Microsoft.Exchange.Data.Storage.Cluster.HaRpcExceptionWrapperBase`2.ClientRetryableOperation(String serverName, RpcClientOperation rpcOperation)
--- End of inner exception stack trace ---