azurerm_monitor_diagnostic_setting - fix issue when updating enabled_log to empty#28485
Merged
catriona-m merged 2 commits intohashicorp:mainfrom Mar 18, 2025
Merged
azurerm_monitor_diagnostic_setting - fix issue when updating enabled_log to empty#28485catriona-m merged 2 commits intohashicorp:mainfrom
azurerm_monitor_diagnostic_setting - fix issue when updating enabled_log to empty#28485catriona-m merged 2 commits intohashicorp:mainfrom
Conversation
azurerm_monitor_diagnostic_setting - fix update enabled_log to emptyazurerm_monitor_diagnostic_setting - fix update enabled_log to empty
azurerm_monitor_diagnostic_setting - fix update enabled_log to emptyazurerm_monitor_diagnostic_setting - fix issue when updating enabled_log to empty
catriona-m
requested changes
Mar 14, 2025
Member
catriona-m
left a comment
There was a problem hiding this comment.
Thanks @teowa - I just left one comment on the tests but once that is addressed I can take another look. Thanks!
Comment on lines
+268
to
+275
| { | ||
| Config: r.eventhub(data), | ||
| Check: acceptance.ComposeTestCheckFunc( | ||
| check.That(data.ResourceName).ExistsInAzure(r), | ||
| check.That(data.ResourceName).Key("enabled_log.#").HasValue("0"), | ||
| ), | ||
| }, | ||
| data.ImportStep(), |
Member
There was a problem hiding this comment.
we can remove this here since we are already testing this in TestAccMonitorDiagnosticSetting_enabledLogsMix
catriona-m
added a commit
that referenced
this pull request
Mar 18, 2025
jackofallops
added a commit
that referenced
this pull request
Mar 21, 2025
* CHANGELOG.md for v4.24.0 * Update CHANGELOG.md #28173 * Update CHANGELOG.md #28964 * Update CHANGELOG.md #28569 * Update CHANGELOG.md for #28670 * Update CHANGELOG.md #29081 * Update CHANGELOG.md for #29082 * Update CHANGELOG.md #28888 * Update CHANGELOG.md #29012 * Update CHANGELOG.md #28485 * Update CHANGELOG.md for #29094 * Update CHANGELOG.md #29107 * Update CHANGELOG.md #28368 * Update for #29113 #28884 #28739 #28920 #29018 #28822 #28977 #29096 #29040 * Update for #29088 * Update CHANGELOG.md #29079 * Update CHANGELOG.md #28992 * prep for release --------- Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Co-authored-by: Wyatt Fry <wyattfry@gmail.com> Co-authored-by: jackofallops <11830746+jackofallops@users.noreply.github.com> Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: stephybun <steph@hashicorp.com> Co-authored-by: jackofallops <ste@hashicorp.com>
Contributor
|
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. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Fix the issue that when updating
enabled_logto empty, if we send"logs":null, the server will not update the logs. To fix this, we need to explicitly disable each log in request.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_monitor_diagnostic_setting- fix update enabled_log to emptyThis is a (please select all that apply):
Related Issue(s)
Fixes #28428
Note
If this PR changes meaningfully during the course of review please update the title and description as required.