Closed craigbryson closed 11 months ago
A little further investigation - we're beginning to wonder if there is something specific to the TSI environment - we have a lot of these setups and some exhibit this behaviour, some don't.
Hi @craigbryson as described in #14832, the environment_id
, and the id
of azurerm_iot_time_series_insights_gen2_environment
is generated by the provider itself instead of the result returned by Azure API, so I think there may be some issue locally. I would suggest check the state file to see if the case is corrupted there somehow. And would you be able to share the plan diff? It would be helpful with the troubleshooting.
Thanks for opening this issue. This was a problem in the 2.x version of the provider which is no longer actively maintained. If this is still an issue with the 3.x version of the provider please do let us know by opening a new issue and providing the information requested by @myc2h6o, thanks!
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.
Is there an existing issue for this?
Community Note
Terraform Version
1.0.11
AzureRM Provider Version
2.99
Affected Resource(s)/Data Source(s)
time_series_insights_event_source_iothub
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
time_series_insights_event_source_iothub is not recreated
Actual Behaviour
This is related to my previous issue: https://github.com/hashicorp/terraform-provider-azurerm/issues/14832
We've noticed that even if a time_series_insights_event_source_iothub is created using terraform - subsequent plans will report that it must be destroyed and recreated due to the
environment_id
changing - the change appears to be that resourceGroups is to become resourcegroups (changing the case of the G)To answer @myc2h6o question from the previous issue
Steps to Reproduce
Create an event source (and accompanying resources) such as:
terraform apply
wait a few minutes
plan again - our environment_id attribute changes
Important Factoids
No response
References
No response