You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: creating or updating Monitor Metric Alert (Subscription: "xxx"
│ Resource Group Name: "xxx"
│ Metric Alert Name: "SQL_Database_FreeDiskSpacePercent"): metricalerts.MetricAlertsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Scopes property is invalid. Only single resource is allowed for criteria type SingleResourceMultipleMetricCriteria. If you want to create an alert on multiple resources, use MultipleResourceMultipleMetricCriteria odata.type."
Expected Behaviour
Modify alert
Actual Behaviour
Error see above
The strange thing is, if I create the alert from scratch as an example with 5 databases, everything is fine.
If I want to modify the existing alert (add or remove a single database), I get the error.
If I am using the Azure Portal, everything works fine.
Any ideas?
Steps to Reproduce
terraform apply
Everything is working
Add or Remove ids from the local.sql_database_sub01 (local.sql_database_sub01 contains the database ids)
terraform apply
Error
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
For what it's worth, I just bumped in this today. I dropped down to 3.52.0, same error. On 3.51.0, for my use case the apply is successful.
Experienced the same as reported; initial build is fine on any of the 3 versions I've tried. The error happens with an update. In my case, I was adding an action.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.4.5
AzureRM Provider Version
3.53.0
Affected Resource(s)/Data Source(s)
azurerm_monitor_metric_alert
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Modify alert
Actual Behaviour
Error see above
The strange thing is, if I create the alert from scratch as an example with 5 databases, everything is fine.
If I want to modify the existing alert (add or remove a single database), I get the error.
If I am using the Azure Portal, everything works fine.
Any ideas?
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: