From e04e54ae5f348cf7635b04a7ec9d548b1bfc8537 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Fri, 17 Aug 2018 12:23:14 +0200 Subject: [PATCH] Updating the Data Disk Attachment API call to not return the additional properties --- azurerm/resource_arm_virtual_machine_data_disk_attachment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_virtual_machine_data_disk_attachment.go b/azurerm/resource_arm_virtual_machine_data_disk_attachment.go index ed4f23494497..4f79defe0e5b 100644 --- a/azurerm/resource_arm_virtual_machine_data_disk_attachment.go +++ b/azurerm/resource_arm_virtual_machine_data_disk_attachment.go @@ -92,7 +92,7 @@ func resourceArmVirtualMachineDataDiskAttachmentCreateUpdate(d *schema.ResourceD azureRMLockByName(virtualMachineName, virtualMachineResourceName) defer azureRMUnlockByName(virtualMachineName, virtualMachineResourceName) - virtualMachine, err := client.Get(ctx, resourceGroup, virtualMachineName, compute.InstanceView) + virtualMachine, err := client.Get(ctx, resourceGroup, virtualMachineName, "") if err != nil { if utils.ResponseWasNotFound(virtualMachine.Response) { return fmt.Errorf("Virtual Machine %q (Resource Group %q) was not found", virtualMachineName, resourceGroup)