Azure DocumentDb主机连接问题

时间:2017-04-27 15:53:07

标签: azure azure-cosmosdb

我无法使用MongoDb客户端连接到Azure上的DocumentDb主机,我按照documentation的链接

enter image description here

然后错误消息fron mongochef client:

Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}.
Client view of cluster state is
{type=UNKNOWN, servers=[
   {address=tatico-nosql.documents.azure.com:10250, type=UNKNOWN, state=CONNECTING, exception=
      {com.mongodb.MongoSocketOpenException: Exception opening socket},
       caused by {java.net.SocketTimeoutException: connect timed out}
    }
 ]

1 个答案:

答案 0 :(得分:0)

您是否启用了IP访问控制?如果是,请同时将您的客户端IP地址添加到允许的IP地址范围列表中,如下所示。

enter image description here