azurerm_monitor_scheduled_query_rules_alert_v2: add support for email_subject within action block#32132
Merged
toddgiguere merged 1 commit intohashicorp:mainfrom Apr 13, 2026
Conversation
3477c1e to
cbbf6e4
Compare
Contributor
|
All tests passing except for 2, which are ongoing failures and unrelated: https://hashicorp.teamcity.com/buildConfiguration/TF_AzureRM_AZURERM_SERVICE_PUBLIC_MONITOR/645074 |
toddgiguere
requested changes
Apr 9, 2026
Contributor
|
@sojournerdev I only had one very minor change request within the tests. Other than that this is looking good and all of our tests with this approach are working. |
cbbf6e4 to
b985284
Compare
Contributor
|
Since tests had a change, reran just those tests, all succeeded: https://hashicorp.teamcity.com/buildConfiguration/TF_AzureRM_AZURERM_SERVICE_PUBLIC_MONITOR/647597 |
toddgiguere
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Community Note
Description
This PR supersedes my previous PR for the same change. I had to open a new PR because my original fork was deleted.
This change adds support for configuring
email_subjectinside theactionblock of theazurerm_monitor_scheduled_query_rules_alert_v2resource.With this enhancement, users can customize the subject line of alert emails, bringing the Terraform resource in line with Azure Monitor’s support for overriding the default subject. Without this argument, alert emails use a generic subject line, which can make triage more difficult when teams are handling multiple alerts.
Reference: Azure Monitor documentation on customizing email subject lines
This is a non-breaking enhancement because:
email_subjectis optional.This is a non-breaking enhancement:
PR Checklist
email_subjectinside theactionblock.Changes to existing Resource / Data Source
Testing
Acceptance Testing
A full test run log has been attached: test.log
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_monitor_scheduled_query_rules_alert_v2– add support foremail_subjectwithinactionblock [Support for custom email subject in azurerm_monitor_scheduled_query_rules_alert_v2 #30540]This is a (please select all that apply):
Related Issue(s)
Fixes #30540
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.