{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1676","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1676/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1676/events","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/1676","id":345685366,"node_id":"MDU6SXNzdWUzNDU2ODUzNjY=","number":1676,"title":"Failing to add volume using terraform code","user":{"login":"Stuti05","id":41896595,"node_id":"MDQ6VXNlcjQxODk2NTk1","avatar_url":"https://avatars0.githubusercontent.com/u/41896595?v=4","gravatar_id":"","url":"https://api.github.com/users/Stuti05","html_url":"https://github.com/Stuti05","followers_url":"https://api.github.com/users/Stuti05/followers","following_url":"https://api.github.com/users/Stuti05/following{/other_user}","gists_url":"https://api.github.com/users/Stuti05/gists{/gist_id}","starred_url":"https://api.github.com/users/Stuti05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stuti05/subscriptions","organizations_url":"https://api.github.com/users/Stuti05/orgs","repos_url":"https://api.github.com/users/Stuti05/repos","events_url":"https://api.github.com/users/Stuti05/events{/privacy}","received_events_url":"https://api.github.com/users/Stuti05/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-30T09:44:32Z","updated_at":"2018-07-30T10:21:02Z","closed_at":"2018-07-30T10:21:02Z","author_association":"NONE","body":"Hi Team,\r\n\r\nWe are getting below error when trying to create and attach the volume to one of the server in our azure environment.\r\nThe volume does not get attached to the server. I have tried using version 1.8.0 and 1.11.0\r\nNo luck\r\n\r\n==============||================||===================\r\nError: Error applying plan:\r\n\r\n1 error(s) occurred:\r\n\r\nazurerm_virtual_machine_data_disk_attachment.abcserver-dataXX: 1 error(s) occurred:\r\n\r\nazurerm_virtual_machine_data_disk_attachment.abcserver-dataXX: Error updating Virtual Machine \"abcserver\" (Resource Group \"abc-XXXX\") with Disk \"abcserver-dataXX\": 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 9330.'.\"\r\n==============||================||===================\r\n\r\nTerraform plan output runs without errors and below is the output of resources created:\r\n\r\n==============||================||===================\r\nTerraform will perform the following actions:\r\n\r\nazurerm_managed_disk.abcserver-dataXX\r\nid:\r\ncreate_option: \"Empty\"\r\ndisk_size_gb: \"4095\"\r\nlocation: \"westeurope\"\r\nname: \"abcserver-dataXX\"\r\nresource_group_name: \"abc-XXXX\"\r\nsource_uri:\r\nstorage_account_type: \"Premium_LRS\"\r\ntags.%: \"4\"\r\ntags.app-number: \"XXXX\"\r\ntags.environment: \"XXXX\"\r\ntags.stack-name: \"XXXX\"\r\ntags.stack-number: \"XXXX\"\r\n\r\nazurerm_virtual_machine_data_disk_attachment.abcserver-dataXX\r\nid:\r\ncaching: \"None\"\r\ncreate_option: \"Attach\"\r\nlun: \"12\"\r\nmanaged_disk_id: \"${azurerm_managed_disk.abcserver-dataXX.id}\""},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/comments/408817323","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/1676#issuecomment-408817323","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/1676","id":408817323,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODgxNzMyMw==","user":{"login":"tombuildsstuff","id":666005,"node_id":"MDQ6VXNlcjY2NjAwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/666005?v=4","gravatar_id":"","url":"https://api.github.com/users/tombuildsstuff","html_url":"https://github.com/tombuildsstuff","followers_url":"https://api.github.com/users/tombuildsstuff/followers","following_url":"https://api.github.com/users/tombuildsstuff/following{/other_user}","gists_url":"https://api.github.com/users/tombuildsstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/tombuildsstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombuildsstuff/subscriptions","organizations_url":"https://api.github.com/users/tombuildsstuff/orgs","repos_url":"https://api.github.com/users/tombuildsstuff/repos","events_url":"https://api.github.com/users/tombuildsstuff/events{/privacy}","received_events_url":"https://api.github.com/users/tombuildsstuff/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T10:21:01Z","updated_at":"2018-07-30T10:21:01Z","author_association":"CONTRIBUTOR","body":"hey @Stuti05 \r\n\r\nThanks for opening this issue :)\r\n\r\nThis issue has previously been reported in #1600 which I'm going to close this issue in favour of - would you mind subscribing to that issue for updates?\r\n\r\nThanks!"}}
{"actor":{"display_login":"tombuildsstuff"}}