I am currently upgrading my terraform stack with azurerm from the version 1.x to the version 2.x.
I make all the changes from the terraform files, but when trying to apply the configuration, I am getting the following error:
default_node_pool: The Default Agent Pool “” was not found
After some investigation in a new deployed stack and the old one, I can see that the block
agent_pool_profile is existing in the old terraform state file, but has been replaced by
default_node_pool in the new terraform state file.
How can I upgrade my stack using k8s with that kind of changes? (I just hope I should not update the tfstate file manually )