Azure / Azure/azure-powershell

Add-AzureRMMetricsAlertRule timeAggregationOperator param not effective

Open
#6,227 4 comments 0 reactions 1 assignee Assigned to @gucalder View on GitHub
act-observability-squad customer-reported Monitor - Alerts Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description

The alerts created using Add-AzureRMMetricsAlertRule cmdlet does not reflect the time aggregator parameter passed in (Total,Average,Min,Max..) The default is Average and seems it does not enable us to do otherwise aggregation

I don't see either the option in Azure Portal for selecting aggregation method over time window in Application insight alerts

```powershell
Add-AzureRMMetricsAlertRule -TimeAggregationOperator Total
```

### Module Version

ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 4.0.0 AzureRM.Insights

```powershell
Get-Module -Name AzureRM -ListAvailable
```

### Environment Data
pwsh version: windows
5.1.16299.431

```powershell
$PSVersionTable
```

### Debug Output

```

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.