{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/638","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/638/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/638/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/638/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/638","id":145545674,"number":638,"title":"Failed to delete newworkinterface and availabilityset while return code is 204 and ComputeOperationStatus is Succeeded","user":{"login":"netwmr01","id":5139166,"avatar_url":"https://avatars.githubusercontent.com/u/5139166?v=3","gravatar_id":"","url":"https://api.github.com/users/netwmr01","html_url":"https://github.com/netwmr01","followers_url":"https://api.github.com/users/netwmr01/followers","following_url":"https://api.github.com/users/netwmr01/following{/other_user}","gists_url":"https://api.github.com/users/netwmr01/gists{/gist_id}","starred_url":"https://api.github.com/users/netwmr01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netwmr01/subscriptions","organizations_url":"https://api.github.com/users/netwmr01/orgs","repos_url":"https://api.github.com/users/netwmr01/repos","events_url":"https://api.github.com/users/netwmr01/events{/privacy}","received_events_url":"https://api.github.com/users/netwmr01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-03T22:12:14Z","updated_at":"2016-04-05T22:07:08Z","closed_at":"2016-04-05T22:07:08Z","body":"the following code is use to delete the availabilityset and networkinterface\r\nOperationResponse result = computeManagementClient.getAvailabilitySetsOperations().delete(resourceGroup, vm.getAvailabilitySetReference().toString());\r\n\r\n\r\nresult = networkResourceProviderClient.getNetworkInterfacesOperations().beginDelete(resourceGroup, vm.getNetworkProfile().getNetworkInterfaces().toString());"}}