-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure azurerm_monitor_metric_alert aggregation now have Count as well #3039
Comments
Hi @tombuildsstuff @JunyiYi , any luck you can comment on the above issue and let me know what can be done to get count to be used in aggregation? |
Thank you very much @tombuildsstuff , is there any timeline when v1.24.0 will be released? |
This has been released in version 1.24.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.24.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Terraform (and AzureRM Provider) Version
Terraform v0.11.11
Affected Resource(s)
azurerm_monitor_metric_alert
Terraform Configuration Files
Expected Behavior
Aggregation property should allow
Count
as wellError
module.appinsights_alerts.azurerm_monitor_metric_alert.metric_alert: 1 error(s) occurred:
azurerm_monitor_metric_alert.metric_alert: Error creating or updating metric alert "testapp-dev-failed-request-alert" (resource group ""): insights.MetricAlertsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Time aggregation must be one of [Count]."
Actual Behavior
terraform only allows below values for Aggregation in alert
aggregation - (Required) The statistic that runs over the metric values. Possible values are Average, Minimum, Maximum and Total.
Cannot specify Count in the metric alert
Steps to Reproduce
terraform apply
References
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftinsightscomponents
If you check above link, failed/request support only
Count
as aggregation value in the metric alert.Is there any way i can get around this issue at the moment ?
The text was updated successfully, but these errors were encountered: