{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3058","repository_url":"https://api.github.com/repos/Azure/azure-xplat-cli","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3058/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3058/comments","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3058/events","html_url":"https://github.com/Azure/azure-xplat-cli/issues/3058","id":168627367,"number":3058,"title":"azure network dns record-set delete-record has issue","user":{"login":"elemantalcode","id":20316451,"avatar_url":"https://avatars.githubusercontent.com/u/20316451?v=3","gravatar_id":"","url":"https://api.github.com/users/elemantalcode","html_url":"https://github.com/elemantalcode","followers_url":"https://api.github.com/users/elemantalcode/followers","following_url":"https://api.github.com/users/elemantalcode/following{/other_user}","gists_url":"https://api.github.com/users/elemantalcode/gists{/gist_id}","starred_url":"https://api.github.com/users/elemantalcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemantalcode/subscriptions","organizations_url":"https://api.github.com/users/elemantalcode/orgs","repos_url":"https://api.github.com/users/elemantalcode/repos","events_url":"https://api.github.com/users/elemantalcode/events{/privacy}","received_events_url":"https://api.github.com/users/elemantalcode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-01T11:44:42Z","updated_at":"2016-08-01T15:25:49Z","closed_at":null,"body":"CLI Version: **0.10.2**\r\nOS Type: CentOS 6.8 and CentOS 7.2\r\nInstallation via:  npm (also tried git)\r\n\r\nMode: **ARM**\r\n\r\nEnvironment: **AzureCloud**\r\n\r\nDescription:\r\nUnable to remove an A record. DNS zone is created and working. Unable to remove record.\r\n\r\nExample DNS:\r\n\r\n`azure network dns record-set list BaseResourceGroup domain.co.uk` \r\n\r\nResult: \r\n\r\n```\r\ninfo:    Executing command network dns record-set list\r\n+ Looking up the DNS Record Sets\r\ndata:    Name                            TTL     Type  Records                                     Tags\r\ndata:    ------------------------------  ------  ----  ------------------------------------------  ----\r\ndata:    @                               172800  NS    ns1-05.azure-dns.com.\r\ndata:                                                  ns2-05.azure-dns.net.\r\ndata:                                                  ns3-05.azure-dns.org.\r\ndata:                                                  ns4-05.azure-dns.info.\r\ndata:    @                               3600    SOA   host:    ns1-05.azure-dns.com.\r\ndata:                                                  email:   azuredns-hostmaster.microsoft.com\r\ndata:                                                  refresh: 3600\r\ndata:                                                  retry:   300\r\ndata:                                                  expire:  2419200\r\ndata:                                                  minimum: 300\r\ndata:    host1                         300     A     172.17.5.4\r\ndata:    host2                         300     A     172.17.6.4\r\ndata:    host3                         300     A     172.17.6.8\r\ndata:    host4                         300     A     172.17.6.6\r\ndata:    host5                         300     A     172.17.6.5\r\ndata:    host6                         300     A     172.17.6.7\r\n```\r\n\r\nTry to remove:\r\n\r\n`azure network dns record-set delete-record --resource-group BaseResourceGroup --dns-zone-name domain.co.uk --record-set-name host4 --type A --ipv4-address 172.17.6.6`\r\n\r\nResult:\r\n\r\n```\r\ninfo:    Executing command network dns record-set delete-record\r\n+ Looking up the DNS Record Set \"host4\" of type \"A\"\r\nDelete DNS Record? [y/n]  y\r\n+ Updating record set \"host4\"\r\nerror:   parameters.recordSet.location cannot be null.\r\nerror:   Error information has been recorded to /home/azure/.azure/azure.err\r\nerror:   network dns record-set delete-record command failed\r\n```\r\n\r\nError stack trace:\r\n\r\n```\r\n2016-08-01T12:20:42.832Z:\r\n{ [Error: parameters.recordSet.location cannot be null.]\r\n  stack: [Getter/Setter],\r\n  __frame:\r\n   { name: 'updateRecordSet__20',\r\n     line: 479,\r\n     file: '/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js',\r\n     prev:\r\n      { name: 'deleteRecord__19',\r\n        line: 460,\r\n        file: '/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js',\r\n        prev: [Object],\r\n        calls: 2,\r\n        active: false,\r\n        offset: 15,\r\n        col: 23 },\r\n     calls: 0,\r\n     active: false,\r\n     offset: 4,\r\n     col: 58 },\r\n  rawStack: [Getter] }\r\nError: parameters.recordSet.location cannot be null.\r\n  <<< async stack >>>\r\n    at RecordSetOperations.createOrUpdate (/usr/lib/node_modules/azure-cli/node_modules/azure-arm-dns/lib/dnsManagementClient.js:238:23)\r\n    at updateRecordSet__20 (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:483:62)\r\n  at updateRecordSet__20 (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:483:59)\r\n  at deleteRecord__19 (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:475:24)\r\n  at __82 (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/network.js:1742:15)\r\n  <<< raw stack >>>\r\n    at RecordSetOperations.createOrUpdate (/usr/lib/node_modules/azure-cli/node_modules/azure-arm-dns/lib/dnsManagementClient.js:238:23)\r\n    at __$updateRecordSet__20 (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:483:62)\r\n    at __tryCatch (/usr/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:150:4)\r\n    at ___ (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:481:250)\r\n    at ___ (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:484:65)\r\n    at __$updateRecordSet__20 (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:489:79)\r\n    at __tryCatch (/usr/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:150:4)\r\n    at ___ (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:481:150)\r\n    at ___ (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:489:182)\r\n    at __$updateRecordSet__20 (/usr/lib/node_modules/azure-cli/lib/commands/arm/network/dnsZone.js:491:159)\r\n```\r\n\r\nSeems to be linked to a similar problem with adding records found here: #2989 "},"comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments/236614043","html_url":"https://github.com/Azure/azure-xplat-cli/issues/3058#issuecomment-236614043","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3058","id":236614043,"user":{"login":"MikhailTryakhov","id":3079588,"avatar_url":"https://avatars.githubusercontent.com/u/3079588?v=3","gravatar_id":"","url":"https://api.github.com/users/MikhailTryakhov","html_url":"https://github.com/MikhailTryakhov","followers_url":"https://api.github.com/users/MikhailTryakhov/followers","following_url":"https://api.github.com/users/MikhailTryakhov/following{/other_user}","gists_url":"https://api.github.com/users/MikhailTryakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailTryakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailTryakhov/subscriptions","organizations_url":"https://api.github.com/users/MikhailTryakhov/orgs","repos_url":"https://api.github.com/users/MikhailTryakhov/repos","events_url":"https://api.github.com/users/MikhailTryakhov/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailTryakhov/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T15:25:49Z","updated_at":"2016-08-01T15:25:49Z","body":"Hi @elemantalcode \r\ncould you please make sure that your azure-cli package version is really **0.10.2**.\r\nIt was fixed in previous version and now it's non-reproducable in specified 0.10.2 version"}}
{"actor":{"display_login":"MikhailTryakhov"}}