{
  "$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/259ef474-836d-4662-86ef-70cb7a38e765')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/259ef474-836d-4662-86ef-70cb7a38e765')]",
      "properties": {
        "alertRuleTemplateName": "259ef474-836d-4662-86ef-70cb7a38e765",
        "customDetails": {
          "Name": "Name",
          "Result": "Result",
          "SessionId": "SessionId",
          "SessionType": "SessionType",
          "VbrHostName": "VbrHostName"
        },
        "description": "Detects failed configuration backup operations. This might indicate system or storage issues, or a potential sabotage of the backup infrastructure.",
        "displayName": "Configuration Backup Failed",
        "enabled": true,
        "entityMappings": null,
        "eventGroupingSettings": {
          "aggregationKind": "AlertPerResult"
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Veeam/Analytic%20Rules/Configuration_Backup_Failed.yaml",
        "query": "VeeamSessions_CL | where SessionType == \"ConfigurationBackup\" and ResultStatus == \"Failed\" | project TimeGenerated, VbrHostName, SessionId = Id, SessionType, Name, Result = ResultStatus",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "severity": "High",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": [],
        "templateVersion": "1.0.2",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
