Search code examples
mongodbazureazure-virtual-networkazure-databricksmongodb-atlas

azure databricks whitelisting on MondoDB atlas


I whitelisted an Azure Databricks IP address both Control Plan NAT and webapp IP CIDR blocks as described in here:

https://docs.azuredatabricks.net/administration-guide/cloud-configurations/azure/vnet-inject.html#vnet-inject

on a MongoDB Atlas but I still receive the error below:

com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches com.mongodb.client.internal.MongoClientDelegate$1@1b5a8903.

Is there a way to fix outbound IP address in the cluster instances?


Solution

  • As far as I know, recently azure does not support service endpoint for MongoDB Atlas like Azure Databricks with a Cosmos DB endpoint. If you are using public cloud, you could add the Azure IP Ranges with filtering your Azure Databricks region in the MongoDB Atlas Whitelist Entries. Otherwise, you could allow access from anywhere in MongoDB Atlas. Your link is used for whitelisting the traffic on your subnets.

    For more details, another similar thread for your references.