{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/698","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-java","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/698/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/698/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/698/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/698","id":154264001,"number":698,"title":"vm createOrUpdate not working","user":{"login":"MSSedusch","id":5032476,"avatar_url":"https://avatars.githubusercontent.com/u/5032476?v=3","gravatar_id":"","url":"https://api.github.com/users/MSSedusch","html_url":"https://github.com/MSSedusch","followers_url":"https://api.github.com/users/MSSedusch/followers","following_url":"https://api.github.com/users/MSSedusch/following{/other_user}","gists_url":"https://api.github.com/users/MSSedusch/gists{/gist_id}","starred_url":"https://api.github.com/users/MSSedusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSSedusch/subscriptions","organizations_url":"https://api.github.com/users/MSSedusch/orgs","repos_url":"https://api.github.com/users/MSSedusch/repos","events_url":"https://api.github.com/users/MSSedusch/events{/privacy}","received_events_url":"https://api.github.com/users/MSSedusch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-11T14:54:22Z","updated_at":"2016-05-12T07:24:14Z","closed_at":null,"body":"When I try to e.g. add a data disk to a vm I get an error that the createoption for the os disk is required and cannot be null. When I try to set the createoption of the os disk to DiskCreateOptionTypes.EMPTY I get \"error\":{\"code\":\"PropertyChangeNotAllowed\",\"target\":\"osDisk.createOption\",\"message\":\"Changing property 'osDisk.createOption' is not allowed.\"}\r\n\r\nThe issue seems to be that the DataDisk.createOption and OSDisk.createOption do not get filled on retrieval of a virtual machine. I changed the field to a string and adapted the setter and getter method which seems to work"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/218679969","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/698#issuecomment-218679969","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/698","id":218679969,"user":{"login":"MSSedusch","id":5032476,"avatar_url":"https://avatars.githubusercontent.com/u/5032476?v=3","gravatar_id":"","url":"https://api.github.com/users/MSSedusch","html_url":"https://github.com/MSSedusch","followers_url":"https://api.github.com/users/MSSedusch/followers","following_url":"https://api.github.com/users/MSSedusch/following{/other_user}","gists_url":"https://api.github.com/users/MSSedusch/gists{/gist_id}","starred_url":"https://api.github.com/users/MSSedusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSSedusch/subscriptions","organizations_url":"https://api.github.com/users/MSSedusch/orgs","repos_url":"https://api.github.com/users/MSSedusch/repos","events_url":"https://api.github.com/users/MSSedusch/events{/privacy}","received_events_url":"https://api.github.com/users/MSSedusch/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T07:24:14Z","updated_at":"2016-05-12T07:24:14Z","body":"Not sure if that issue is related to mine. In my case, the createOption is not getting filled when I get() a virtual machine. When I try to update the VM, I get \" is required and cannot be null \" because the field was not set on get()"}}