{"action":"created","issue":{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/545","labels_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/545/comments","events_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/545/events","html_url":"https://github.com/MSOpenTech/azure-xplat-cli/issues/545","id":117086042,"number":545,"title":"ARM 'dns zone create' doesn't work for one-label zone name","user":{"login":"romangromov","id":1655573,"avatar_url":"https://avatars.githubusercontent.com/u/1655573?v=3","gravatar_id":"","url":"https://api.github.com/users/romangromov","html_url":"https://github.com/romangromov","followers_url":"https://api.github.com/users/romangromov/followers","following_url":"https://api.github.com/users/romangromov/following{/other_user}","gists_url":"https://api.github.com/users/romangromov/gists{/gist_id}","starred_url":"https://api.github.com/users/romangromov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romangromov/subscriptions","organizations_url":"https://api.github.com/users/romangromov/orgs","repos_url":"https://api.github.com/users/romangromov/repos","events_url":"https://api.github.com/users/romangromov/events{/privacy}","received_events_url":"https://api.github.com/users/romangromov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/labels/ARM","name":"ARM","color":"0052cc"},{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/labels/network","name":"network","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"romangromov","id":1655573,"avatar_url":"https://avatars.githubusercontent.com/u/1655573?v=3","gravatar_id":"","url":"https://api.github.com/users/romangromov","html_url":"https://github.com/romangromov","followers_url":"https://api.github.com/users/romangromov/followers","following_url":"https://api.github.com/users/romangromov/following{/other_user}","gists_url":"https://api.github.com/users/romangromov/gists{/gist_id}","starred_url":"https://api.github.com/users/romangromov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romangromov/subscriptions","organizations_url":"https://api.github.com/users/romangromov/orgs","repos_url":"https://api.github.com/users/romangromov/repos","events_url":"https://api.github.com/users/romangromov/events{/privacy}","received_events_url":"https://api.github.com/users/romangromov/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-16T09:47:35Z","updated_at":"2015-11-16T09:47:51Z","closed_at":null,"body":"```\r\nazure network dns zone create crp-dev-test-roman MyCool\r\ninfo:    Executing command network dns zone create\r\n+ Creating dns zone \"MyCool\"\r\nerror:   Error: null\r\ninfo:    Error information has been recorded to C:\\Users\\roman.gromov\\.azure\\azure.err\r\nerror:   network dns zone create command failed\r\n```"},"comment":{"url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/comments/156972690","html_url":"https://github.com/MSOpenTech/azure-xplat-cli/issues/545#issuecomment-156972690","issue_url":"https://api.github.com/repos/MSOpenTech/azure-xplat-cli/issues/545","id":156972690,"user":{"login":"romangromov","id":1655573,"avatar_url":"https://avatars.githubusercontent.com/u/1655573?v=3","gravatar_id":"","url":"https://api.github.com/users/romangromov","html_url":"https://github.com/romangromov","followers_url":"https://api.github.com/users/romangromov/followers","following_url":"https://api.github.com/users/romangromov/following{/other_user}","gists_url":"https://api.github.com/users/romangromov/gists{/gist_id}","starred_url":"https://api.github.com/users/romangromov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romangromov/subscriptions","organizations_url":"https://api.github.com/users/romangromov/orgs","repos_url":"https://api.github.com/users/romangromov/repos","events_url":"https://api.github.com/users/romangromov/events{/privacy}","received_events_url":"https://api.github.com/users/romangromov/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T09:47:51Z","updated_at":"2015-11-16T09:47:51Z","body":"Comment from Peter Budkowski Peter.Budkowski@microsoft.com:\r\n\r\nHi Anu, this is a curious case, so well done uncovering this. A new feature we just deployed (that allows multiple zones with the same name) requires that the zone name has at least two labels, so it considers ‘MyZone’ an invalid zone name. This validation is bundled with other cases that it checks for and it returns ‘zone already exists’, which is incorrect in this particular case, because the zone does not exist.\r\n\r\nI’ve create bug *3805409* to track this issue.\r\n\r\nTo continue testing please use zone names with two or more labels."}}