6e57d773f0 | ||
---|---|---|
.. | ||
Configure-Long-Term-Retention.ps1 | ||
Configure-Long-Term-Retention.zip | ||
README.MD |
README.MD
Review and Manage Data Table Retention
Author : Sreedhar Ande
Download and run the PowerShell script
-
Download the script
-
Extract the folder and open "Configure-Long-Term-Retention.ps1" either in Visual Studio Code/PowerShell
Note
The script runs from the user's machine. You must allow PowerShell script execution. To do so, run the following command:Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
-
Script prompts you to enter your Azure Tenant Id
-
You are prompted to authenticate with credentials, once the user is authenticated, you will be prompted to choose
- Subscription
- Log Analytics Workspace
- Table Plan
- Archive Days
-
Provide archiveRetention value - The value beyond two years is restricted to full years. Allowed values are: [4-730], 1095, 1460, 1826, 2191, 2556 days.
Note: Archive retention is calculated by using archiveRetention = totalRetentionInDays - retentionInDays.