{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/comments/62360589","id":62360589,"diff_hunk":"@@ -47,25 +47,61 @@\n       \"metadata\": {\n         \"description\": \"This is the size of your VM\"\n       }\n+    },\n+    \"newOrExisting\": {\n+      \"allowedValues\": [ \"new\", \"existing\" ],\n+      \"type\": \"string\",\n+      \"metadata\": {\n+        \"description\":  \"Select if this template needs a new VNet or will reference an existing VNet\"\n+      }\n+    },\n+    \"virtualNetworkName\": {\n+      \"type\": \"string\",\n+      \"defaultValue\": \"\",\n+      \"metadata\": {\n+        \"description\": \"VNet Name\"\n+      }\n+    },\n+    \"subnetName\": {\n+      \"type\": \"string\",\n+      \"defaultValue\": \"Subnet1\",\n+      \"metadata\": {\n+        \"description\": \"Subnet Name\"\n+      }\n     }\n   },\n   \"variables\": {\n     \"location\": \"[resourceGroup().location]\",\n     \"publicIPAddressName\": \"userImagePublicIP\",\n     \"vmName\": \"userImageVM\",\n-    \"virtualNetworkName\": \"userImageVNET\",\n     \"nicName\": \"userImageVMNic\",\n-    \"addressPrefix\": \"10.0.0.0/16\",\n-    \"subnet1Name\": \"Subnet-1\",\n-    \"subnet1Prefix\": \"10.0.0.0/24\",\n     \"publicIPAddressType\": \"Dynamic\",\n-    \"vnetID\": \"[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]\",\n-    \"subnet1Ref\": \"[concat(variables('vnetID'),'/subnets/',variables('subnet1Name'))]\",\n     \"osDiskVhdName\": \"[concat('http://',parameters('userImageStorageAccountName'),'.blob.core.windows.net/vhds/',variables('vmName'),'osDisk.vhd')]\",\n-    \"apiVersion\": \"2015-06-15\"\n+    \"apiVersion\": \"2015-06-15\",\n+    \"templatelink\": \"[concat('https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/101-vm-from-user-image/',parameters('newOrExisting'),'vnet.json')]\"","path":"101-vm-from-user-image/azuredeploy.json","position":42,"original_position":42,"commit_id":"ca4fa6709d7324aee3f4925eeecae387a7ebdcf3","original_commit_id":"ca4fa6709d7324aee3f4925eeecae387a7ebdcf3","user":{"login":"singhkay","id":6164178,"avatar_url":"https://avatars.githubusercontent.com/u/6164178?v=3","gravatar_id":"","url":"https://api.github.com/users/singhkay","html_url":"https://github.com/singhkay","followers_url":"https://api.github.com/users/singhkay/followers","following_url":"https://api.github.com/users/singhkay/following{/other_user}","gists_url":"https://api.github.com/users/singhkay/gists{/gist_id}","starred_url":"https://api.github.com/users/singhkay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singhkay/subscriptions","organizations_url":"https://api.github.com/users/singhkay/orgs","repos_url":"https://api.github.com/users/singhkay/repos","events_url":"https://api.github.com/users/singhkay/events{/privacy}","received_events_url":"https://api.github.com/users/singhkay/received_events","type":"User","site_admin":false},"body":"Should be \"Azure/azure-quickstart-templates/master/\". URLs are case sensitive","created_at":"2016-05-06T17:19:42Z","updated_at":"2016-05-06T17:19:42Z","html_url":"https://github.com/Azure/azure-quickstart-templates/pull/1926#discussion_r62360589","pull_request_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/comments/62360589"},"html":{"href":"https://github.com/Azure/azure-quickstart-templates/pull/1926#discussion_r62360589"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926","id":69146382,"html_url":"https://github.com/Azure/azure-quickstart-templates/pull/1926","diff_url":"https://github.com/Azure/azure-quickstart-templates/pull/1926.diff","patch_url":"https://github.com/Azure/azure-quickstart-templates/pull/1926.patch","issue_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/1926","number":1926,"state":"open","locked":false,"title":"Hi Kay.  Here is a pull request to change the user image template to use the New or Existing pattern for VNets.","user":{"login":"Teodelas","id":5385261,"avatar_url":"https://avatars.githubusercontent.com/u/5385261?v=3","gravatar_id":"","url":"https://api.github.com/users/Teodelas","html_url":"https://github.com/Teodelas","followers_url":"https://api.github.com/users/Teodelas/followers","following_url":"https://api.github.com/users/Teodelas/following{/other_user}","gists_url":"https://api.github.com/users/Teodelas/gists{/gist_id}","starred_url":"https://api.github.com/users/Teodelas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teodelas/subscriptions","organizations_url":"https://api.github.com/users/Teodelas/orgs","repos_url":"https://api.github.com/users/Teodelas/repos","events_url":"https://api.github.com/users/Teodelas/events{/privacy}","received_events_url":"https://api.github.com/users/Teodelas/received_events","type":"User","site_admin":false},"body":"### Contributing guide\r\nhttps://github.com/Azure/azure-quickstart-templates/blob/master/1-CONTRIBUTION-GUIDE/README.md\r\n\r\n### Changelog\r\n*\r\n*\r\n*\r\n*\r\n*\r\n\r\n### Description of the change","created_at":"2016-05-06T12:51:44Z","updated_at":"2016-05-06T17:19:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51556768c143308e438e21c17afd86c95c9ae733","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/1926/comments","statuses_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/statuses/ca4fa6709d7324aee3f4925eeecae387a7ebdcf3","head":{"label":"Teodelas:master","ref":"master","sha":"ca4fa6709d7324aee3f4925eeecae387a7ebdcf3","user":{"login":"Teodelas","id":5385261,"avatar_url":"https://avatars.githubusercontent.com/u/5385261?v=3","gravatar_id":"","url":"https://api.github.com/users/Teodelas","html_url":"https://github.com/Teodelas","followers_url":"https://api.github.com/users/Teodelas/followers","following_url":"https://api.github.com/users/Teodelas/following{/other_user}","gists_url":"https://api.github.com/users/Teodelas/gists{/gist_id}","starred_url":"https://api.github.com/users/Teodelas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teodelas/subscriptions","organizations_url":"https://api.github.com/users/Teodelas/orgs","repos_url":"https://api.github.com/users/Teodelas/repos","events_url":"https://api.github.com/users/Teodelas/events{/privacy}","received_events_url":"https://api.github.com/users/Teodelas/received_events","type":"User","site_admin":false},"repo":{"id":40248132,"name":"azure-quickstart-templates","full_name":"Teodelas/azure-quickstart-templates","owner":{"login":"Teodelas","id":5385261,"avatar_url":"https://avatars.githubusercontent.com/u/5385261?v=3","gravatar_id":"","url":"https://api.github.com/users/Teodelas","html_url":"https://github.com/Teodelas","followers_url":"https://api.github.com/users/Teodelas/followers","following_url":"https://api.github.com/users/Teodelas/following{/other_user}","gists_url":"https://api.github.com/users/Teodelas/gists{/gist_id}","starred_url":"https://api.github.com/users/Teodelas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teodelas/subscriptions","organizations_url":"https://api.github.com/users/Teodelas/orgs","repos_url":"https://api.github.com/users/Teodelas/repos","events_url":"https://api.github.com/users/Teodelas/events{/privacy}","received_events_url":"https://api.github.com/users/Teodelas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Teodelas/azure-quickstart-templates","description":"Azure Quickstart Templates","fork":true,"url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates","forks_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/forks","keys_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/teams","hooks_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/hooks","issue_events_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/issues/events{/number}","events_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/events","assignees_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/assignees{/user}","branches_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/branches{/branch}","tags_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/tags","blobs_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/statuses/{sha}","languages_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/languages","stargazers_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/stargazers","contributors_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/contributors","subscribers_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/subscribers","subscription_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/subscription","commits_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/issues/comments{/number}","contents_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/contents/{+path}","compare_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/merges","archive_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/downloads","issues_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/issues{/number}","pulls_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/pulls{/number}","milestones_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/milestones{/number}","notifications_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/labels{/name}","releases_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/releases{/id}","deployments_url":"https://api.github.com/repos/Teodelas/azure-quickstart-templates/deployments","created_at":"2015-08-05T13:56:02Z","updated_at":"2016-04-29T12:34:57Z","pushed_at":"2016-05-06T12:49:38Z","git_url":"git://github.com/Teodelas/azure-quickstart-templates.git","ssh_url":"git@github.com:Teodelas/azure-quickstart-templates.git","clone_url":"https://github.com/Teodelas/azure-quickstart-templates.git","svn_url":"https://github.com/Teodelas/azure-quickstart-templates","homepage":null,"size":55582,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Azure:master","ref":"master","sha":"93b25af52170ecefb5c445faa3fb8ae0bbe8ff06","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":34407651,"name":"azure-quickstart-templates","full_name":"Azure/azure-quickstart-templates","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-quickstart-templates","description":"Azure Quickstart Templates","fork":false,"url":"https://api.github.com/repos/Azure/azure-quickstart-templates","forks_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/forks","keys_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/teams","hooks_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/events","assignees_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/tags","blobs_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/subscription","commits_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/merges","archive_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/downloads","issues_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-quickstart-templates/deployments","created_at":"2015-04-22T18:19:03Z","updated_at":"2016-05-06T16:18:39Z","pushed_at":"2016-05-06T17:18:58Z","git_url":"git://github.com/Azure/azure-quickstart-templates.git","ssh_url":"git@github.com:Azure/azure-quickstart-templates.git","clone_url":"https://github.com/Azure/azure-quickstart-templates.git","svn_url":"https://github.com/Azure/azure-quickstart-templates","homepage":"https://azure.microsoft.com/en-us/documentation/templates","size":61246,"stargazers_count":997,"watchers_count":997,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1361,"mirror_url":null,"open_issues_count":206,"forks":1361,"open_issues":206,"watchers":997,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926"},"html":{"href":"https://github.com/Azure/azure-quickstart-templates/pull/1926"},"issue":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/1926"},"comments":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/issues/1926/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/pulls/1926/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-quickstart-templates/statuses/ca4fa6709d7324aee3f4925eeecae387a7ebdcf3"}}}}