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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to iothub_endpoint_eventhub showed in the Plan but was not applied during the Apply #25373

Closed
1 task done
GuyCarmy opened this issue Mar 22, 2024 · 2 comments
Closed
1 task done

Comments

@GuyCarmy
Copy link

GuyCarmy commented Mar 22, 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 "+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 and review the contribution guide to help.

Terraform Version

1.3.9

AzureRM Provider Version

3.55.0

Affected Resource(s)/Data Source(s)

azurerm_iothub_endpoint_eventhub

Terraform Configuration Files

resource "azurerm_eventhub_authorization_rule" "senders_xx" {
  name                = "yy"
  namespace_name      = local.eventhub_namespace_name
  eventhub_name       = azurerm_eventhub.eventhub_name.name
  resource_group_name = data.azurerm_resource_group.resource_group.name
  listen              = false
  send                = true
  manage              = false
}

resource "azurerm_iothub_endpoint_eventhub" "iothub_endpoint_eventhub_xx" {
  resource_group_name = data.azurerm_resource_group.resource_group.name
  iothub_id           = azurerm_iothub.iothub.id
  name                = "xx"

  connection_string = azurerm_eventhub_authorization_rule.senders_xx.primary_connection_string
}

Debug Output/Panic Output

-

Expected Behaviour

I have re-created the azurerm_eventhub_authorization_rule (it was removed in a previous apply), and the change of the connection string in the azurerm_iothub_endpoint_eventhub showed on the terraform plan stage. I was expecting it to be updated on apply.

on plan it was: 1 to add, 1 to change, 0 to destroy

Actual Behaviour

the change was not applied at all. on the apply it was: Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

the execution is part of CI flow and the apply is of the output file of the plan, so there was no changes in between.

Steps to Reproduce

  1. create a azurerm_eventhub_authorization_rule
  2. create a azurerm_iothub_endpoint_eventhub using the connection string from above
  3. recreate (change name for example which force replacement) the azurerm_eventhub_authorization_rule
  4. the azurerm_iothub_endpoint_eventhub is not being updated.

Important Factoids

No response

References

No response

@ziyeqf
Copy link
Contributor

ziyeqf commented Mar 29, 2024

Hi @GuyCarmy, thanks for opening the issue.

I tried with azureRM provider v3.97.1 and Terraform v1.7.4, while I can not reproduce the issue.Could you please upgrade your provider and Terraform to latest version, then give it another try?

Thanks!

@rcskosir
Copy link
Contributor

rcskosir commented Jun 3, 2024

Thanks for taking the time to submit this issue. @ziyeqf was unable to reproduce this behavior. We鈥檙e going to close this issue for now, but if you run into this again with the latest Terraform and Provider versions, please feel free to open a new issue.

@rcskosir rcskosir closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants