{
  "$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/ee15ed10-d355-474e-b8ad-a8bbb76f6d38')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/ee15ed10-d355-474e-b8ad-a8bbb76f6d38')]",
      "properties": {
        "alertRuleTemplateName": "ee15ed10-d355-474e-b8ad-a8bbb76f6d38",
        "customDetails": null,
        "description": "Query searches for phishing threats stopped by MailGuard 365.\n",
        "displayName": "MailGuard 365 - Phishing Threats",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "MailMessage",
            "fieldMappings": [
              {
                "columnName": "MessageId",
                "identifier": "NetworkMessageId"
              },
              {
                "columnName": "Email",
                "identifier": "Recipient"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/MailGuard%20365/Hunting%20Queries/MailGuard365PhishingThreats.yaml",
        "query": "MG365ThreatData_CL\n| where Category == \"Phishing\"\n",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "CredentialAccess",
          "InitialAccess",
          "Reconnaissance"
        ],
        "techniques": [
          "T1566",
          "T1598"
        ],
        "templateVersion": "1.0.0"
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
