AzureDevOps project low builtIn

Description

Retention policy - Days to keep artifacts, symbols and attachments (>= 30). Learn more: https://learn.microsoft.com/en-us/azure/devops/pipelines/policies/retention

Recommendation

1. Navigate to Project Settings. 
2. Open the Settings link under Pipelines. 
3. Set the number of days to keep artifacts, symbols, and attachments.

Policy Rule

{
  "target": "ADOProjectPipelineRetentionSettings",
  "if": {
    "allOf": [
      {
        "resource": "ADOProjectPipelineRetentionSettings",
        "property": "PurgeArtifacts.Value",
        "operator": "greaterThan",
        "value": 29
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}