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

New azurerm 3.25.0 error while parsing azurerm_log_analytics_cluster Identity block #18447

Closed
1 task done
Stanislava27 opened this issue Sep 19, 2022 · 4 comments · Fixed by #18700
Closed
1 task done
Assignees
Labels
Milestone

Comments

@Stanislava27
Copy link

Stanislava27 commented Sep 19, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.2.7

AzureRM Provider Version

3.25.0

Affected Resource(s)/Data Source(s)

azurerm_log_analytics_cluster

Terraform Configuration Files

resource "azurerm_log_analytics_cluster" "la_cluster" {
  name                = var.name_prefix
  resource_group_name = var.resource_group_name
  location            = var.location
  size_gb             = var.sku_size_gb
  identity {
    type         = "SystemAssigned"
  }
  lifecycle {
    prevent_destroy = true
  }
}

Debug Output/Panic Output

╷
│ Error: setting `identity`: [map[principal_id:UUID tenant_id:UUID type:SystemAssigned]]
│
│   with module.log-analytics-cluster[0].azurerm_log_analytics_cluster.la_cluster,
│   on modules\log-analytics-cluster\main.tf line 2, in resource "azurerm_log_analytics_cluster" "la_cluster":
│    2: resource "azurerm_log_analytics_cluster" "la_cluster" {
│
╵

Expected Behaviour

Parsing error should not occur.

Actual Behaviour

when running terraform plan parsing error occurs.

No changes have been applied to the cluster. The only possible value for identity type is "SystemAssigned". Other attributes are exported by the identity block: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/log_analytics_cluster

Steps to Reproduce

the cluster is configured as a part of a module. use the resource configuration and run terraform plan.

Important Factoids

No response

References

No response

@github-actions github-actions bot removed the bug label Sep 19, 2022
@Stanislava27 Stanislava27 changed the title azurerm from 3.23.0 error while parsing azurerm_log_analytics_cluster Identity block azurerm 3.23.0 error while parsing azurerm_log_analytics_cluster Identity block Sep 19, 2022
@Stanislava27
Copy link
Author

It started at 3.21.0 release, where there were other parsing issues: #18235

@Stanislava27 Stanislava27 changed the title azurerm 3.23.0 error while parsing azurerm_log_analytics_cluster Identity block azurerm 3.24.0 error while parsing azurerm_log_analytics_cluster Identity block Sep 27, 2022
@Stanislava27 Stanislava27 changed the title azurerm 3.24.0 error while parsing azurerm_log_analytics_cluster Identity block New azurerm 3.25.0 error while parsing azurerm_log_analytics_cluster Identity block Oct 5, 2022
@Stanislava27
Copy link
Author

@catriona-m, I believe this change in log_analytics_cluster resource causes the parsing error I have reported. The issue has been introduces in 3.21 and persists in the latest version. I believe it is in line 152, but I am not sure, and it would be great, if you had time to look at this issue.

@github-actions
Copy link

This functionality has been released in v3.27.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!

@github-actions
Copy link

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 have found a problem that seems similar to this, 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 Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants