InternalServerError when provisioning CosmosDB Mongo Database with Autoscaling through REST API

Nikolas Rank 1 Reputation point


I want to provision a CosmosDB Account that contains a database with autoscaling throughput by using this API:

I am using ansible for creation of the account by using the azure.azcollection.azure_rm_cosmosdbaccount module.

The body of my REST request looks like this:

"body": {
"location": "westeurope",
"properties": {
"options": {
"autoscaleSettings": {
"maxThroughput": 4000
"resource": {
"id": "database"

Operation name  
Write MongoDB database  
Time stamp  
Tue Mar 08 2022 14:13:52 GMT+0100 (Central European Standard Time)  
Event initiated by  
Error code  
The resource operation completed with terminal provisioning state 'Failed'.  

Previously I did get meaningful error messages, now I am kind of at a loss.

Thanks for your help

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,469 questions
{count} votes