AzureDevOps organization high builtIn

Description

Do not enable auto-provisioning of the agent pool in new projects. Enabling the auto-provisioning will import automatically the agent pool for all new projects. 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 'Off' the setting 'Auto-provision this agent pool in new projects'.

Policy Rule

{
  "target": "ADOTaskAgentPool",
  "if": {
    "allOf": [
      {
        "resource": "ADOTaskAgentPool",
        "property": "Name",
        "operator": "notEquals",
        "value": "Azure Pipelines"
      },
      {
        "resource": "ADOTaskAgentPool",
        "property": "AutoProvision",
        "operator": "equals",
        "value": false
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}