{
   "properties": {
      "displayName": "Audit delegation of scopes to a managing tenant",
      "description": "Audit delegation of scopes to a managing tenant via Azure Lighthouse.",
      "policyType": "BuiltIn",
      "mode": "All",
      "metadata": {
         "version": "1.0.0",
         "category": "Lighthouse"
      },
      "parameters": {
         "effect": {
            "type": "string",
            "defaultValue": "Audit",
            "allowedValues": [
               "Audit",
               "Disabled"
            ],
            "metadata": {
               "displayName": "Effect",
               "description": "Enable or disable the execution of the policy"
            }
         }
      },
      "policyRule": {
         "if": {
            "allOf": [
               {
                  "field": "type",
                  "equals": "Microsoft.ManagedServices/registrationAssignments"
               },
               {
                  "value": "true",
                  "equals": "true"
               }
            ]
         },
         "then": {
            "effect": "[parameters('effect')]"
         }
      }
   },
   "id": "/providers/Microsoft.Authorization/policyDefinitions/76bed37b-484f-430f-a009-fd7592dff818",
   "name": "76bed37b-484f-430f-a009-fd7592dff818"
}