を働いていない私は、アラートを作成することはできませんよパワーシェルから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