2016-04-06 7 views
0

を働いていない私は、アラートを作成することはできませんよパワーシェルからAzureのPowerShellは、追加-AlertRuleを

コマンド

Add-AlertRule -Name "poor sales" -Description "slow sales alert" -ResourceGroup "Default-ApplicationInsights-CentralUS" -ResourceId "/subscriptions/subsId/resourcegroups/Default-ApplicationInsights-CentralUS/providers/microsoft.insights/components/TestAppIns" -MetricName "salesPerHour" -Operator LessThan -Threshold 100 -WindowSize 00:30:00 -CustomEmails "[email protected]","[email protected]" -Location "East US" -RuleType Metric 

例外の詳細

Add-AlertRule : InternalServerError: Exception of type 'Microsoft.WindowsAzure.Management.Monitoring.MonitoringServiceException' was thrown. At line:1 char:1 + Add-AlertRule -Name "poor sales" -Description "slow sales alert" -ResourceGrou ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-AlertRule], CloudException + FullyQualifiedErrorId : Hyak.Common.CloudException,Microsoft.Azure.Commands.Insights.Alerts.AddAlertRuleCommand

答えて

0

カスタムメトリックのアラートルールを作成することができませんメトリックがゼロなし値で少なくとも1回書かれる前に。私はそれが問題か設計された行動かどうかはわかりません。 それは、私の場合には、回避策に従うことによって解決された:

  1. 展開クラウド/ Webサービスアプリケーションの洞察サービスを作成し、すべてのメトリック
  2. アラートルール

を作成し初期化し、私はあなたが連絡する必要がありますねあなたの場合、回避策が適用されない場合は、MSサポートに連絡してください。

関連する問題