{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/0aded97e-4e2d-4e4d-93cf-4a7e45c7bab2')]",
      "kind": "NRT",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/0aded97e-4e2d-4e4d-93cf-4a7e45c7bab2')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "_Recorded Future Alert_\n\nEvidence Summary:\n{{alert_description}}\n\nPriority: {{priority}}\n\nRecorded Future Playbook Alert ID\n{{id}}\n",
          "alertDisplayNameFormat": "Alert: {{rule_label}}  - {{alert_title}}",
          "alertDynamicProperties": [
            {
              "alertProperty": "AlertLink",
              "value": "link"
            }
          ]
        },
        "alertRuleTemplateName": "0aded97e-4e2d-4e4d-93cf-4a7e45c7bab2",
        "customDetails": {
          "Category": "category"
        },
        "description": "'Create Recorded Future Playbook Alerts in Microsoft Defender'\n",
        "displayName": "Recorded Future Playbook Alerts Incident Creation",
        "enabled": true,
        "entityMappings": null,
        "eventGroupingSettings": {
          "aggregationKind": "AlertPerResult"
        },
        "incidentConfiguration": {
          "createIncident": true,
          "groupingConfiguration": {
            "enabled": true,
            "groupByCustomDetails": [
              "Category"
            ],
            "lookbackDuration": "PT1H",
            "matchingMethod": "Selected",
            "reopenClosedIncident": false
          }
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Recorded%20Future/Analytic%20Rules/IncidentCreation/RecordedFuturePlaybookAlerts.yaml",
        "query": "RecordedFuturePlaybookAlerts_V2_CL\n| where TimeGenerated >= now(-1h)\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": [],
        "templateVersion": "2.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
