Azure Data Factory Self Hosted IR Cannot Connect To MongoDB Timeout With No Exception
I have an self-hosted (on Prem) Integrated Runtime. On this VM I have installed a MongoDB Compass client and I can connect to a target MongoDB cluster. The connection is okay and I can see the DB/collections.
I use the Azure Data Factory to create a Linked Service:
Create the Linked Service to use a MongoDB connection
Select the IR
Put the connection string:
mongodb://user:past@dbmymg.myhost.com:27017/oss_store/?readPreference=secondaryPreferred&directConnection=true
The result is:
Connection to MongoDB server is timeout.
A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "5", ConnectionMode : "Automatic", Type : "ReplicaSet", State : "Connected", Servers : [{ ServerId: "{ ClusterId : 5, EndPoint : "Unspecified/dbmymg.myhost:27017" }", EndPoint: "Unspecified/dbmymg.myhost:27017", State: "Connected", Type: "ReplicaSetOther", WireVersionRange: "[0, 6]", LastUpdateTimestamp: "2024-03-05T21:53:43.2768993Z" }] }.
There is no exception or error thrown. It just keeps coming back with the timeout and nothing else. Since the VM with a client running on it can connect with the SAME connection string.
If I change the authentication to be something that I know is wrong, the same thing happens - no execption, no error - just a timeout.
Assuming that the authentication is not occurring, how can I check this or force a authentication?