-
Notifications
You must be signed in to change notification settings - Fork 10.3k
import cannot evaluate resources which require state upgrades #30746
Copy link
Copy link
Closed
Labels
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and AzureRM Provider) 3.0.1
Affected Resource(s)
- azurerm_mssql_database
Terraform Configuration Files
resource "azurerm_mssql_database" "mssql_database" {
name = "tentaclearmy-mssql-database-${lower(var.environment)}"
server_id = azurerm_mssql_server.mssql_server.id
max_size_gb = 2
sku_name = "Basic"
}
Expected Behaviour
terraform plan or import should succeed
Actual Behaviour
Receive the following error:
Error: Invalid resource instance data in state
│
│ on /Users/.../Octopus/TentacleArmy/terraform/main.tf line 71:
│ 71: resource "azurerm_mssql_server" "mssql_server" {
│
│ Instance azurerm_mssql_server.mssql_server data could not be decoded from the state: unsupported attribute "extended_auditing_policy".
Steps to Reproduce
in main.tf
resource "azurerm_mssql_database" "mssql_database" {
name = "tentaclearmy-mssql-database-${lower(var.environment)}"
server_id = azurerm_mssql_server.mssql_server.id
max_size_gb = 2
sku_name = "Basic"
}
terraform import azurerm_mssql_database.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/example1
Important Factoids
AzureRM recently updated a major version to 3.0
Reactions are currently unavailable