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

r/monitor_diagnostic_setting: adding validation/ensuring the casing of the resource id's #9914

Merged
merged 3 commits into from
Dec 18, 2020

Conversation

tombuildsstuff
Copy link
Contributor

Fixes #9913

@tombuildsstuff tombuildsstuff added this to the v2.42.0 milestone Dec 17, 2020
@tombuildsstuff tombuildsstuff requested a review from a team December 17, 2020 14:13
@ghost ghost added the size/S label Dec 17, 2020
Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tombuildsstuff tombuildsstuff merged commit 3beebac into master Dec 18, 2020
@tombuildsstuff tombuildsstuff deleted the f/monitor-normalize-law-id branch December 18, 2020 11:30
tombuildsstuff added a commit that referenced this pull request Dec 18, 2020
@ghost
Copy link

ghost commented Jan 8, 2021

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 ...

@kinzleb
Copy link

kinzleb commented Jan 11, 2021

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?

@kinzleb
Copy link

kinzleb commented Jan 11, 2021

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.

@sharebear
Copy link
Contributor

@kinzleb Have you seen #10116? Sounds like that would be the right place to follow for a fix

@kinzleb
Copy link

kinzleb commented Jan 12, 2021

@kinzleb Have you seen #10116? Sounds like that would be the right place to follow for a fix

That's exactly my issue, thanks for pointing that out @sharebear !

@ghost
Copy link

ghost commented Jan 17, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 17, 2021
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.

Unable to import azurerm_monitor_diagnostic_setting cleanly
4 participants