-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Resource: azurerm_monitor_metric_alert
#2007
Comments
Well, as it turns out I need this to support the new alert rules, not the classic ones. |
Hi @mmclane , yes you are right. This involves a new resource called: Azure metric alert instead of the old alertrule resource. And we are currently working that new resource now. |
cool |
azurerm_monitor_action_group
azurerm_monitor_action_group
azurerm_monitor_metric_alert
When I am trying to execute azurerm_monitor_metric_alert : It throws an error with Provider does not support this resource.. Could any one tell me please why this is happening ? |
Hi @mmclane @Kundan123456 , |
Hi @JunyiYi , now its working fine. Thanks for information. One more thing, how to create multiple unique alerts with different dimensions in same template ? Just by copy and pasting same thing again and changing the dimension or do we have any shortcuts here ? Anyone can share their ideas. Thanks. |
Can anyone update above query...I am having same requirement, how to create multiple unique alerts with different Operators....in terraform Criteria... thanks. criteria { output ERROR :
Error: azurerm_monitor_activity_log_alert.main: criteria: attribute supports 1 item maximum, config has 2 declared |
@JunyiYi @tombuildsstuff - Could you please suggest a solution for above my requirement. thanks |
@baladevops you should be able to use a Since the most recent comments are unrelated to the original issue I'm going to lock this issue for the moment. |
Community Note
Description
I can currently use terraform to create an azurerm_metric_alertrule and azurerm_monitor_action_group separately. But I can't create an azurerm_metric_alertrule and point it at an action group (either the one created by terraform or an existing one). This seems like a huge oversight.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: