An Azure NoSQL database service for app development.
Hi ,
Thanks for reaching out to Microsoft Q&A.
Yes, the “Updating” state in Cosmos DB for MongoDB vCore can block or intermittently fail client connections. During this phase, the cluster is undergoing configuration changes (scale, patching, networking, or maintenance), and the service may temporarily reject or drop connections. So your observed “error connecting to server” across mongosh, Compass, and Node.js is consistent with this state.
Update duration is not fixed. In practice, it usually takes 5 to 30 mins for minor changes, but can extend to 45 to 60 mins or more if it involves scaling, storage reconfiguration, or backend maintenance. If it has been stuck beyond an hour, that is a red flag and likely indicates a backend issue.
To verify health and readiness, check the cluster state in the Azure portal until it shows “Running” (not updating). Then validate via connection string using mongosh, check metrics like CPU, connections, and server errors in Azure Monitor, and review Activity Log for recent operations (scale, patch, failover). You can also try a simple ping command (db.runCommand({ ping: 1 })) once status is Running. If it remains in Updating or connections still fail after it returns to Running, escalate to support because vCore clusters can get stuck in a partial update state.
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.