AzureDevOps organization high builtIn

Description

Automatically enable Advanced Security for new projects. New projects in this organization will be set to automatically enable Advanced Security on new Git repositories by default. Settings can be changed on individual projects and repositories at any time. Advanced Security is billed based on the number of unique active committers across all enabled repositories in your subscription. Learn more: https://learn.microsoft.com/en-us/azure/devops/repos/security/configure-github-advanced-security-features

Recommendation

1. Go to Organization Settings. 
2. Select Repos -> Repositories. 
3. Turn 'On' the setting 'Automatically enable Advanced Security for new projects'.

Policy Rule

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