An Azure NoSQL database service for app development.
Hello **Alice da Lufia
**Unfortunately there isn’t a public CLI/REST command you can run to “cancel” or “force-complete” a stuck scale operation, and there’s no known Brazil South–specific bug here. In most cases where a vCore cluster hangs in Updating, it’s because an underlying replica has run out of disk due to a runaway WAL or broken replication slot, which blocks the platform job. Here’s what you can try to unblock yourself:
- Check per-node disk usage:
• In the Azure portal go to your Cosmos DB vCore cluster > Monitoring > Metrics > Storage used, then filter by individual replica.
• If any replica is at or near 100% capacity, the cluster controller will keep retrying the update and never finish. - Fix server-parameter misconfiguration:
• In the portal, open Settings > Server parameters for your cluster or specific replica.
• Set wal_keep_size to a modest value (for example, 1–5 GB).
• If available, configure replication_slot_timeout to something reasonable.
• Remove any unused replication slots. - Free up disk space by deleting old WAL logs Use the
az cosmosdbCLI extension to drop excess logs so the node can recover:
az cosmosdb mongodb vcore replica delete-log --name --resource-group --replica-name --log-type wal
Repeat for each overloaded replica until storage used drops back into healthy range.
- Monitor and wait After you’ve shaved off disk usage and corrected the parameters, the platform’s background update job should be able to finish. Give it a few minutes and then run: az resource show --ids /subscriptions//resourceGroups//providers/Microsoft.DocumentDB/mongoClusters/
If none of that helps, please share the cluster details in private message for further troubleshooting.