{
   "if": {
      "allOf": [
         {
            "field": "type",
            "equals": "Microsoft.Sql/servers/databases"
         },
         {
            "field": "name",
            "notEquals": "master"
         }
      ]
   },
   "then": {
      "effect": "[parameters('effect')]",
      "details": {
         "type": "Microsoft.Sql/servers/databases/transparentDataEncryption",
         "name": "current",
         "existenceCondition": {
            "allOf": [
               {
                  "field": "Microsoft.Sql/transparentDataEncryption.status",
                  "equals": "enabled"
               }
            ]
         }
      }
   }
}