-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
State migration to 4.0 fails to unmarshall azurerm_cosmosdb_account.ip_range_filter
field
#27192
Comments
I'm seeing a somewhat similar error when trying to migrate from 3.116.0 to 4.0.1:
As the connection_strings property was dropped according to changelog - I would expect the provider to migrate/drop the field automatically from state or otherwise a note in changelog on how to remove the property manually |
@oraum the The underlying type for the field |
@stephybun thanks for the notice, removing the cosmos db from state and re-importing it did indeed solve the issue for me. |
+1. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Same happens due to the partition_key_path. Also when I do a dump from the state file using version 4.x.x, no cosmosdb entries there, 0, nothing, gone... I just get warnings on failing to decode CosmosDb resource properties because of presence of an unknown one. Before version 4.x.x, there were a couple of deprecated properties that I've removed and started using the one's, but seems the state file was not properly "cleaned" up and now we've garbage conflicting with the new version that no longer recognizes. |
I am facing a similar issue, upgrading from azurerm 3.116.0 to 4.0.1. The connection_strings property cannot be imported from the previous state, and I get a cryptic "missing [" error. I don't have ip_filter_range in my configs. I've been able to stabilize the situation by rolling back to 3.116.0. Waiting for this issue to be resolved before I attempt another upgrade. |
I tried the removing and re-importing the resource from the state and that did the trick. Not ideal but at least I was able to deploy using |
yep that does the trick as it will effective remove all entres, but not the desired solution, but does help further testing the new version |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.9.5
AzureRM Provider Version
4.0.1
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_account
Terraform Configuration Files
followed by an upgrade of the provider
Expected Behaviour
Expected the field to be successfully migrated
Actual Behaviour
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: