Closed MarcusGasser closed 1 month ago
Hi @MarcusGasser , thanks for raising this.
I believe the issue it that the resource was originally named as azurerm_dashboard
and got renamed to azurerm_portal_dashboard
in v4.0. The azurerm_dashboard
exist in your state file, that is why terraform error during reading it from the state.
To address this, you can:
azurerm_dashboard
from the state file via terraform state rm azurerm_dashboard.entrypoint_dashboard
terraform import azurerm_portal_dashboard.entrypoint_dashboard <resource id>
Thak you so much, worked for me!
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
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_portal_dashboard
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
should end with exit code 0
Actual Behaviour
│ Error: no schema available for azurerm_dashboard.entrypoint_dashboard while reading state; this is a bug in Terraform and should be reported
Steps to Reproduce
terraform plan
Important Factoids
No response
References
No response