azurerm_virtual_machine_data_disk_attachment - Error on Destroy #1942
Labels
bug
duplicate
service/disk-attachments
Virtual Machine Disk Attachments
service/disks
service/virtual-machine
Terraform Version
Terraform v0.11.7
Affected Resource(s)
azurerm_virtual_machine_data_disk_attachment
Terraform Configuration Files
Expected Behavior
It should Destroy all the Managed Disk
Actual Behavior
azurerm_virtual_machine_data_disk_attachment.attach_disk.0: Error removing Disk "data-qa-ue1-cntr-asvmssystemcenter-2-b-q1-east" from Virtual Machine "vm-cntr-b-q1-0" (Resource Group "rg-apps-qa-ue1-asvmssystemcenter"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=400 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 2053.'."
Steps to Reproduce
Create Managed Disk using
resource "azurerm_managed_disk" "md" {
count = "${var.number_of_vm * var.disks_per_vm}"
name = "data-${local.naming_standard}-${count.index}-${terraform.workspace}"
location = "${data.azurerm_resource_group.rg.location}"
resource_group_name = "${data.azurerm_resource_group.rg.name}"
storage_account_type = "Premium_LRS"
create_option = "EMPTY"
disk_size_gb = "50"
}
Create VM
Attach Disk using azurerm_virtual_machine_data_disk_attachment
Destroy
It fails on Destroy
The text was updated successfully, but these errors were encountered: