-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
terraform destroy for Azure Machine Learning Service ends up with an error #6696
Comments
Hi @galiya thanks for this issue! One technical fact is that the terraform provider is using go SDK, and go SDK calls the REST API of the service, and the REST API of the service is described detailed here. In summary, my first thought is that this should be an issue caused by change of service behavior. But could you please provide some more information about this so that I can confirm? The log around the DELETE request should be fine. You can get the log file by exporting the environment variables |
Hey, thanks for the explanation. I've re-run the commands and attached the trimmed log file below. |
Well, unfortunately this is indeed caused by some breaking changes from the service.
The |
This should have been resolved in PR #7635 |
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)
Description
Creating a terraform infrastructure that provisions:
Later running
terraform destroy
to remove infrastructure above. The command fails consistently with an error described below. Runningterraform destroy
second time removes all resources as expected.Expected Behavior
All resources to be destroyed without any issues when running
terraform destroy -var-file=<tfvars file>"
Actual Behavior
Error: Error deleting Machine Learning Workspace "" (Resource Group ""): machinelearningservices.WorkspacesClient#Delete: Failure responding to request: StatusCode=202 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
When running the terraform destroy for the second time, it reveals that keyvault, storage account and application insights resources and a parent resource group were not deleted. However, azure ml workspace resource has been removed despite an error on the 1st run.
References
The text was updated successfully, but these errors were encountered: