Hi @Anders Kardell,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Apologies for causing the issue.
Can we get more detailed information about what exactly triggered this, if it was a script or similar?
To get more detailed information about what triggered the deletion, you can enable audit logging for control plane operations in Cosmos DB.
Here are the steps to set it up:
- Sign in to the Azure portal and navigate to your Azure Cosmos DB account.
- Open the Diagnostic settings pane, provide a Name for the logs to create.
- Select ControlPlaneRequests for log type and select the Send to Log Analytics option.
- Optionally, send the diagnostic logs to Azure Storage, Azure Event Hubs, Azure Monitor, or a third party.
By enabling these logs, you can track detailed operations, including who performed the action and what method was used. This will help you identify the cause of the deletion.
Please follow the steps mentioned in this document https://learn.microsoft.com/en-us/azure/cosmos-db/audit-control-plane-logs#enable-diagnostic-logs-for-control-plane-operations to audit logging for control plane operations in Cosmos DB.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further queries do let us know.