title: Azure Alert not triggered WebHook for Azure WebJobs
body: <p>I'm trying to find what is wrong in my Template Deployment for Azure Alert. I want to Send Email and triggered a WebHook in Azure WebJobs with Basic Authentification.</p>
  
  <pre><code>{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
  
    },
    "variables": {
    },
    "resources": [
      {
        "type": "Microsoft.Insights/alertRules",
        "name": "tesTalert",
        "location": "westeurope",
        "apiVersion": "2014-04-01",
        "properties": {
          "name": "test",
          "isEnabled": true,
        "condition": {
            "odata.type": "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition",
            "dataSource": {
                "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource",
                "operationName": "RunFinished",
                "status": "Failed",
                "subStatus": "FailedExecution"
            }
          },
          "action": {
          "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction",
          "serviceUri": "https://$myUserName:MyPassWord@MyWebsite.scm.azurewebsites.net/api/triggeredwebjobs/WebJobName/run",
          "properties": {}
          }
        }
      }
    ]
  }
  </code></pre>
  
  <p>i have also try with this template with email and it's working but not for the webhook. Maybe the problem is from the api version , so i try different version. Nothing happend.</p>
  
  <pre><code>{
      "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
      "contentVersion": "1.0.0.0",
      "parameters": { },
      "resources": [
          {
              "type": "microsoft.insights/alertrules",
              "name": "ADFAlertsSlice",
              "apiVersion": "2015-01-01",
              "location": "westeurope",
              "properties": {
                  "name": "ADFAlertsSlice",
                  "description": "One or more of the data slices for the Azure Data Factory has failed processing.",
                  "isEnabled": true,
                  "condition": {
                      "odata.type": "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition",
                      "dataSource": {
                          "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource",
                          "operationName": "RunFinished",
                          "status": "Failed",
                          "subStatus": "FailedExecution"
                      }
  
                  },
                  "actions": [        
                         {
                          "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction",
                           "serviceUri": "https://$myUserName:MyPassWord@MyWebsite.scm.azurewebsites.net/api/triggeredwebjobs/WebJobName/run",
                          "properties": {}
                      },
                      {
                          "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
                          "customEmails": [
                           "MyEmail@email.com"
                          ]
                      }
                  ]
              }
          }
      ]
  }
  </code></pre>
  
  <p>I can't find what is wrong. thanks for your help.</p>