{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments/58470317","id":58470317,"diff_hunk":"@@ -1,37 +1,31 @@\n {\n-  \"$schema\": \"https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2015-01-01/dtlArtifacts.json\",\n-  \"title\": \"Run PowerShell\",\n-  \"description\": \"Use this to run a script using PowerShell\",\n-  \"tags\": [\n-    \"Powershell\"\n-  ],\n-  \"iconUri\": \"\",\n-  \"targetOsType\": \"Windows\",\n-  \"parameters\": {\n-    \"scriptFileUris\": {\n-      \"type\": \"array\",\n-      \"displayName\": \"File URI\",\n-      \"description\": \"File(s) to download to VM for execution\"\n+    \"$schema\": \"https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2015-01-01/dtlArtifacts.json\",\n+    \"title\": \"Run PowerShell\",\n+    \"description\": \"Use this to run a script using PowerShell\",\n+    \"tags\": [\n+        \"Powershell\"\n+    ],\n+    \"iconUri\": \"\",\n+    \"targetOsType\": \"Windows\",\n+    \"parameters\": {\n+        \"scriptFileUris\": {\n+            \"type\": \"array\",\n+            \"displayName\": \"File URI\",\n+            \"description\": \"File(s) to download to VM for execution\"\n+        },\n+        \"scriptToRun\": {\n+            \"type\": \"string\",\n+            \"displayName\": \"Script to Run\",\n+            \"description\": \"Script file to run\"\n+        },\n+        \"scriptArguments\": {\n+            \"type\": \"string\",\n+            \"displayName\": \"Script Arguments\",\n+            \"description\": \"Script arguments to pass\",\n+            \"allowEmpty\": true\n+        }\n     },\n-    \"scriptToRun\": {\n-      \"type\": \"string\",\n-      \"displayName\": \"Script to Run\",\n-      \"description\": \"Script file to run\"\n-    },\n-    \"scriptArguments\": {\n-      \"type\": \"string\",\n-      \"displayName\": \"Script Arguments\",\n-      \"description\": \"Script arguments to pass\",\n-      \"allowEmpty\": true\n-    }\n-  },\n-  \"runAzureVMExtension\": {","path":"Artifacts/windows-run-powershell/Artifactfile.json","position":53,"original_position":53,"commit_id":"b5182e5323f71223f45b88f6347774e17b25f7f9","original_commit_id":"b5182e5323f71223f45b88f6347774e17b25f7f9","user":{"login":"drwill-ms","id":14119884,"avatar_url":"https://avatars.githubusercontent.com/u/14119884?v=3","gravatar_id":"","url":"https://api.github.com/users/drwill-ms","html_url":"https://github.com/drwill-ms","followers_url":"https://api.github.com/users/drwill-ms/followers","following_url":"https://api.github.com/users/drwill-ms/following{/other_user}","gists_url":"https://api.github.com/users/drwill-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/drwill-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwill-ms/subscriptions","organizations_url":"https://api.github.com/users/drwill-ms/orgs","repos_url":"https://api.github.com/users/drwill-ms/repos","events_url":"https://api.github.com/users/drwill-ms/events{/privacy}","received_events_url":"https://api.github.com/users/drwill-ms/received_events","type":"User","site_admin":false},"body":"Changed to runCommand","created_at":"2016-04-05T00:17:18Z","updated_at":"2016-04-05T00:17:18Z","html_url":"https://github.com/Azure/azure-devtestlab/pull/69#discussion_r58470317","pull_request_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments/58470317"},"html":{"href":"https://github.com/Azure/azure-devtestlab/pull/69#discussion_r58470317"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69","id":65232577,"html_url":"https://github.com/Azure/azure-devtestlab/pull/69","diff_url":"https://github.com/Azure/azure-devtestlab/pull/69.diff","patch_url":"https://github.com/Azure/azure-devtestlab/pull/69.patch","issue_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/69","number":69,"state":"open","locked":false,"title":"drwill/vsts build agent artifact","user":{"login":"drwill-ms","id":14119884,"avatar_url":"https://avatars.githubusercontent.com/u/14119884?v=3","gravatar_id":"","url":"https://api.github.com/users/drwill-ms","html_url":"https://github.com/drwill-ms","followers_url":"https://api.github.com/users/drwill-ms/followers","following_url":"https://api.github.com/users/drwill-ms/following{/other_user}","gists_url":"https://api.github.com/users/drwill-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/drwill-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwill-ms/subscriptions","organizations_url":"https://api.github.com/users/drwill-ms/orgs","repos_url":"https://api.github.com/users/drwill-ms/repos","events_url":"https://api.github.com/users/drwill-ms/events{/privacy}","received_events_url":"https://api.github.com/users/drwill-ms/received_events","type":"User","site_admin":false},"body":"Adding a public artifact for configuring a VSTS build agent. Script originally provided by ChrisPat from VSTS team, but updated for artifact parameters and error handling.","created_at":"2016-04-05T00:06:28Z","updated_at":"2016-04-05T00:17:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae2356cbd759451b82a685ffe191a3cbd761e39f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/69/comments","statuses_url":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/b5182e5323f71223f45b88f6347774e17b25f7f9","head":{"label":"Azure:drwill/vstsBuildAgentArtifact","ref":"drwill/vstsBuildAgentArtifact","sha":"b5182e5323f71223f45b88f6347774e17b25f7f9","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":42144605,"name":"azure-devtestlab","full_name":"Azure/azure-devtestlab","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-devtestlab","description":"Azure DevTestLab artifacts, scripts and samples","fork":false,"url":"https://api.github.com/repos/Azure/azure-devtestlab","forks_url":"https://api.github.com/repos/Azure/azure-devtestlab/forks","keys_url":"https://api.github.com/repos/Azure/azure-devtestlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-devtestlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-devtestlab/teams","hooks_url":"https://api.github.com/repos/Azure/azure-devtestlab/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-devtestlab/events","assignees_url":"https://api.github.com/repos/Azure/azure-devtestlab/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-devtestlab/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-devtestlab/tags","blobs_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-devtestlab/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-devtestlab/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-devtestlab/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-devtestlab/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-devtestlab/subscription","commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-devtestlab/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-devtestlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-devtestlab/merges","archive_url":"https://api.github.com/repos/Azure/azure-devtestlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-devtestlab/downloads","issues_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-devtestlab/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-devtestlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-devtestlab/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-devtestlab/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-devtestlab/deployments","created_at":"2015-09-08T23:32:52Z","updated_at":"2016-04-04T02:30:52Z","pushed_at":"2016-04-05T00:06:30Z","git_url":"git://github.com/Azure/azure-devtestlab.git","ssh_url":"git@github.com:Azure/azure-devtestlab.git","clone_url":"https://github.com/Azure/azure-devtestlab.git","svn_url":"https://github.com/Azure/azure-devtestlab","homepage":null,"size":2598,"stargazers_count":20,"watchers_count":20,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":6,"forks":32,"open_issues":6,"watchers":20,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"b8dae185223c312df1f5927c6ef7ddcfc4e49f23","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":42144605,"name":"azure-devtestlab","full_name":"Azure/azure-devtestlab","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-devtestlab","description":"Azure DevTestLab artifacts, scripts and samples","fork":false,"url":"https://api.github.com/repos/Azure/azure-devtestlab","forks_url":"https://api.github.com/repos/Azure/azure-devtestlab/forks","keys_url":"https://api.github.com/repos/Azure/azure-devtestlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-devtestlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-devtestlab/teams","hooks_url":"https://api.github.com/repos/Azure/azure-devtestlab/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-devtestlab/events","assignees_url":"https://api.github.com/repos/Azure/azure-devtestlab/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-devtestlab/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-devtestlab/tags","blobs_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-devtestlab/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-devtestlab/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-devtestlab/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-devtestlab/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-devtestlab/subscription","commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-devtestlab/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-devtestlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-devtestlab/merges","archive_url":"https://api.github.com/repos/Azure/azure-devtestlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-devtestlab/downloads","issues_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-devtestlab/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-devtestlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-devtestlab/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-devtestlab/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-devtestlab/deployments","created_at":"2015-09-08T23:32:52Z","updated_at":"2016-04-04T02:30:52Z","pushed_at":"2016-04-05T00:06:30Z","git_url":"git://github.com/Azure/azure-devtestlab.git","ssh_url":"git@github.com:Azure/azure-devtestlab.git","clone_url":"https://github.com/Azure/azure-devtestlab.git","svn_url":"https://github.com/Azure/azure-devtestlab","homepage":null,"size":2598,"stargazers_count":20,"watchers_count":20,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":6,"forks":32,"open_issues":6,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69"},"html":{"href":"https://github.com/Azure/azure-devtestlab/pull/69"},"issue":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/issues/69"},"comments":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/b5182e5323f71223f45b88f6347774e17b25f7f9"}}}}