-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running terraform plan
on App Service Plan deleted outside of Terraform
#3584
Comments
Same issues, the problem was solved by removing the tfstate file (it was a test environment) |
Same issue with azurerm_sql_server. Removing tfstate worked. |
I'm having the same issue with: Terraform v0.12.4
I'm trying to recreate a lost tfstate file using import, so obviously deleting it tfstate file is not going to solve my problem |
still having the problem in version 0.12.6 |
Workarounded by provider.azurerm version downgrade to 1.27.0, Terraform version is still 0.12.4 |
Hey all. Thanks for opening this issue @joakimhellum-in. It looks like the azure sdk for app service plans doesn't return an error on 404 which is how we normally handle a deletion outside of terraform. I've implemented a workaround with #3990 and opened an issue on the sdk repo to get this addressed. Thanks for your patience here! |
The workaround has been merged and will it make it into the next release. Closing this down but feel free to reopen if you continue to have issues after the next release goes out. |
|
I has been released:
|
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_app_service_plan
Terraform Configuration Files
Debug Output
https://gist.github.com/joakimhellum-in/7a5d2d065d178f85add5e2c037304f87
Panic Output
N/A
Expected Behavior
Terraform to plan resource changes.
Actual Behavior
Terraform exits with an error message:
Error: insufficient items for attribute "sku"; must have at least 1
Steps to Reproduce
terraform init
.terraform apply
.az appservice plan delete -n example-plan -g example-resources
.terraform plan
.Important Factoids
terraform plan
on an App Service Plan that has been deleted outside of Terraform.master
), but not v0.11.sku
attribute.References
The text was updated successfully, but these errors were encountered: