A scalable, fully managed NoSQL database for JSON documents with fast queries and automatic indexing
Welcome to Microsoft Q&A.
Thank you for sharing the error details and your Terraform configuration. The ResourceOperationFailure with UnprocessableEntity indicates that the request failed validation during provisioning.
Based on your configuration, can you try updating the below values:
- Unsupported server version
• Azure Cosmos DB for MongoDB clusters currently support versions such as 4.2, 4.4, 5.0, and 6.0 (preview).
- High availability setting
• highAvailability.targetMode = "Disabled" may not be supported for the M10 tier. Most production tiers require HA enabled.
Please update your configuration and re‑run terraform apply.
• If the error persists, check the Activity Log in Azure Portal for more detailed error codes tied to the tracking ID.
If provisioning continues to fail, please share:
• Whether you are using Cosmos DB for MongoDB vCore clusters or another deployment type.
• Any additional error details from the Activity Log.
Help make this community better for everyone: if this answer resolved your issue, please accept it or leave an upvote. If not, share more details in a comment so we can continue the discussion and find the right solution.