I have several Windows VMs running on Azure that are configured to collect performance counters and event logs.
All of this is configured in the "Diagnostic settings..." on the VM resource inside Azure Portal. There's a Windows Azure Diagnostics agent that collects this data on the VM and stores it into a storage account (inside Table Storage).
All of this collected data (performance counters, metrics, logs, etc.) doesn't have any retention policy and there doesn't seem to be any way of setting it up. So it just accumulates in the storage account's table storage forever.
This is where my problem is -- there's now too much data in these tables (several terabytes in my case) and it's costing a lot of money just to keep it. And it's only going to keep increasing over time.
The relevant storage account tables are tables like:
WADMetrics*
(Windows Azure Diagnostics Metrics Table)WADPerformanceCountersTable
(Windows Azure Diagnostics Performance Counters Table)WASWindowsEventLogsTable
(Windows Azure Diagnostics Windows Event Logs Table)
Is there some way how to delete old data in these tables so it wouldn't break anything? Or even better, is there some way to configure retention policy or set it up so that it doesn't keep accumulating forever?