Skip to content

Instantly share code, notes, and snippets.

@bernadinm
Created September 7, 2017 22:51
Show Gist options
  • Save bernadinm/562f2d181eb54ae1dc085c36f7656005 to your computer and use it in GitHub Desktop.
Save bernadinm/562f2d181eb54ae1dc085c36f7656005 to your computer and use it in GitHub Desktop.
terraform taint azurerm_virtual_machine.node.0; terraform apply; fails
Error applying plan:
1 error(s) occurred:
* azurerm_virtual_machine.node[0]: 1 error(s) occurred:
* azurerm_virtual_machine.node.0: compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="The entity was not found."
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment