{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments/224223212","pull_request_review_id":163526007,"id":224223212,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDIyMzIxMg==","diff_hunk":"@@ -0,0 +1,53 @@\n+{\n+    \"$schema\": \"https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json\",\n+    \"title\": \"Azure Pipelines Agent(s)\",\n+    \"publisher\": \"Utkarsh Shigihalli\",\n+    \"description\": \"Downloads latest Azure Pipelines agent for the account, and installs the specified number instances of the agents inside one VM. Registers the agent with the Azure DevOps account, and adds agents to the specified agent pool. Note - If the specified agent folder already exists it will be overwritten.\",\n+    \"tags\": [\n+      \"Azure DevOps\",\n+      \"Pipelines\",\n+      \"Release\",\n+      \"Build\",\n+      \"CI\",\n+      \"Windows\"\n+    ],\n+    \"iconUri\": \"https://cdn.vsassets.io/content/icons/favicon.ico\",\n+    \"targetOsType\": \"Windows\",\n+    \"parameters\": {\n+      \"Account\": {\n+        \"type\": \"string\",\n+        \"displayName\": \"Azure DevOps Account Name\",\n+        \"description\": \"The name of the Azure DevOps account to add the build agent to. This is the value in your Azure DevOps URL: e.g. 'myaccount' in https://dev.azure.com/myaccount.\"\n+      },\n+      \"PersonalAccessToken\": {\n+        \"type\": \"securestring\",\n+        \"displayName\": \"Azure DevOps Personal Access Token\",\n+        \"description\": \"A personal access token with permissions to add build agents. It will only be used to register the agent.\"\n+      },\n+      \"AgentName\": {\n+        \"type\": \"string\",\n+        \"displayName\": \"Agent Name\",\n+        \"description\": \"The name to give to the agent, as seen by Azure DevOps. If empty, the computer name will be used. Prefixes every agent with given prefix\",\n+        \"allowEmpty\": true\n+      },\n+      \"AgentNamePrefix\": {\n+        \"type\": \"string\",\n+        \"displayName\": \"Agent Name Prefix\",\n+        \"description\": \"Prefixes every agent with string specified here\",\n+        \"allowEmpty\": true\n+      },\n+      \"PoolName\": {\n+        \"type\": \"string\",\n+        \"displayName\": \"Agent Pool\",\n+        \"description\": \"The agent pool this build agent should be added to.\"\n+      },\n+      \"AgentCount\":{","path":"Artifacts/windows-azuredevops-multiple-agents/artifactfile.json","position":44,"original_position":44,"commit_id":"34970178d128eb8fa076cb07d03b978cd2adcad3","original_commit_id":"34970178d128eb8fa076cb07d03b978cd2adcad3","user":{"login":"leovms","id":14631204,"node_id":"MDQ6VXNlcjE0NjMxMjA0","avatar_url":"https://avatars0.githubusercontent.com/u/14631204?v=4","gravatar_id":"","url":"https://api.github.com/users/leovms","html_url":"https://github.com/leovms","followers_url":"https://api.github.com/users/leovms/followers","following_url":"https://api.github.com/users/leovms/following{/other_user}","gists_url":"https://api.github.com/users/leovms/gists{/gist_id}","starred_url":"https://api.github.com/users/leovms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leovms/subscriptions","organizations_url":"https://api.github.com/users/leovms/orgs","repos_url":"https://api.github.com/users/leovms/repos","events_url":"https://api.github.com/users/leovms/events{/privacy}","received_events_url":"https://api.github.com/users/leovms/received_events","type":"User","site_admin":false},"body":"Consider setting the default to `1` and make this mandatory to be more explicit to the user. I do see in the PS1 logic that we do `$AgentCount + 1` in the `for` loop, which will give `1` if not set. So, the logic will still work. Food for thought.","created_at":"2018-10-10T20:06:24Z","updated_at":"2018-10-10T20:49:15Z","html_url":"https://github.com/Azure/azure-devtestlab/pull/413#discussion_r224223212","pull_request_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/413","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments/224223212"},"html":{"href":"https://github.com/Azure/azure-devtestlab/pull/413#discussion_r224223212"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/413"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/413","id":219962948,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5OTYyOTQ4","html_url":"https://github.com/Azure/azure-devtestlab/pull/413","diff_url":"https://github.com/Azure/azure-devtestlab/pull/413.diff","patch_url":"https://github.com/Azure/azure-devtestlab/pull/413.patch","issue_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/413","number":413,"state":"open","locked":false,"title":"Azure DevOps Pipelines Agent - multiple instances in single DTL VM","user":{"login":"onlyutkarsh","id":2685029,"node_id":"MDQ6VXNlcjI2ODUwMjk=","avatar_url":"https://avatars3.githubusercontent.com/u/2685029?v=4","gravatar_id":"","url":"https://api.github.com/users/onlyutkarsh","html_url":"https://github.com/onlyutkarsh","followers_url":"https://api.github.com/users/onlyutkarsh/followers","following_url":"https://api.github.com/users/onlyutkarsh/following{/other_user}","gists_url":"https://api.github.com/users/onlyutkarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/onlyutkarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlyutkarsh/subscriptions","organizations_url":"https://api.github.com/users/onlyutkarsh/orgs","repos_url":"https://api.github.com/users/onlyutkarsh/repos","events_url":"https://api.github.com/users/onlyutkarsh/events{/privacy}","received_events_url":"https://api.github.com/users/onlyutkarsh/received_events","type":"User","site_admin":false},"body":"Downloads latest Azure Pipelines agent for the account, and installs the specified number instances of the agents inside one DevTestLabs VM. Registers the agent with the Azure DevOps account, and adds agents to the specified agent pool. Note - If the specified agent folder already exists it will be overwritten.\r\n\r\nUseful if you would like to install multiple agents inside a single VM.\r\n\r\n![image](https://user-images.githubusercontent.com/2685029/46400958-942b0500-c6f3-11e8-84f0-0303c657f66e.png)\r\n","created_at":"2018-10-03T09:04:41Z","updated_at":"2018-10-10T20:49:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1657fd995c75e9ef537fdb72a334ccaa0437ef96","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/413/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/413/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/413/comments","statuses_url":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/34970178d128eb8fa076cb07d03b978cd2adcad3","head":{"label":"onlyutkarsh:master","ref":"master","sha":"34970178d128eb8fa076cb07d03b978cd2adcad3","user":{"login":"onlyutkarsh","id":2685029,"node_id":"MDQ6VXNlcjI2ODUwMjk=","avatar_url":"https://avatars3.githubusercontent.com/u/2685029?v=4","gravatar_id":"","url":"https://api.github.com/users/onlyutkarsh","html_url":"https://github.com/onlyutkarsh","followers_url":"https://api.github.com/users/onlyutkarsh/followers","following_url":"https://api.github.com/users/onlyutkarsh/following{/other_user}","gists_url":"https://api.github.com/users/onlyutkarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/onlyutkarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlyutkarsh/subscriptions","organizations_url":"https://api.github.com/users/onlyutkarsh/orgs","repos_url":"https://api.github.com/users/onlyutkarsh/repos","events_url":"https://api.github.com/users/onlyutkarsh/events{/privacy}","received_events_url":"https://api.github.com/users/onlyutkarsh/received_events","type":"User","site_admin":false},"repo":{"id":151231548,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEyMzE1NDg=","name":"azure-devtestlab","full_name":"onlyutkarsh/azure-devtestlab","private":false,"owner":{"login":"onlyutkarsh","id":2685029,"node_id":"MDQ6VXNlcjI2ODUwMjk=","avatar_url":"https://avatars3.githubusercontent.com/u/2685029?v=4","gravatar_id":"","url":"https://api.github.com/users/onlyutkarsh","html_url":"https://github.com/onlyutkarsh","followers_url":"https://api.github.com/users/onlyutkarsh/followers","following_url":"https://api.github.com/users/onlyutkarsh/following{/other_user}","gists_url":"https://api.github.com/users/onlyutkarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/onlyutkarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlyutkarsh/subscriptions","organizations_url":"https://api.github.com/users/onlyutkarsh/orgs","repos_url":"https://api.github.com/users/onlyutkarsh/repos","events_url":"https://api.github.com/users/onlyutkarsh/events{/privacy}","received_events_url":"https://api.github.com/users/onlyutkarsh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/onlyutkarsh/azure-devtestlab","description":"Azure DevTestLab artifacts, scripts and samples","fork":true,"url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab","forks_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/forks","keys_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/teams","hooks_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/hooks","issue_events_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/issues/events{/number}","events_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/events","assignees_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/assignees{/user}","branches_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/branches{/branch}","tags_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/tags","blobs_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/statuses/{sha}","languages_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/languages","stargazers_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/stargazers","contributors_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/contributors","subscribers_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/subscribers","subscription_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/subscription","commits_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/contents/{+path}","compare_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/merges","archive_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/downloads","issues_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/issues{/number}","pulls_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/pulls{/number}","milestones_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/milestones{/number}","notifications_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/labels{/name}","releases_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/releases{/id}","deployments_url":"https://api.github.com/repos/onlyutkarsh/azure-devtestlab/deployments","created_at":"2018-10-02T09:34:36Z","updated_at":"2018-10-03T08:43:56Z","pushed_at":"2018-10-03T08:43:55Z","git_url":"git://github.com/onlyutkarsh/azure-devtestlab.git","ssh_url":"git@github.com:onlyutkarsh/azure-devtestlab.git","clone_url":"https://github.com/onlyutkarsh/azure-devtestlab.git","svn_url":"https://github.com/onlyutkarsh/azure-devtestlab","homepage":null,"size":39669,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"e12793da429d1bcba1d2dbf85223ce155b7f6f64","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnk0MjE0NDYwNQ==","name":"azure-devtestlab","full_name":"Azure/azure-devtestlab","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","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},"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":"2018-10-04T13:18:35Z","pushed_at":"2018-10-10T16:56:51Z","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":39665,"stargazers_count":184,"watchers_count":184,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":285,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":285,"open_issues":32,"watchers":184,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/413"},"html":{"href":"https://github.com/Azure/azure-devtestlab/pull/413"},"issue":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/issues/413"},"comments":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/issues/413/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/413/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/413/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/34970178d128eb8fa076cb07d03b978cd2adcad3"}},"author_association":"NONE"}}
{"actor":{"display_login":"leovms"}}