-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_monitor_metric_alert failing to update action block in tfstate file #9891
Comments
Hello? Anyone here? The issue is open since 5 days already but nothing has been done yet. Could you please guys support on this? |
Hello there? This is really something that should be resolved guys, why anyone is taking a look at all to this ticket? |
Issue still exists in 2.61.0 with terraform 1.0.0. |
Issue still exists in 2.69.0 with terraform 1.03 |
still exists in 2.80.0 with tf 1.0.9. need to be able to update webhook_properties as tags are updated to pass through on raised alert |
Hi there, it's September 2022, and this issue still exists. |
FYI, we observe this with version 3.99.0, our plan doesn't contain the new webhook_properties that we added |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_monitor_metric_alert
Terraform Configuration Files
Expected Behaviour
The tfstate file should've been updated with the ID of the secondary action group.
Actual Behaviour
Even if we apply the changes to the .tf main file by setting the secondary action group as "action_group" for the azurerm_monitor_metric_alert resource, tfstate is not being updated in the azurerm_monitor_metric_alert object state in "action" block.
Steps to Reproduce
terraform apply
If this cannot be reproduced:
terraform apply
If this cannot be reproduced:
terraform apply
(will go in error during apply like below)Error: Error creating or updating metric alert "name_metric" (resource group "***"): insights.MetricAlertsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Action Group /subscriptions/***/resourceGroups/... Not found
Important Factoids
I've found this issue because in one of my azurerm_monitor_metric_alert I've got an error while applying changes to it because in the tfstate file it had a very old action group that doesn't exist anymore. I've resolved by setting another existing action group manually in the tfstate file but after changing it to another target action group, the tfstate file wasn't edited at all.
References
The text was updated successfully, but these errors were encountered: