Azure terraform import does not import all attributes in terraform state file after terraform provider version upgrade from 2.x to 3.x
I upgraded deprecated resource 'azurerm_function_app' to 'azurerm_linux_web_app' and 'azurerm_windows_function_app'. Removed resources from terraform state file with 'terraform state rm command' successfully. terraform import adds all attributes in portal but state file does not add some app setting attributes after terraform import and apply.
~ resource "azurerm_linux_web_app" "mcp-frontend" {
~ app_settings = {
+ "WEBSITE_VNET_ROUTE_ALL" = "1"
~ resource "azurerm_windows_function_app" "api" {
~ app_settings = {
+ "APPINSIGHTS_INSTRUMENTATIONKEY" = (sensitive)
+ "WEBSITE_VNET_ROUTE_ALL" = "1"