{"action":"created","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":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-03T22:12:14Z","updated_at":"2016-04-05T21:22:32Z","closed_at":null,"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());"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/205988291","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/638#issuecomment-205988291","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/638","id":205988291,"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},"created_at":"2016-04-05T21:22:32Z","updated_at":"2016-04-05T21:22:32Z","body":"What is an easy way to get availability-set-name through VM? \n\n    On Tuesday, April 5, 2016 1:46 PM, Anu Thomas Chandy <notifications@github.com> wrote:\n \n\n The method \"vm.getAvailbiltiySetReference()\" returns the complete resource URI for the availabiltiySet \ne.g. \"/subscriptions/{subscriptionId}/resourceGroups/SAMPLE1/providers/Microsoft.Compute/availabilitySets/{availability-set-name}\"The \"computeManagementClient.getAvailabilitySetsOperations().delete\" expect name of the availabiltiySet as the second argument not the full URI. Can you try this?Regarding the SDK issue of not throwing error is something we will investigate.—\nYou are receiving this because you were mentioned.\nReply to this email directly or view it on GitHub  \n\n  "}}