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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destroy AKS oms_agent block before log_analytics_workspace_id. #9334
Comments
We are seeing this behaviour too, there doesn't seem to be an implicit dependency check between removing I hit another issue whereby I couldn't remove the I tried to remove the oms_agent block from our k8s module as a first step and applied this change it was successful. I then applied the removing of the
In the docs it clearly marks this setting as optional: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#oms_agent Does this mean once it has been set in your cluster it can never be removed, i.e. set to |
馃憢 My understanding is that this bug in Terraform Core should be fixed in v0.14.x - would you mind upgrading to the latest release (v0.14.4 at the time of writing) and let us know if your still seeing this? Thanks! |
Hi @tombuildsstuff thanks for the quick reply on this. We are currently on v0.12.29 atm and have 2 tickets in our backlog for an upgrade to v0.13.x and then v0.14.x to be done for our tf code. These should hopefully happen in the next couple of months. I guess we are ok for now as I have now removed all the log_analytics resources and set that value to false in all our clusters. Could you link to the bug thanks? |
Hello, I just want to add that we have the same problem. We are in terraform 0.14.3. Besides, I cannot not set For now, the only thing that "worked" for us, was keeping the config as is (and thus keeping the analytics workspace) and setting Our providers:
|
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.13.4
Affected Resource(s)
azurerm_kubernetes_cluster
azurerm_log_analytics_workspace
Terraform Configuration Files
Debug Output
None to provide.
Panic Output
https://gist.github.com/philippevidal80/a810aead039c9205d4aec13ebf33ee0b
Expected Behaviour
Delete oms_agent block before Log Analytic Workspace.
Actual Behaviour
Log Analytic Workspace is remove before AKS oms_agent block and produce error.
Steps to Reproduce
terraform apply
Important Factoids
Resources are deployed in francecentral
References
The text was updated successfully, but these errors were encountered: