Hello Kiet Tran FPH 20241010
I understand you're looking to clarify how deleting Azure Diagnostic Tables works, along with setting up a retention policy for your diagnostics data.
Your understanding is correct removing these tables won't impact your VM or other Azure services.
The Azure Diagnostics extension will create new tables as it gathers new data. However, deleting the tables means losing historical performance and diagnostic information, which could be important for troubleshooting if you need past records.
If you need to keep historical data for audits or analysis, consider exporting it to Azure Blob Storage, Azure Data Lake, or another external archive before deletion.
Using a PowerShell script to automatically remove tables older than 90 days is a sensible solution. Be sure the script handles any possible permission or locking issues during the deletion process.
Hope the above answer helps! Please let us know do you have any further queries.
Please do not forget to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.