none
Adding AlertRule for Application Insights webtest using PowerShell fails with bad request

    Question

  • PS C:\source\PowerShell> Add-AlertRule -FailedLocationCount 3 -Location "East US" -Name "Name1" -ResourceGroup Test-AI -RuleType Webtest

    Add-AlertRule : BadRequest: The metric name is missing.

    At line:1 char:1

    + Add-AlertRule -FailedLocationCount 3 -Location "East US" -Name "Name1 ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : CloseError: (:) [Add-AlertRule], CloudException

        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Insights.Alerts.AddAlertRuleCommand



    Thursday, November 12, 2015 6:21 AM

Answers