-
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
Identity Block Support for azurerm_monitor_scheduled_query_rules_alert_v2 #23437
Comments
@ASHR4 Thank you for taking the time to open this feature request! |
This is also required for Quota alerts. |
An update regarding this issue if people are waiting like myself I attempted to resolve, however, the latest API version the HashiCorp Azure SDK uses was 2021-08-01 which doesn't support managed identities. The earliest API version that supports managed identities for these alerts is 2022-08-01-preview. Some other resources use preview API versions so I've raised an issue to get this in so I can try and tackle this :) |
I have written the code for this, however there is an issue with ARM when assigning a user assigned identity. ARM claims the account running Terraform does not have sufficient permissions, this also occurs when building via the Azure portal |
I am also facing the same problem where I need to attach a system-assigned identity to my alert rule and also a few role assignments to that system-assigned identity but it seems that the resource doesn't provide a way yet to specify a block for defining identity that's going to be attached to the alert rule. Can anyone please suggest a workaround for it? It would be really helpful. |
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. |
Is there an existing issue for this?
Community Note
Description
Microsoft has added the ability to Query Azure Resource Graph from Azure Monitor
Utilising this within a azurerm_monitor_scheduled_query_rules_alert_v2 has caused the following error similar to #23248
The 'adx' pattern cannot be used with the current │ authentication scheme
In #23248 they've mentioned a workaround using ARM and adding a system assigned identity resolved this. Can an identity block be added to this resource to support this new functionality required by MS:
New or Affected Resource(s)/Data Source(s)
azurerm_monitor_scheduled_query_rules_alert_v2
Potential Terraform Configuration
References
https://techcommunity.microsoft.com/t5/azure-observability-blog/query-azure-resource-graph-from-azure-monitor/ba-p/3918298
#23248
The text was updated successfully, but these errors were encountered: