Skip to content
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

azurerm_monitor_diagnostic_setting - fix update issue #20048

Merged
merged 5 commits into from
Jan 19, 2023

Conversation

teowa
Copy link
Contributor

@teowa teowa commented Jan 17, 2023

Resolves #20019

  • set log_analytics_destination_type default value to AzureDiagnostics because of service API behaviour change
  • fix hasEnabledLog logic and correctly set log in API payload when no log block or enabled_log block has change during resource update. Solve the at least one type of Log or Metric must be enabled error.

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @teowa
Thanks for this. I think it looks mostly good, but I think there's opportunity for a a couple changes that will help users of this resource. I've left some comments below to take a look at.

Thanks!

@teowa
Copy link
Contributor Author

teowa commented Jan 18, 2023

Thanks @jackofallops for reviewing, I have changed the code, please kindly take another look.

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ⛰️

@katbyte katbyte merged commit dae5f47 into hashicorp:main Jan 19, 2023
@github-actions github-actions bot added this to the v3.40.0 milestone Jan 19, 2023
@github-actions
Copy link

This functionality has been released in v3.40.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@Klaas-
Copy link
Contributor

Klaas- commented Jan 31, 2023

nvm, there was already an issue #20140

@github-actions
Copy link

github-actions bot commented Mar 3, 2023

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagnostic Setting fails to apply if logAnalyticsDestinationType is set
4 participants