A scalable, fully managed NoSQL database for JSON documents with fast queries and automatic indexing
Hi Tengku Aiman,
it looks like you’re hitting this error because Azure thinks a previous networking change is still “in-progress” on your Mongo cluster, so any new update (like toggling public access) gets blocked with that conflict message. Here’s how you can troubleshoot and clear that state:
- Check the cluster’s provisioning state
- Go to your Cosmos DB account Overview and confirm it’s in “Succeeded” (not “Updating” or “Failed”).
- If it’s still “Updating,” give it another 5–10 minutes—sometimes network or private-endpoint operations can take a while to finish.
- Inspect the Activity log and Resource deployments
- In the portal, open the Activity log for your resource group and filter for your cluster name.
- Look for any failed or long-running “Microsoft.DocumentDB/” operations (for example, adding/removing a private endpoint or modifying firewall settings).
- In Deployments under your resource group, see if there’s a stuck deployment you can cancel or retry.
- Review Private Endpoint requests (if you’re using Private Link)
- In the Networking blade of your cluster, expand Private access and hit Refresh.
- If you see any private-endpoint connections in “Pending” or “Approving,” either approve or remove them so the service can finish that change.
- Retry the public-access toggle
- Once you confirm no operation is stuck, uncheck/re-check Allow public access… and hit Save again.
- If it still errors out after 10–15 minutes of waiting, you might need to open a support ticket to clear the lock.
If you’re not using Private Link but only firewall/IP rules, double-check that no other teammate or automation is modifying the same setting at the same time.
Hope this helps unblock you—let me know if the cluster stays locked after you’ve waited out the in-progress operation!
Follow-up questions if you hit more trouble:
• Do you see your Cosmos account’s provisioning state as “Updating” anywhere in the portal?
• Can you share any recent entries from the Activity log around when you hit the error?
• Are there any private-endpoint connections listed in “Pending” on the Networking pane?
• Which region and API (vCore vs. standard) is your cluster running?
Reference documentation
• Manage public access to Azure Cosmos DB (firewall & IP rules)
https://learn.microsoft.com/azure/cosmos-db/mongodb/how-to-public-access
• Data Explorer fails to connect (allow-access-from-portal setting)
• Private Link implementation for Cosmos DB MongoDB vCore
• Troubleshoot common issues in Azure DocumentDB (including provisioning/deployment locks)
https://learn.microsoft.com/azure/documentdb/troubleshoot-common-issues