An Azure NoSQL database service for app development.
The Azure Cosmos DB for MongoDB vCore cluster was reported as unreachable from both a newly created Azure Function App and local client tools such as MongoDB Compass and Mongo Shell.
Findings
- The Cosmos DB cluster was healthy and no server-side issues were identified.
Connectivity issues were traced to client-side configuration and network access settings.
Root Cause
The Azure Function App was configured with an incorrect connection string that pointed to a different endpoint. Updating the application to use the connection string provided in the Azure portal restored connectivity. Local client connectivity was affected by IP-based firewall rules and changes in the client public IP address due to VPN usage.
Observations
Existing Function Apps continued to work because established connections were already in use. New connection attempts failed due to endpoint configuration issues and firewall allowlist mismatches.
Recommendations
- Always use the connection string generated in the Azure portal without modification.
- Ensure the correct client public IP address is included in the firewall allowlist.
- Verify outbound connectivity requirements, including access to port 10260.
- Consider using a Private Endpoint for more secure and predictable connectivity.
The Function App connectivity issue has been resolved. Investigation of local client connectivity behavior is continuing based on telemetry and network validation.