-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
r/monitor_diagnostic_setting: adding validation/ensuring the casing of the resource id's #9914
Conversation
…AccountID/EventHubAuthorizationRuleID fields too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This has been released in version 2.42.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.42.0"
}
# ... other configuration ... |
After I upgraded from 2.41.0 to 2.42.0 I'm now getting a difference detected every time I generate a plan -- it looks like differences in character casing of the value for log_analytics_workspace_id is causing it. Is it possible this change introduced that? |
Interesting... I read through what this change is fixing and it seemed to cause the problem it was intended to fix in my situation. I manually created the Log Analytics Workspace using the portal and am using the data source for azurerm_log_analytics_workspace to get the ID of it, I'm then using that ID for the log_analytics_workspace_id attribute when creating a resource of type azurerm_monitor_diagnostic_setting and am seeing the behavior where it detects a difference every time I 'terraform plan/apply' because of the casing. Same is true for a azurerm_kubernetes_cluster resource where I'm also using that ID for the oms_agent.log_analytics_workspace_id. |
That's exactly my issue, thanks for pointing that out @sharebear ! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Fixes #9913