{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/comments/74500897","id":74500897,"diff_hunk":"@@ -0,0 +1,121 @@\n+# HOL - Parts Unlimited MRP App Continuous Deployment with Visual Studio Team Services - Local Agent #\n+\n+In this lab, you will learn how to deploy the Parts Unlimited MRP App in an automated fashion onto a local agent on a Linux VM. After this lab, you will have a working, automated build in Visual Studio Team Services that will build, test, and deploy the Parts Unlimited MRP app to a Virtual Machine in Azure.\n+\n+>**Note:** If you would like to trigger continuous deployments using the hosted VSTS agent instead of a local agent, see [this lab](https://github.com/Microsoft/PartsUnlimitedMRP/tree/master/docs/HOL_Continuous-Deployment).  \n+\n+\n+###Pre-requisites###\n+\n+- Completion of the Continuous Integration with Parts Unlimited MRP HOL\n+- An active Azure Subscription\n+- An active Visual Studio Team Services Account\n+\n+\n+### Tasks Overview ###\n+\n+In this lab, you will work with one machine which will serve as both the deployment agent and the MRP server.\n+\n+**Provision the lab:** Provision a VSTS agent and MRP machine (Ubuntu VM) in Azure using an ARM template.\n+\n+**Configure the release definition:** Configure a release definition in VSTS that picks up build artifacts and triggers whenever new artifacts are produced. \n+\n+**Trigger a build for continuous deployment:** Trigger a build for continuous deployment by making changes to code and automatically deploying the MRP app to the local agent.\n+\n+### Task 1: Provision the Lab ###\n+\n+1. Create the MRP agent pool in Visual Studio Team Services if you do not have one already. Go to the homepage of your VSTS account or the PartsUnlimitedMRP team project and clicking on the gear icon in the upper-right corner of the homepage.\n+\n+\t![](<media/vsts_gear_icon.png>)\n+\n+2. Then, click on the **Agent Pool** tab and click on **New pool...** to create a pool called \"MRP.\" Keep the checkbox to \"Auto-provision Queues in all Projects\" checked.\n+\n+    ![](<media/create_agent_pool.png>) \n+\n+3. Instead of manually creating the VM in Azure, we are going to use an Azure Resource Management (ARM) template. Simply click the **Deploy to Azure** button below and follow the wizard to deploy the machine. You will need to log in to the Azure Portal.\n+                                                                    \n+    <a href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FMicrosoft%2FPartsUnlimitedMRP%2Fmaster%2Fdocs%2FHOL_Continuous-Deployment-Using-Custom-Agent%2Fenv%2FContinuousDeploymentCustomAgentPartsUnlimitedMRP.json\" target=\"_blank\">","path":"docs/HOL_Continuous-Deployment-Using-Custom-Agent/README.md","position":37,"original_position":37,"commit_id":"7baad5e7771d6d13e110d558688efc943f9ae36b","original_commit_id":"7baad5e7771d6d13e110d558688efc943f9ae36b","user":{"login":"julienstroheker","id":8661347,"avatar_url":"https://avatars.githubusercontent.com/u/8661347?v=3","gravatar_id":"","url":"https://api.github.com/users/julienstroheker","html_url":"https://github.com/julienstroheker","followers_url":"https://api.github.com/users/julienstroheker/followers","following_url":"https://api.github.com/users/julienstroheker/following{/other_user}","gists_url":"https://api.github.com/users/julienstroheker/gists{/gist_id}","starred_url":"https://api.github.com/users/julienstroheker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienstroheker/subscriptions","organizations_url":"https://api.github.com/users/julienstroheker/orgs","repos_url":"https://api.github.com/users/julienstroheker/repos","events_url":"https://api.github.com/users/julienstroheker/events{/privacy}","received_events_url":"https://api.github.com/users/julienstroheker/received_events","type":"User","site_admin":false},"body":"Can we open a new tab when we click on it ?","created_at":"2016-08-11T20:53:34Z","updated_at":"2016-08-11T20:53:34Z","html_url":"https://github.com/Microsoft/PartsUnlimitedMRP/pull/59#discussion_r74500897","pull_request_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/comments/74500897"},"html":{"href":"https://github.com/Microsoft/PartsUnlimitedMRP/pull/59#discussion_r74500897"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59","id":80882878,"html_url":"https://github.com/Microsoft/PartsUnlimitedMRP/pull/59","diff_url":"https://github.com/Microsoft/PartsUnlimitedMRP/pull/59.diff","patch_url":"https://github.com/Microsoft/PartsUnlimitedMRP/pull/59.patch","issue_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/59","number":59,"state":"open","locked":false,"title":"Update Continuous Deployment HOL with ARM and split into hosted/custom agent","user":{"login":"sawpresto","id":11528965,"avatar_url":"https://avatars.githubusercontent.com/u/11528965?v=3","gravatar_id":"","url":"https://api.github.com/users/sawpresto","html_url":"https://github.com/sawpresto","followers_url":"https://api.github.com/users/sawpresto/followers","following_url":"https://api.github.com/users/sawpresto/following{/other_user}","gists_url":"https://api.github.com/users/sawpresto/gists{/gist_id}","starred_url":"https://api.github.com/users/sawpresto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawpresto/subscriptions","organizations_url":"https://api.github.com/users/sawpresto/orgs","repos_url":"https://api.github.com/users/sawpresto/repos","events_url":"https://api.github.com/users/sawpresto/events{/privacy}","received_events_url":"https://api.github.com/users/sawpresto/received_events","type":"User","site_admin":false},"body":"Split the lab into two different labs: \r\n\r\nSetting up CD for an on-premises/custom/local agent and local deployment on a VM\r\nSetting up CD for a hosted agent using SSH and deploying to a VM\r\n\r\nAlso added ARM template with the \"Deploy to Azure\" button for both labs. ","created_at":"2016-08-10T23:06:13Z","updated_at":"2016-08-11T20:53:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfc545b9fd68903c259bdc9e55271f1e6adefd41","assignee":{"login":"julienstroheker","id":8661347,"avatar_url":"https://avatars.githubusercontent.com/u/8661347?v=3","gravatar_id":"","url":"https://api.github.com/users/julienstroheker","html_url":"https://github.com/julienstroheker","followers_url":"https://api.github.com/users/julienstroheker/followers","following_url":"https://api.github.com/users/julienstroheker/following{/other_user}","gists_url":"https://api.github.com/users/julienstroheker/gists{/gist_id}","starred_url":"https://api.github.com/users/julienstroheker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienstroheker/subscriptions","organizations_url":"https://api.github.com/users/julienstroheker/orgs","repos_url":"https://api.github.com/users/julienstroheker/repos","events_url":"https://api.github.com/users/julienstroheker/events{/privacy}","received_events_url":"https://api.github.com/users/julienstroheker/received_events","type":"User","site_admin":false},"assignees":[{"login":"julienstroheker","id":8661347,"avatar_url":"https://avatars.githubusercontent.com/u/8661347?v=3","gravatar_id":"","url":"https://api.github.com/users/julienstroheker","html_url":"https://github.com/julienstroheker","followers_url":"https://api.github.com/users/julienstroheker/followers","following_url":"https://api.github.com/users/julienstroheker/following{/other_user}","gists_url":"https://api.github.com/users/julienstroheker/gists{/gist_id}","starred_url":"https://api.github.com/users/julienstroheker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienstroheker/subscriptions","organizations_url":"https://api.github.com/users/julienstroheker/orgs","repos_url":"https://api.github.com/users/julienstroheker/repos","events_url":"https://api.github.com/users/julienstroheker/events{/privacy}","received_events_url":"https://api.github.com/users/julienstroheker/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59/commits","review_comments_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59/comments","review_comment_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/59/comments","statuses_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/statuses/7baad5e7771d6d13e110d558688efc943f9ae36b","head":{"label":"nwcadence:HOL_Continuous-Deployment","ref":"HOL_Continuous-Deployment","sha":"7baad5e7771d6d13e110d558688efc943f9ae36b","user":{"login":"nwcadence","id":7928220,"avatar_url":"https://avatars.githubusercontent.com/u/7928220?v=3","gravatar_id":"","url":"https://api.github.com/users/nwcadence","html_url":"https://github.com/nwcadence","followers_url":"https://api.github.com/users/nwcadence/followers","following_url":"https://api.github.com/users/nwcadence/following{/other_user}","gists_url":"https://api.github.com/users/nwcadence/gists{/gist_id}","starred_url":"https://api.github.com/users/nwcadence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwcadence/subscriptions","organizations_url":"https://api.github.com/users/nwcadence/orgs","repos_url":"https://api.github.com/users/nwcadence/repos","events_url":"https://api.github.com/users/nwcadence/events{/privacy}","received_events_url":"https://api.github.com/users/nwcadence/received_events","type":"Organization","site_admin":false},"repo":{"id":63283500,"name":"PartsUnlimitedMRP","full_name":"nwcadence/PartsUnlimitedMRP","owner":{"login":"nwcadence","id":7928220,"avatar_url":"https://avatars.githubusercontent.com/u/7928220?v=3","gravatar_id":"","url":"https://api.github.com/users/nwcadence","html_url":"https://github.com/nwcadence","followers_url":"https://api.github.com/users/nwcadence/followers","following_url":"https://api.github.com/users/nwcadence/following{/other_user}","gists_url":"https://api.github.com/users/nwcadence/gists{/gist_id}","starred_url":"https://api.github.com/users/nwcadence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwcadence/subscriptions","organizations_url":"https://api.github.com/users/nwcadence/orgs","repos_url":"https://api.github.com/users/nwcadence/repos","events_url":"https://api.github.com/users/nwcadence/events{/privacy}","received_events_url":"https://api.github.com/users/nwcadence/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nwcadence/PartsUnlimitedMRP","description":"Parts Unlimited MRP is a fictional outsourced Manufacturing Resource Planning (MRP) application based on The Phoenix Project by Gene Kim, Kevin Behr and George Spafford. The application uses entirely open source software including Linux, Java, Apache, and MongoDB which creates a web front end, an order service, and an integration service.","fork":true,"url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP","forks_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/forks","keys_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/teams","hooks_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/hooks","issue_events_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/issues/events{/number}","events_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/events","assignees_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/assignees{/user}","branches_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/branches{/branch}","tags_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/tags","blobs_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/git/refs{/sha}","trees_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/statuses/{sha}","languages_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/languages","stargazers_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/stargazers","contributors_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/contributors","subscribers_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/subscribers","subscription_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/subscription","commits_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/commits{/sha}","git_commits_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/git/commits{/sha}","comments_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/comments{/number}","issue_comment_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/issues/comments{/number}","contents_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/contents/{+path}","compare_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/merges","archive_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/downloads","issues_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/issues{/number}","pulls_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/pulls{/number}","milestones_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/milestones{/number}","notifications_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/labels{/name}","releases_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/releases{/id}","deployments_url":"https://api.github.com/repos/nwcadence/PartsUnlimitedMRP/deployments","created_at":"2016-07-13T22:22:08Z","updated_at":"2016-07-13T22:22:09Z","pushed_at":"2016-08-10T23:50:51Z","git_url":"git://github.com/nwcadence/PartsUnlimitedMRP.git","ssh_url":"git@github.com:nwcadence/PartsUnlimitedMRP.git","clone_url":"https://github.com/nwcadence/PartsUnlimitedMRP.git","svn_url":"https://github.com/nwcadence/PartsUnlimitedMRP","homepage":"","size":72610,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Microsoft:master","ref":"master","sha":"3cf6e8b0e2f04c43d05d42c7911d1d9b5a1bab27","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":34739600,"name":"PartsUnlimitedMRP","full_name":"Microsoft/PartsUnlimitedMRP","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/PartsUnlimitedMRP","description":"Parts Unlimited MRP is a fictional outsourced Manufacturing Resource Planning (MRP) application based on The Phoenix Project by Gene Kim, Kevin Behr and George Spafford. The application uses entirely open source software including Linux, Java, Apache, and MongoDB which creates a web front end, an order service, and an integration service.","fork":false,"url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP","forks_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/forks","keys_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/teams","hooks_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/events","assignees_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/tags","blobs_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/languages","stargazers_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/subscription","commits_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/merges","archive_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/downloads","issues_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/deployments","created_at":"2015-04-28T15:40:26Z","updated_at":"2016-08-09T12:43:13Z","pushed_at":"2016-08-10T23:51:20Z","git_url":"git://github.com/Microsoft/PartsUnlimitedMRP.git","ssh_url":"git@github.com:Microsoft/PartsUnlimitedMRP.git","clone_url":"https://github.com/Microsoft/PartsUnlimitedMRP.git","svn_url":"https://github.com/Microsoft/PartsUnlimitedMRP","homepage":"","size":43191,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":10,"forks":43,"open_issues":10,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59"},"html":{"href":"https://github.com/Microsoft/PartsUnlimitedMRP/pull/59"},"issue":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/59"},"comments":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/PartsUnlimitedMRP/statuses/7baad5e7771d6d13e110d558688efc943f9ae36b"}}}}
{"actor":{"display_login":"julienstroheker"}}