{
  "$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/d944d564-b6fa-470d-b5ab-a1a141878c5e')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/d944d564-b6fa-470d-b5ab-a1a141878c5e')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "{{alertType_description_s}}",
          "alertDisplayNameFormat": "Valence Alert: {{alertType_name_s}}",
          "alertDynamicProperties": [],
          "alertSeverityColumnName": "alertType_severity_s"
        },
        "alertRuleTemplateName": "d944d564-b6fa-470d-b5ab-a1a141878c5e",
        "customDetails": {
          "ValenceAlertDesc": "alertType_description_s",
          "ValenceAlertName": "alertType_name_s",
          "ValenceAlertSeverity": "alertType_severity_s",
          "ValenceConnectorUids": "connectorUids_s",
          "ValenceCreatedTS": "createdTimestamp_d",
          "ValencePlatform": "alertType_platform_s"
        },
        "description": "'Valence Security Alerts'\n",
        "displayName": "Valence Security Alerts",
        "enabled": true,
        "entityMappings": null,
        "eventGroupingSettings": {
          "aggregationKind": "SingleAlert"
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Valence%20Security/Analytic%20Rules/ValenceAlerts.yaml",
        "query": "ValenceAlert_CL\n",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "severity": "High",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": null,
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
