Azure-Sentinel/Tools/Archive-Log-Tool/ArchiveLogsTool-PowerShell
Sreedhar Ande 6e57d773f0 Updated downloadable package 2022-03-09 21:53:30 -08:00
..
Configure-Long-Term-Retention.ps1 Fixed error in Write-Log method 2022-03-09 21:50:12 -08:00
Configure-Long-Term-Retention.zip Updated downloadable package 2022-03-09 21:53:30 -08:00
README.MD Update README.MD 2022-02-18 01:12:54 -08:00

README.MD

Review and Manage Data Table Retention

Author : Sreedhar Ande

Download and run the PowerShell script

  1. Download the script

    Download

  2. 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  
    
  3. Script prompts you to enter your Azure Tenant Id

  4. 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
  5. 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.