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

data.azurerm_logic_app_standard fails with "Invalid address to set" #28156

Closed
1 task done
lra opened this issue Dec 2, 2024 · 1 comment · Fixed by #28158
Closed
1 task done

data.azurerm_logic_app_standard fails with "Invalid address to set" #28156

lra opened this issue Dec 2, 2024 · 1 comment · Fixed by #28158

Comments

@lra
Copy link

lra commented Dec 2, 2024

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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.

Terraform Version

1.10.0

AzureRM Provider Version

4.12.0

Affected Resource(s)/Data Source(s)

azurerm_logic_app_standard

Terraform Configuration Files

data "azurerm_logic_app_standard" "pgalert_intake" {
  name                = "PGAlertIntake"
  resource_group_name = "prod-seismic"
}

Debug Output/Panic Output

A simple terraform plan leads to:

data.azurerm_logic_app_standard.pgalert_intake: Reading...

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: setting `identity`: Invalid address to set: []string{"identity", "0", "identity_ids"}
│
│   with data.azurerm_logic_app_standard.pgalert_intake,
│   on sql-monitoring.tf line 43, in data "azurerm_logic_app_standard" "pgalert_intake":
│   43: data "azurerm_logic_app_standard" "pgalert_intake" {
│
╵

Expected Behaviour

Using azurerm v4.11.0 I get:

No changes. Your infrastructure matches the configuration.

Actual Behaviour

Using azurerm v4.12.0 I get:

data.azurerm_logic_app_standard.pgalert_intake: Reading...

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: setting `identity`: Invalid address to set: []string{"identity", "0", "identity_ids"}
│
│   with data.azurerm_logic_app_standard.pgalert_intake,
│   on sql-monitoring.tf line 43, in data "azurerm_logic_app_standard" "pgalert_intake":
│   43: data "azurerm_logic_app_standard" "pgalert_intake" {
│
╵

Steps to Reproduce

  1. terraform plan

Important Factoids

This works fine with azurerm v4.11.0. The bug was introduced in v4.12.0.

References

No response

@ziyeqf
Copy link
Contributor

ziyeqf commented Dec 3, 2024

Hi @lra , thanks for reporting!

I submitted a PR(#28158) for it, once it merged & released, this should be fixed, before that please use v4.11.0 temporarily.

@github-actions github-actions bot added this to the v4.13.0 milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants