AzureDevOps organization high builtIn

Description

Agent update settings - Allow agents in the agent pool to automatically update. Learn more: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/pools-queues

Recommendation

1. Go to Organization Settings. 
2. Click on Pipelines -> Agent pools. 
3. Select an agent pool. 
4. Select the Settings tab. 
5. Turn 'On' the setting 'Allow agents in this pool to automatically update'.

Policy Rule

{
  "target": "ADOTaskAgentPool",
  "if": {
    "allOf": [
      {
        "resource": "ADOTaskAgentPool",
        "property": "AutoUpdate",
        "operator": "equals",
        "value": true
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}