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
Error related to global_parameter
for azurerm_data_factory
resource, post provider upgrade to v2.64.0
#12301
Comments
global_parameter
for azurerm_data_factory
resourceglobal_parameter
for azurerm_data_factory
resource, post provider upgrade to v2.64.0
@andy-mcgrath Hi there and thank you for reporting this. What puzzles me is that if I look at the actual response of the API I see this:
I.e. there are no |
Managed to replicate the issue. If I create a new Data Factory and use Terraform to create the global parameters the response looks like the following:
However, if the Data Factory has existing global parameters or I add one manually via the Azure portal the response looks like the
I suspect that any Data Factory with existing global parameters that at of type A possible fix would be to remove all global parameters and add them to Terraform but not able to test currently as I need input from another team internally. |
Thank you for your debugging effort! Interesting. This would be hard to reproduce from an acceptance test, since it involves meddling with a resource outside of terraform. I'll try to debug this further in the next couple of days if noone else beats me to it. |
Just would like to confirm , that I have a similar issue. |
I have been looking at this today (the first chance I have had) and identify two issues.
My thinking is to do the following:
Not sure this is the best solution long term but should solve the majority of issues without being a breaking change. If I get time this weekend will have a PR ready next week. |
Hello, looks like this bug is also affecting deployment when we set ignore_changes lifecycle block for global_parameter:
Error I got: This applies to both Array and Object types of parameters. |
The error is due to the type returned by the API being different than the schema type. I have an open PR to fix the error, just waiting on a review. |
This error is still present in 2.81, @favoretti @katbyte , can you please review the pr proposed above by @andy-mcgrath ?? |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Also tested using Terrarom 15.0.5 and 1.0.0 with the same providers, getting the same error.
Affected Resource(s)
azurerm_data_factory
Terraform Configuration Files
This is a extract from a module named
environment
Debug Output
Debug output for command
terraform plan -target module.environment.azurerm_data_factory.data_factory
to reduce sizeExpected Behaviour
Only change was upgrade the azurerm provider so expected no changes.
Actual Behaviour
In
terraform plan
replorting the following error or similar (noted the index value inglobal_parameter.0.value
differ with each execution):Steps to Reproduce
After creating the Azure Data Factory manually add a Global Parameter of type
Bool
,Int
,Float
orArray
and publishFinally run
terraform plan
to generate the errorImportant Factoids
none
References
azurerm_data_factory
- support forglobal_parameter
#12178The text was updated successfully, but these errors were encountered: