{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/2328","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2328/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2328/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2328/events","html_url":"https://github.com/Azure/azure-powershell/issues/2328","id":156763326,"number":2328,"title":"Remove-AzureRmDnsRecordSet doesn't accept pipeline input","user":{"login":"pcgeek86","id":466713,"avatar_url":"https://avatars.githubusercontent.com/u/466713?v=3","gravatar_id":"","url":"https://api.github.com/users/pcgeek86","html_url":"https://github.com/pcgeek86","followers_url":"https://api.github.com/users/pcgeek86/followers","following_url":"https://api.github.com/users/pcgeek86/following{/other_user}","gists_url":"https://api.github.com/users/pcgeek86/gists{/gist_id}","starred_url":"https://api.github.com/users/pcgeek86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcgeek86/subscriptions","organizations_url":"https://api.github.com/users/pcgeek86/orgs","repos_url":"https://api.github.com/users/pcgeek86/repos","events_url":"https://api.github.com/users/pcgeek86/events{/privacy}","received_events_url":"https://api.github.com/users/pcgeek86/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Networking","name":"Networking","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-25T14:21:00Z","updated_at":"2016-05-26T14:36:29Z","closed_at":null,"body":"# Issue \r\n\r\nRemove-AzureRmDnsZone doesn't accept pipeline input\r\n\r\n```\r\nGet-AzureRmDnsRecordSet -ResourceGroupName ArtofShell -ZoneName trevorsullivan.net | Remove-AzureRmDnsRecordSet -Force\r\n```\r\n\r\n> Remove-AzureRmDnsRecordSet : The input object cannot be bound to any parameters for the command either \r\nbecause the command does not take pipeline input or the input and its properties do not match any of the \r\nparameters that take pipeline input.\r\nAt line:1 char:86\r\n\r\n# Expected Result\r\n\r\n`Remove-AzureRmDnsZone` should accept pipeline input.\r\n\r\nCheers,\r\n**Trevor Sullivan**\r\nMicrosoft MVP: Cloud & Data Center Management\r\nhttps://trevorsullivan.net\r\nhttps://twitter.com/pcgeek86"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/221889478","html_url":"https://github.com/Azure/azure-powershell/issues/2328#issuecomment-221889478","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2328","id":221889478,"user":{"login":"jtuliani","id":8792554,"avatar_url":"https://avatars.githubusercontent.com/u/8792554?v=3","gravatar_id":"","url":"https://api.github.com/users/jtuliani","html_url":"https://github.com/jtuliani","followers_url":"https://api.github.com/users/jtuliani/followers","following_url":"https://api.github.com/users/jtuliani/following{/other_user}","gists_url":"https://api.github.com/users/jtuliani/gists{/gist_id}","starred_url":"https://api.github.com/users/jtuliani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtuliani/subscriptions","organizations_url":"https://api.github.com/users/jtuliani/orgs","repos_url":"https://api.github.com/users/jtuliani/repos","events_url":"https://api.github.com/users/jtuliani/events{/privacy}","received_events_url":"https://api.github.com/users/jtuliani/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T14:36:29Z","updated_at":"2016-05-26T14:36:29Z","body":"I updated the title of the issue to refer to DNS record sets instead of zones, since that's what you gave in your description.  However I see the same behaviour for both record sets and zones.\r\n\r\nIt works when you want to delete a single record set or a single zone:\r\n\r\n```\r\nPS> Get-AzurermDnsZone -ResourceGroupName rg1 -Name myzonex.com | Remove-AzureRmDnsZone\r\nPS> Get-AzureRmDnsRecordSet -ResourceGroupName rg1 -ZoneName myzonex.com -Name test-a -RecordType A | Remove-AzureRmDnsRecordSet\r\n```\r\n\r\nHowever, if the 'Get' command is scope more broadly, so it returns an array of results, this doesn't work:\r\n\r\n```\r\nPS> Get-AzurermDnsZone -ResourceGroupName rg1 | Remove-AzureRmDnsZone\r\nPS> Get-AzureRmDnsRecordSet -ResourceGroupName rg1 -ZoneName myzonex.com | Remove-AzureRmDnsRecordSet\r\n```\r\n\r\nTrevor, please can you clarify what behaviour you're looking for here?\r\n\r\nIs the goal to delete all record sets in a zone?  If so, why?  If it's as a precursor to deleting the zone, note that in our GA API we will change the service behaviour to permit zone delete without deleting record sets first, you can just delete the zone.  Note also that deleting all records sets in the zone in this way will fail for the auto-created NS/SOA record sets at the zone apex.\r\n\r\nIs it useful to be able to delete all zones in a RG or subscription this way?  I would have thought that's a very rare scenario."}}
{"actor":{"display_login":"jtuliani"}}