Error removing attached managed disks during Terraform destroy operation #1782
Labels
bug
duplicate
service/disk-attachments
Virtual Machine Disk Attachments
service/disks
service/virtual-machine
v/1.x (legacy)
Community Note
Terraform Version
Terraform v0.11.8
provider.azurerm v1.8.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://1drv.ms/t/s!Amjy2JnYXyQgjasElLzPqmyZ5QUtIw
Panic Output
None
Expected Behavior
Terraform destroy operation should have completed successfully.
Actual Behavior
2 error(s) occurred:
azurerm_virtual_machine_data_disk_attachment.external[0] (destroy): 1 error(s) occurred:
azurerm_virtual_machine_data_disk_attachment.external.0: Error removing Disk "rheltest-disk1" from Virtual Machine "rheltest-vm" (Resource Group "rheltest-resources"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidRequestContent" Message="The request content was invalid and could not be deserialized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 1453.'."
azurerm_virtual_machine_data_disk_attachment.external[1] (destroy): 1 error(s) occurred:
azurerm_virtual_machine_data_disk_attachment.external.1: Error removing Disk "rheltest-disk2" from Virtual Machine "rheltest-vm" (Resource Group "rheltest-resources"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidRequestContent" Message="The request content was invalid and could not be deserialized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 1453.'."
Steps to Reproduce
Important Factoids
None
References
The text was updated successfully, but these errors were encountered: