{"action":"created","comment":{"url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/comments/158353924","pull_request_review_id":85152792,"id":158353924,"diff_hunk":"@@ -187,9 +202,9 @@ print_item nic = network_client.network_interfaces.create_or_update(\n ```\n \n <a id=\"vm\"></a>\n-### Create a virtual machine with system identity\n+### Create a virtual machine with system or user assigned identity\n Now, we will set virtual machine parameters like `OSProfile`, `StorageProfile`, `OSDisk`, `HardwareProfile` & `NetworkProfile` as usual. We will\n-also set the `VirtualMachineIdentity` to be `SystemAssigned` specifically for creating managed service identity VM and then create the virtual machine.\n+also set the `VirtualMachineIdentity` to be `SystemAssigned`, `UserAssigned` or `SystemAssignedUserAssigned` for a creating managed service identity VM and then create the virtual machine.","path":"README.md","position":134,"original_position":134,"commit_id":"29ece424403ac78e75c580029c21deb2cd7724c9","original_commit_id":"29ece424403ac78e75c580029c21deb2cd7724c9","user":{"login":"sarangan12","id":602456,"avatar_url":"https://avatars1.githubusercontent.com/u/602456?v=4","gravatar_id":"","url":"https://api.github.com/users/sarangan12","html_url":"https://github.com/sarangan12","followers_url":"https://api.github.com/users/sarangan12/followers","following_url":"https://api.github.com/users/sarangan12/following{/other_user}","gists_url":"https://api.github.com/users/sarangan12/gists{/gist_id}","starred_url":"https://api.github.com/users/sarangan12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarangan12/subscriptions","organizations_url":"https://api.github.com/users/sarangan12/orgs","repos_url":"https://api.github.com/users/sarangan12/repos","events_url":"https://api.github.com/users/sarangan12/events{/privacy}","received_events_url":"https://api.github.com/users/sarangan12/received_events","type":"User","site_admin":false},"body":"for 'a' creating??","created_at":"2017-12-21T19:03:04Z","updated_at":"2017-12-21T19:04:09Z","html_url":"https://github.com/Azure-Samples/compute-ruby-msi-vm/pull/4#discussion_r158353924","pull_request_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/comments/158353924"},"html":{"href":"https://github.com/Azure-Samples/compute-ruby-msi-vm/pull/4#discussion_r158353924"},"pull_request":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4","id":159534255,"html_url":"https://github.com/Azure-Samples/compute-ruby-msi-vm/pull/4","diff_url":"https://github.com/Azure-Samples/compute-ruby-msi-vm/pull/4.diff","patch_url":"https://github.com/Azure-Samples/compute-ruby-msi-vm/pull/4.patch","issue_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/issues/4","number":4,"state":"open","locked":false,"title":"Updates to sample to include user assigned identity","user":{"login":"veronicagg","id":17714137,"avatar_url":"https://avatars2.githubusercontent.com/u/17714137?v=4","gravatar_id":"","url":"https://api.github.com/users/veronicagg","html_url":"https://github.com/veronicagg","followers_url":"https://api.github.com/users/veronicagg/followers","following_url":"https://api.github.com/users/veronicagg/following{/other_user}","gists_url":"https://api.github.com/users/veronicagg/gists{/gist_id}","starred_url":"https://api.github.com/users/veronicagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronicagg/subscriptions","organizations_url":"https://api.github.com/users/veronicagg/orgs","repos_url":"https://api.github.com/users/veronicagg/repos","events_url":"https://api.github.com/users/veronicagg/events{/privacy}","received_events_url":"https://api.github.com/users/veronicagg/received_events","type":"User","site_admin":false},"body":"Updating the sample to include user assigned identity. \r\nThis sample is equivalent to the python one https://github.com/Azure-Samples/compute-python-msi-vm\r\nDo not merge - still pending full verification.","created_at":"2017-12-20T22:36:10Z","updated_at":"2017-12-21T19:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2350dd685bda0df18b7d69b9dc2e4a75a0f534c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/issues/4/comments","statuses_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/statuses/29ece424403ac78e75c580029c21deb2cd7724c9","head":{"label":"veronicagg:user-assigned-update","ref":"user-assigned-update","sha":"29ece424403ac78e75c580029c21deb2cd7724c9","user":{"login":"veronicagg","id":17714137,"avatar_url":"https://avatars2.githubusercontent.com/u/17714137?v=4","gravatar_id":"","url":"https://api.github.com/users/veronicagg","html_url":"https://github.com/veronicagg","followers_url":"https://api.github.com/users/veronicagg/followers","following_url":"https://api.github.com/users/veronicagg/following{/other_user}","gists_url":"https://api.github.com/users/veronicagg/gists{/gist_id}","starred_url":"https://api.github.com/users/veronicagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronicagg/subscriptions","organizations_url":"https://api.github.com/users/veronicagg/orgs","repos_url":"https://api.github.com/users/veronicagg/repos","events_url":"https://api.github.com/users/veronicagg/events{/privacy}","received_events_url":"https://api.github.com/users/veronicagg/received_events","type":"User","site_admin":false},"repo":{"id":113507320,"name":"compute-ruby-msi-vm","full_name":"veronicagg/compute-ruby-msi-vm","owner":{"login":"veronicagg","id":17714137,"avatar_url":"https://avatars2.githubusercontent.com/u/17714137?v=4","gravatar_id":"","url":"https://api.github.com/users/veronicagg","html_url":"https://github.com/veronicagg","followers_url":"https://api.github.com/users/veronicagg/followers","following_url":"https://api.github.com/users/veronicagg/following{/other_user}","gists_url":"https://api.github.com/users/veronicagg/gists{/gist_id}","starred_url":"https://api.github.com/users/veronicagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronicagg/subscriptions","organizations_url":"https://api.github.com/users/veronicagg/orgs","repos_url":"https://api.github.com/users/veronicagg/repos","events_url":"https://api.github.com/users/veronicagg/events{/privacy}","received_events_url":"https://api.github.com/users/veronicagg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/veronicagg/compute-ruby-msi-vm","description":"This sample demonstrates how to create Azure virtual machine with Managed Service Identity Extension using a Ruby client","fork":true,"url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm","forks_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/forks","keys_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/teams","hooks_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/hooks","issue_events_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/issues/events{/number}","events_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/events","assignees_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/assignees{/user}","branches_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/branches{/branch}","tags_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/tags","blobs_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/languages","stargazers_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/stargazers","contributors_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/contributors","subscribers_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/subscribers","subscription_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/subscription","commits_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/contents/{+path}","compare_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/merges","archive_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/downloads","issues_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/issues{/number}","pulls_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/labels{/name}","releases_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/releases{/id}","deployments_url":"https://api.github.com/repos/veronicagg/compute-ruby-msi-vm/deployments","created_at":"2017-12-07T23:04:10Z","updated_at":"2017-12-07T23:04:11Z","pushed_at":"2017-12-21T18:53:22Z","git_url":"git://github.com/veronicagg/compute-ruby-msi-vm.git","ssh_url":"git@github.com:veronicagg/compute-ruby-msi-vm.git","clone_url":"https://github.com/veronicagg/compute-ruby-msi-vm.git","svn_url":"https://github.com/veronicagg/compute-ruby-msi-vm","homepage":"","size":25,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure-Samples:master","ref":"master","sha":"4484ffc65057b23a7d7037c40613b640869e67cf","user":{"login":"Azure-Samples","id":1844662,"avatar_url":"https://avatars2.githubusercontent.com/u/1844662?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure-Samples","html_url":"https://github.com/Azure-Samples","followers_url":"https://api.github.com/users/Azure-Samples/followers","following_url":"https://api.github.com/users/Azure-Samples/following{/other_user}","gists_url":"https://api.github.com/users/Azure-Samples/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure-Samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure-Samples/subscriptions","organizations_url":"https://api.github.com/users/Azure-Samples/orgs","repos_url":"https://api.github.com/users/Azure-Samples/repos","events_url":"https://api.github.com/users/Azure-Samples/events{/privacy}","received_events_url":"https://api.github.com/users/Azure-Samples/received_events","type":"Organization","site_admin":false},"repo":{"id":100969210,"name":"compute-ruby-msi-vm","full_name":"Azure-Samples/compute-ruby-msi-vm","owner":{"login":"Azure-Samples","id":1844662,"avatar_url":"https://avatars2.githubusercontent.com/u/1844662?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure-Samples","html_url":"https://github.com/Azure-Samples","followers_url":"https://api.github.com/users/Azure-Samples/followers","following_url":"https://api.github.com/users/Azure-Samples/following{/other_user}","gists_url":"https://api.github.com/users/Azure-Samples/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure-Samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure-Samples/subscriptions","organizations_url":"https://api.github.com/users/Azure-Samples/orgs","repos_url":"https://api.github.com/users/Azure-Samples/repos","events_url":"https://api.github.com/users/Azure-Samples/events{/privacy}","received_events_url":"https://api.github.com/users/Azure-Samples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure-Samples/compute-ruby-msi-vm","description":"This sample demonstrates how to create Azure virtual machine with Managed Service Identity Extension using a Ruby client","fork":false,"url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm","forks_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/forks","keys_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/teams","hooks_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/hooks","issue_events_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/issues/events{/number}","events_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/events","assignees_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/assignees{/user}","branches_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/branches{/branch}","tags_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/tags","blobs_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/languages","stargazers_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/stargazers","contributors_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/contributors","subscribers_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/subscribers","subscription_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/subscription","commits_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/contents/{+path}","compare_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/merges","archive_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/downloads","issues_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/issues{/number}","pulls_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/labels{/name}","releases_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/releases{/id}","deployments_url":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/deployments","created_at":"2017-08-21T15:58:27Z","updated_at":"2017-09-13T20:50:37Z","pushed_at":"2017-12-21T18:53:23Z","git_url":"git://github.com/Azure-Samples/compute-ruby-msi-vm.git","ssh_url":"git@github.com:Azure-Samples/compute-ruby-msi-vm.git","clone_url":"https://github.com/Azure-Samples/compute-ruby-msi-vm.git","svn_url":"https://github.com/Azure-Samples/compute-ruby-msi-vm","homepage":"","size":23,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4"},"html":{"href":"https://github.com/Azure-Samples/compute-ruby-msi-vm/pull/4"},"issue":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/issues/4"},"comments":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Azure-Samples/compute-ruby-msi-vm/statuses/29ece424403ac78e75c580029c21deb2cd7724c9"}},"author_association":"NONE"}}
{"actor":{"display_login":"sarangan12"}}