Cdktf 0.8.6 to 0.14.1 problem with tfstate

Hello,

When I upgraded from cdktf 0.8.6 to 0.14.1, the following error is happening during deploy:

 Error decoding "azurerm_function_app.devkdsamain-fa" from previous state:
│ unsupported attribute "client_affinity_enabled"

Does anyone has any idea why this is happening and how can I fix it?

Working version:

{
 "@cdktf/provider-azurerm": "^0.3.77",
    "@cdktf/provider-null": "^0.3.82",
    "cdktf": "^0.8.6",
    "constructs": "^10.1.42",
}

Current setup (not working):

{
 "@cdktf/provider-azurerm": "^2.0.20",
    "@cdktf/provider-null": "^2.0.74",
    "cdktf": "^0.12.3",
    "cdktf-cli": "^0.12.3",
    "constructs": "^10.1.175",
}

Any help is appreciated.

Possibly a bug in the azurerm provider, though I haven’t found anything on the provider GitHub.
May be related to azurerm_function_app being deprecated.
Might need to resort to manually editing your tfstate to remove the attribute.