I setup an Azure functions and Mongo DB cluster to POC moving from on premise to Mongo DB Atlas platform.
I am able to access the mongo DB Atlas from developer box but not when I deploy to production Azure functions.
I saw several entry around the same error I got:
“A timeout occurred after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 …”
I am using the latest Mongo DB Driver 2.12.0 and here is the format of connection string:
mongodb+srv://username:password@devatlassearch.jsqnn.mongodb.net/Integra?connect=replicaSet&retryWrites=true&w=majority&connectTimeoutMS=360000&socketTimeoutMs=360000
None of this seems to fix the issue connecting from Azure serverless functions. Any idea how to properly connect to Mongo Db Atlas from Azure serverless functions?