AzureDevOps project critical builtIn

Description

Ensure project visibility is always private. Private projects require users to be granted access to the project and signed in to access the services. Learn more: https://docs.microsoft.com/en-us/azure/devops/organizations/public/make-project-public

Recommendation

1. Go to Project Overview -> Summary. 
2. On top right, make sure the project is labeled 'Private'.

Policy Rule

{
  "target": "ADOTeamProjectReference",
  "if": {
    "allOf": [
      {
        "resource": "ADOTeamProjectReference",
        "property": "Visibility",
        "operator": "equals",
        "value": "private"
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}