An Azure NoSQL database service for app development.
Hi Pete,
The first thing I would check is whether this is an older/existing Azure DocumentDB vCore cluster.
The Data API is currently in preview and Microsoft documentation lists this limitation:
Data API works on newly created cluster.
So if the cluster was created before the Data API capability was available, the portal may accept the request, move the cluster to Updating, and then return to Ready with Data API still Off.
A few things to try/check:
- Confirm whether this is a newly created cluster or an older cluster.
Check the setting from ARM/CLI instead of only the portal:
az resource show \
--ids "/subscriptions/<subId>/resourceGroups/<rg>/providers/Microsoft.DocumentDB/mongoClusters/<clusterName>" \
--api-version 2024-10-01-preview \
--query "properties.dataApi"
Try enabling it through ARM/REST once, because it may return a clearer error than the portal.
Check Activity Log > Administrative events for the cluster update operation and capture the correlation ID, timestamp, and operation ID.
If the cluster is newly created and still reverts to Off, open a Microsoft support case, because that looks like a backend/service issue rather than a configuration issue.
Docs:
Data API for Azure DocumentDB: https://learn.microsoft.com/en-us/azure/documentdb/data-api
The key point is that the portal showing Accepted only means the update request was accepted by the control plane. It does not always mean the feature was successfully enabled. If it ends in Ready but Data API returns to Off, either the cluster is not eligible for the preview feature or Microsoft Support needs to check the backend operation.