Getting Issue when we are upgrading terraform azureRm 4.. and required_provider 1.7.4
Error: no schema available for azurerm_template_deployment.integration_account while reading state; this is a bug in Terraform and should be reported
I have found the solution of above mention issue. Please modify terraform state file which has details mention below.
Step 1 - Replace old terraform resource tag to new terraform resource tag. In my case i am replacing "azurerm_template_deployment" to "azurerm_resource_group_template_deployment"
Step 2 - Replace "schema_version": 1 to "schema_version": 0
NOTE - You can try with by replacing of schema_version to 0, your issue should be resolved.