{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/comments/29305924","id":29305924,"diff_hunk":"@@ -0,0 +1,73 @@\n+﻿function Get-TargetResource\n+{\n+    [CmdletBinding()]\n+    [OutputType([System.Collections.Hashtable])]\n+    param\n+    (\n+        [parameter(Mandatory = $true)]\n+        [System.String]\n+        $Name,\n+\n+        [parameter(Mandatory = $true)]\n+        [System.String]\n+        $Zone,\n+\n+        [parameter(Mandatory = $true)]\n+        [System.String]\n+        $Target\n+    )\n+\n+    Write-Verbose \"Looking up DNS record for $Name in $Zone\"\n+    return (Get-DnsServerResourceRecord -ZoneName $Zone -Name $Name)","path":"DSCResources/MSFT_xDnsARecord/MSFT_xDnsARecord.psm1","position":21,"original_position":21,"commit_id":"b99f9c65cda385e11b0b567d2caa11f45988494c","original_commit_id":"b99f9c65cda385e11b0b567d2caa11f45988494c","user":{"login":"TravisEz13","id":10873629,"avatar_url":"https://avatars.githubusercontent.com/u/10873629?v=3","gravatar_id":"","url":"https://api.github.com/users/TravisEz13","html_url":"https://github.com/TravisEz13","followers_url":"https://api.github.com/users/TravisEz13/followers","following_url":"https://api.github.com/users/TravisEz13/following{/other_user}","gists_url":"https://api.github.com/users/TravisEz13/gists{/gist_id}","starred_url":"https://api.github.com/users/TravisEz13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TravisEz13/subscriptions","organizations_url":"https://api.github.com/users/TravisEz13/orgs","repos_url":"https://api.github.com/users/TravisEz13/repos","events_url":"https://api.github.com/users/TravisEz13/events{/privacy}","received_events_url":"https://api.github.com/users/TravisEz13/received_events","type":"User","site_admin":false},"body":"You aren't returning a hashtable.\r\n\r\nExample code:\r\n\r\n    $record = Get-DnsServerResourceRecord -ZoneName $Zone -Name $Name\r\n    return @{\r\n       Name = $Name\r\n       Zone = $Zone\r\n      Target =  $record.HostName\r\n    }","created_at":"2015-04-29T02:04:11Z","updated_at":"2015-04-29T02:04:11Z","html_url":"https://github.com/PowerShell/xDnsServer/pull/2#discussion_r29305924","pull_request_url":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/comments/29305924"},"html":{"href":"https://github.com/PowerShell/xDnsServer/pull/2#discussion_r29305924"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2","id":34239695,"html_url":"https://github.com/PowerShell/xDnsServer/pull/2","diff_url":"https://github.com/PowerShell/xDnsServer/pull/2.diff","patch_url":"https://github.com/PowerShell/xDnsServer/pull/2.patch","issue_url":"https://api.github.com/repos/PowerShell/xDnsServer/issues/2","number":2,"state":"open","locked":false,"title":"Added xDnsARecord resource","user":{"login":"BrianFarnhill","id":1332611,"avatar_url":"https://avatars.githubusercontent.com/u/1332611?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianFarnhill","html_url":"https://github.com/BrianFarnhill","followers_url":"https://api.github.com/users/BrianFarnhill/followers","following_url":"https://api.github.com/users/BrianFarnhill/following{/other_user}","gists_url":"https://api.github.com/users/BrianFarnhill/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianFarnhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianFarnhill/subscriptions","organizations_url":"https://api.github.com/users/BrianFarnhill/orgs","repos_url":"https://api.github.com/users/BrianFarnhill/repos","events_url":"https://api.github.com/users/BrianFarnhill/events{/privacy}","received_events_url":"https://api.github.com/users/BrianFarnhill/received_events","type":"User","site_admin":false},"body":"Added the xDnsARecord resource to allow for creation of basic A records with the DNS server configuration.","created_at":"2015-04-28T07:21:35Z","updated_at":"2015-04-29T02:04:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2b0e18d08438bd2652279b25a6a26d52fa62fbd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2/commits","review_comments_url":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2/comments","review_comment_url":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/xDnsServer/issues/2/comments","statuses_url":"https://api.github.com/repos/PowerShell/xDnsServer/statuses/b99f9c65cda385e11b0b567d2caa11f45988494c","head":{"label":"BrianFarnhill:dev","ref":"dev","sha":"b99f9c65cda385e11b0b567d2caa11f45988494c","user":{"login":"BrianFarnhill","id":1332611,"avatar_url":"https://avatars.githubusercontent.com/u/1332611?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianFarnhill","html_url":"https://github.com/BrianFarnhill","followers_url":"https://api.github.com/users/BrianFarnhill/followers","following_url":"https://api.github.com/users/BrianFarnhill/following{/other_user}","gists_url":"https://api.github.com/users/BrianFarnhill/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianFarnhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianFarnhill/subscriptions","organizations_url":"https://api.github.com/users/BrianFarnhill/orgs","repos_url":"https://api.github.com/users/BrianFarnhill/repos","events_url":"https://api.github.com/users/BrianFarnhill/events{/privacy}","received_events_url":"https://api.github.com/users/BrianFarnhill/received_events","type":"User","site_admin":false},"repo":{"id":34712893,"name":"xDnsServer","full_name":"BrianFarnhill/xDnsServer","owner":{"login":"BrianFarnhill","id":1332611,"avatar_url":"https://avatars.githubusercontent.com/u/1332611?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianFarnhill","html_url":"https://github.com/BrianFarnhill","followers_url":"https://api.github.com/users/BrianFarnhill/followers","following_url":"https://api.github.com/users/BrianFarnhill/following{/other_user}","gists_url":"https://api.github.com/users/BrianFarnhill/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianFarnhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianFarnhill/subscriptions","organizations_url":"https://api.github.com/users/BrianFarnhill/orgs","repos_url":"https://api.github.com/users/BrianFarnhill/repos","events_url":"https://api.github.com/users/BrianFarnhill/events{/privacy}","received_events_url":"https://api.github.com/users/BrianFarnhill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BrianFarnhill/xDnsServer","description":null,"fork":true,"url":"https://api.github.com/repos/BrianFarnhill/xDnsServer","forks_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/forks","keys_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/teams","hooks_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/hooks","issue_events_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/issues/events{/number}","events_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/events","assignees_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/assignees{/user}","branches_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/branches{/branch}","tags_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/tags","blobs_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/statuses/{sha}","languages_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/languages","stargazers_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/stargazers","contributors_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/contributors","subscribers_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/subscribers","subscription_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/subscription","commits_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/contents/{+path}","compare_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/merges","archive_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/downloads","issues_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/issues{/number}","pulls_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/pulls{/number}","milestones_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/milestones{/number}","notifications_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/labels{/name}","releases_url":"https://api.github.com/repos/BrianFarnhill/xDnsServer/releases{/id}","created_at":"2015-04-28T06:27:52Z","updated_at":"2015-04-28T06:27:53Z","pushed_at":"2015-04-28T10:39:27Z","git_url":"git://github.com/BrianFarnhill/xDnsServer.git","ssh_url":"git@github.com:BrianFarnhill/xDnsServer.git","clone_url":"https://github.com/BrianFarnhill/xDnsServer.git","svn_url":"https://github.com/BrianFarnhill/xDnsServer","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PowerShell:dev","ref":"dev","sha":"7a8f3672c72445647a69555ce745dcbe4a167279","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars.githubusercontent.com/u/11524380?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":34022229,"name":"xDnsServer","full_name":"PowerShell/xDnsServer","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars.githubusercontent.com/u/11524380?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/xDnsServer","description":null,"fork":false,"url":"https://api.github.com/repos/PowerShell/xDnsServer","forks_url":"https://api.github.com/repos/PowerShell/xDnsServer/forks","keys_url":"https://api.github.com/repos/PowerShell/xDnsServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/xDnsServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/xDnsServer/teams","hooks_url":"https://api.github.com/repos/PowerShell/xDnsServer/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/xDnsServer/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/xDnsServer/events","assignees_url":"https://api.github.com/repos/PowerShell/xDnsServer/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/xDnsServer/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/xDnsServer/tags","blobs_url":"https://api.github.com/repos/PowerShell/xDnsServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/xDnsServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/xDnsServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/xDnsServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/xDnsServer/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/xDnsServer/languages","stargazers_url":"https://api.github.com/repos/PowerShell/xDnsServer/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/xDnsServer/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/xDnsServer/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/xDnsServer/subscription","commits_url":"https://api.github.com/repos/PowerShell/xDnsServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/xDnsServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/xDnsServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/xDnsServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/xDnsServer/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/xDnsServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/xDnsServer/merges","archive_url":"https://api.github.com/repos/PowerShell/xDnsServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/xDnsServer/downloads","issues_url":"https://api.github.com/repos/PowerShell/xDnsServer/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/xDnsServer/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/xDnsServer/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/xDnsServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/xDnsServer/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/xDnsServer/releases{/id}","created_at":"2015-04-15T22:42:59Z","updated_at":"2015-04-17T16:56:47Z","pushed_at":"2015-04-28T10:39:27Z","git_url":"git://github.com/PowerShell/xDnsServer.git","ssh_url":"git@github.com:PowerShell/xDnsServer.git","clone_url":"https://github.com/PowerShell/xDnsServer.git","svn_url":"https://github.com/PowerShell/xDnsServer","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2"},"html":{"href":"https://github.com/PowerShell/xDnsServer/pull/2"},"issue":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/issues/2"},"comments":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/xDnsServer/statuses/b99f9c65cda385e11b0b567d2caa11f45988494c"}}}}