-
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_alert_processing_rule_action_group
, azurerm_monitor_alert_processing_rule_suppression
#17006
Conversation
…m into wt/alert_processing_rule
…m into wt/alert_processing_rule
have changed some code and run a new test:
|
…m into wt/alert_processing_rule
…m into wt/alert_processing_rule
@katbyte |
…m into alert_processing_rule
azurerm_monitor_alert_processing_rule
azurerm_monitor_alert_processing_rule
…m into alert_processing_rule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why you feel the resources need to be replaced rather then updated due to these changes?
If to update existing
weekly {
days_of_week = ["Sunday", "Saturday"]
}
weekly {
start_time = "17:00:00"
end_time = "18:00:00"
days_of_week = ["Monday"]
} |
@katbyte @teowa My few cents on this one. Previous API version was not fully usable and had issues with usage scenarios, that is why it was reworked. I would prefer one of 2 ways:
|
@teowa - how is 1 resource replace two? |
In action block schema, In current one, the only diff is that if set |
…m into alert_processing_rule
…m into alert_processing_rule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That may be the case but as per the discussion in #6563 these were split out for clarity of what the resource was doing. I don't see any reason to change that now. How about we refine the name of the resources as the old ones seem.. inaccurate and then we can safely deprecate the old ones and not worry about breaking changes. perhaps azurerm_monitor_alert_rule_apply_action_group and azurerm_monitor_alert_rule_suppression ?
WDYT?
Make sense. I will refine the code. |
azurerm_monitor_alert_processing_rule
azurerm_monitor_alert_processing_rule_action_group
, azurerm_monitor_alert_processing_rule_suppression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🌩️
This functionality has been released in v3.24.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
fix #16272, fix #17678
alert_processing_rule_action_group
andalert_processing_rule_suppression
due to REST API breaking changes. Please refer to: service doc and REST API specs.azurerm_monitor_action_rule_action_group
,azurerm_monitor_action_rule_suppression
. Please refer to azurerm_monitor_action_rule_action_group TF doc, azurerm_monitor_action_rule_suppression TF doc, and REST API specs. Due to schema breaking change (e.g.scope.type
is removed, schedule time format change and support more than one recurrence) , developing a new resource is required.test