{
   "properties": {
      "displayName": "Automatic provisioning of security monitoring agent",
      "policyType": "BuiltIn",
      "mode": "All",
      "description": "Installs security agent on VMs for advanced security alerts and preventions in Azure Security Center. Applies only for subscriptions that use Azure Security Center.",
      "metadata": {
         "version": "1.0.0-deprecated",
         "category": "Security Center",
         "deprecated": true
      },
      "parameters": {},
      "policyRule": {
         "if": {
            "field": "type",
            "in": [
               "Microsoft.Compute/virtualMachines",
               "Microsoft.ClassicCompute/virtualMachines"
            ]
         },
         "then": {
            "effect": "AuditIfNotExists",
            "details": {
               "type": "Microsoft.Security/complianceResults",
               "name": "securityAgent",
               "existenceCondition": {
                  "field": "Microsoft.Security/complianceResults/resourceStatus",
                  "in": [
                     "OffByPolicy",
                     "Healthy"
                  ]
               }
            }
         }
      }
   },
   "id": "/providers/Microsoft.Authorization/policyDefinitions/abcc6037-1fc4-47f6-aac5-89706589be24",
   "name": "abcc6037-1fc4-47f6-aac5-89706589be24"
}