{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/245436907","pull_request_review_id":189549776,"id":245436907,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTQzNjkwNw==","diff_hunk":"@@ -65,6 +66,25 @@ public class RestartAzureVMCommand : VirtualMachineBaseCmdlet\n         [Parameter(\n            Mandatory = true,\n            Position = 1,\n+           ParameterSetName = RestartResourceGroupNameParameterSet,\n+           ValueFromPipelineByPropertyName = true,\n+           HelpMessage = \"The virtual machine name.\")]\n+        [Parameter(\n+           Mandatory = true,\n+           Position = 1,\n+           ParameterSetName = PerformMaintenanceResourceGroupNameParameterSet,\n+           ValueFromPipelineByPropertyName = true,\n+           HelpMessage = \"The virtual machine name.\")]\n+        [Parameter(\n+           Mandatory = false,\n+           Position = 1,\n+           ParameterSetName = RestartIdParameterSet,","path":"src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Action/RestartAzureVMCommand.cs","position":24,"original_position":24,"commit_id":"360e65a9450bed66fa0344743312f37b399eeb0f","original_commit_id":"360e65a9450bed66fa0344743312f37b399eeb0f","user":{"login":"maddieclayton","id":8137559,"node_id":"MDQ6VXNlcjgxMzc1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8137559?v=4","gravatar_id":"","url":"https://api.github.com/users/maddieclayton","html_url":"https://github.com/maddieclayton","followers_url":"https://api.github.com/users/maddieclayton/followers","following_url":"https://api.github.com/users/maddieclayton/following{/other_user}","gists_url":"https://api.github.com/users/maddieclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/maddieclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddieclayton/subscriptions","organizations_url":"https://api.github.com/users/maddieclayton/orgs","repos_url":"https://api.github.com/users/maddieclayton/repos","events_url":"https://api.github.com/users/maddieclayton/events{/privacy}","received_events_url":"https://api.github.com/users/maddieclayton/received_events","type":"User","site_admin":false},"body":"It was originally in all parameter sets, all this is doing is making it optional in id parameter sets (check out the help files)","created_at":"2019-01-04T22:22:07Z","updated_at":"2019-01-04T22:22:08Z","html_url":"https://github.com/Azure/azure-powershell/pull/8233#discussion_r245436907","pull_request_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/245436907"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/8233#discussion_r245436907"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233"}},"in_reply_to_id":245434692},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233","id":242143656,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTQzNjU2","html_url":"https://github.com/Azure/azure-powershell/pull/8233","diff_url":"https://github.com/Azure/azure-powershell/pull/8233.diff","patch_url":"https://github.com/Azure/azure-powershell/pull/8233.patch","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/8233","number":8233,"state":"open","locked":false,"title":"Make name optional in Id parameter set for Compute","user":{"login":"maddieclayton","id":8137559,"node_id":"MDQ6VXNlcjgxMzc1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8137559?v=4","gravatar_id":"","url":"https://api.github.com/users/maddieclayton","html_url":"https://github.com/maddieclayton","followers_url":"https://api.github.com/users/maddieclayton/followers","following_url":"https://api.github.com/users/maddieclayton/following{/other_user}","gists_url":"https://api.github.com/users/maddieclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/maddieclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddieclayton/subscriptions","organizations_url":"https://api.github.com/users/maddieclayton/orgs","repos_url":"https://api.github.com/users/maddieclayton/repos","events_url":"https://api.github.com/users/maddieclayton/events{/privacy}","received_events_url":"https://api.github.com/users/maddieclayton/received_events","type":"User","site_admin":false},"body":"<!-- DO NOT DELETE THIS TEMPLATE -->\r\n\r\n## Description\r\n\r\n<!-- Please add a brief description of the changes made in this PR -->\r\nhttps://github.com/Azure/azure-powershell/issues/4542\r\n## Checklist\r\n\r\n- [ ] I have read the [_Submitting Changes_](https://github.com/Azure/azure-powershell/blob/master/CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](https://github.com/Azure/azure-powershell/blob/master/CONTRIBUTING.md)\r\n- [ ] The title of the PR is clear and informative\r\n- [ ] The appropriate [change log has been updated](https://github.com/Azure/azure-powershell/blob/master/CONTRIBUTING.md#updating-the-change-log)\r\n- [ ] The PR does not introduce [breaking changes](https://github.com/Azure/azure-powershell/blob/master/documentation/breaking-changes/breaking-changes-definition.md)\r\n- [ ] If applicable, the changes made in the PR have proper test coverage\r\n- [ ] For public API changes to cmdlets:\r\n    - [ ] the changes have gone through a [cmdlet design review](https://github.com/Azure/azure-powershell-cmdlet-review-pr) (Microsoft internal partners only)\r\n    - [ ] the cmdlet markdown files were [generated using the `platyPS` module](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/help-generation.md)\r\n","created_at":"2019-01-03T23:56:32Z","updated_at":"2019-01-04T22:22:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75b2e21e291054de4b6b11350cc30569dc97a5ed","assignee":{"login":"huangpf","id":3858524,"node_id":"MDQ6VXNlcjM4NTg1MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3858524?v=4","gravatar_id":"","url":"https://api.github.com/users/huangpf","html_url":"https://github.com/huangpf","followers_url":"https://api.github.com/users/huangpf/followers","following_url":"https://api.github.com/users/huangpf/following{/other_user}","gists_url":"https://api.github.com/users/huangpf/gists{/gist_id}","starred_url":"https://api.github.com/users/huangpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangpf/subscriptions","organizations_url":"https://api.github.com/users/huangpf/orgs","repos_url":"https://api.github.com/users/huangpf/repos","events_url":"https://api.github.com/users/huangpf/events{/privacy}","received_events_url":"https://api.github.com/users/huangpf/received_events","type":"User","site_admin":false},"assignees":[{"login":"huangpf","id":3858524,"node_id":"MDQ6VXNlcjM4NTg1MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3858524?v=4","gravatar_id":"","url":"https://api.github.com/users/huangpf","html_url":"https://github.com/huangpf","followers_url":"https://api.github.com/users/huangpf/followers","following_url":"https://api.github.com/users/huangpf/following{/other_user}","gists_url":"https://api.github.com/users/huangpf/gists{/gist_id}","starred_url":"https://api.github.com/users/huangpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangpf/subscriptions","organizations_url":"https://api.github.com/users/huangpf/orgs","repos_url":"https://api.github.com/users/huangpf/repos","events_url":"https://api.github.com/users/huangpf/events{/privacy}","received_events_url":"https://api.github.com/users/huangpf/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1056158818,"node_id":"MDU6TGFiZWwxMDU2MTU4ODE4","url":"https://api.github.com/repos/Azure/azure-powershell/labels/needs-review","name":"needs-review","color":"fbcfff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/8233/comments","statuses_url":"https://api.github.com/repos/Azure/azure-powershell/statuses/360e65a9450bed66fa0344743312f37b399eeb0f","head":{"label":"maddieclayton:vmnameps","ref":"vmnameps","sha":"360e65a9450bed66fa0344743312f37b399eeb0f","user":{"login":"maddieclayton","id":8137559,"node_id":"MDQ6VXNlcjgxMzc1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8137559?v=4","gravatar_id":"","url":"https://api.github.com/users/maddieclayton","html_url":"https://github.com/maddieclayton","followers_url":"https://api.github.com/users/maddieclayton/followers","following_url":"https://api.github.com/users/maddieclayton/following{/other_user}","gists_url":"https://api.github.com/users/maddieclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/maddieclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddieclayton/subscriptions","organizations_url":"https://api.github.com/users/maddieclayton/orgs","repos_url":"https://api.github.com/users/maddieclayton/repos","events_url":"https://api.github.com/users/maddieclayton/events{/privacy}","received_events_url":"https://api.github.com/users/maddieclayton/received_events","type":"User","site_admin":false},"repo":{"id":101819271,"node_id":"MDEwOlJlcG9zaXRvcnkxMDE4MTkyNzE=","name":"azure-powershell","full_name":"maddieclayton/azure-powershell","private":false,"owner":{"login":"maddieclayton","id":8137559,"node_id":"MDQ6VXNlcjgxMzc1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/8137559?v=4","gravatar_id":"","url":"https://api.github.com/users/maddieclayton","html_url":"https://github.com/maddieclayton","followers_url":"https://api.github.com/users/maddieclayton/followers","following_url":"https://api.github.com/users/maddieclayton/following{/other_user}","gists_url":"https://api.github.com/users/maddieclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/maddieclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddieclayton/subscriptions","organizations_url":"https://api.github.com/users/maddieclayton/orgs","repos_url":"https://api.github.com/users/maddieclayton/repos","events_url":"https://api.github.com/users/maddieclayton/events{/privacy}","received_events_url":"https://api.github.com/users/maddieclayton/received_events","type":"User","site_admin":false},"html_url":"https://github.com/maddieclayton/azure-powershell","description":"Microsoft Azure PowerShell","fork":true,"url":"https://api.github.com/repos/maddieclayton/azure-powershell","forks_url":"https://api.github.com/repos/maddieclayton/azure-powershell/forks","keys_url":"https://api.github.com/repos/maddieclayton/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maddieclayton/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maddieclayton/azure-powershell/teams","hooks_url":"https://api.github.com/repos/maddieclayton/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/maddieclayton/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/maddieclayton/azure-powershell/events","assignees_url":"https://api.github.com/repos/maddieclayton/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/maddieclayton/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/maddieclayton/azure-powershell/tags","blobs_url":"https://api.github.com/repos/maddieclayton/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maddieclayton/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maddieclayton/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/maddieclayton/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maddieclayton/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/maddieclayton/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/maddieclayton/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/maddieclayton/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/maddieclayton/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/maddieclayton/azure-powershell/subscription","commits_url":"https://api.github.com/repos/maddieclayton/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/maddieclayton/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/maddieclayton/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/maddieclayton/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/maddieclayton/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/maddieclayton/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maddieclayton/azure-powershell/merges","archive_url":"https://api.github.com/repos/maddieclayton/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maddieclayton/azure-powershell/downloads","issues_url":"https://api.github.com/repos/maddieclayton/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/maddieclayton/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/maddieclayton/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/maddieclayton/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maddieclayton/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/maddieclayton/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/maddieclayton/azure-powershell/deployments","created_at":"2017-08-30T00:25:31Z","updated_at":"2019-01-03T18:37:39Z","pushed_at":"2019-01-04T22:04:18Z","git_url":"git://github.com/maddieclayton/azure-powershell.git","ssh_url":"git@github.com:maddieclayton/azure-powershell.git","clone_url":"https://github.com/maddieclayton/azure-powershell.git","svn_url":"https://github.com/maddieclayton/azure-powershell","homepage":null,"size":810550,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"b74a798d09e677a2efc05f9df51f02e3565eea5f","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":23891194,"node_id":"MDEwOlJlcG9zaXRvcnkyMzg5MTE5NA==","name":"azure-powershell","full_name":"Azure/azure-powershell","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-powershell","description":"Microsoft Azure PowerShell","fork":false,"url":"https://api.github.com/repos/Azure/azure-powershell","forks_url":"https://api.github.com/repos/Azure/azure-powershell/forks","keys_url":"https://api.github.com/repos/Azure/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-powershell/teams","hooks_url":"https://api.github.com/repos/Azure/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-powershell/events","assignees_url":"https://api.github.com/repos/Azure/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-powershell/tags","blobs_url":"https://api.github.com/repos/Azure/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-powershell/subscription","commits_url":"https://api.github.com/repos/Azure/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-powershell/merges","archive_url":"https://api.github.com/repos/Azure/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-powershell/downloads","issues_url":"https://api.github.com/repos/Azure/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-powershell/deployments","created_at":"2014-09-10T20:35:18Z","updated_at":"2019-01-04T21:40:12Z","pushed_at":"2019-01-04T22:04:20Z","git_url":"git://github.com/Azure/azure-powershell.git","ssh_url":"git@github.com:Azure/azure-powershell.git","clone_url":"https://github.com/Azure/azure-powershell.git","svn_url":"https://github.com/Azure/azure-powershell","homepage":null,"size":832999,"stargazers_count":1268,"watchers_count":1268,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1337,"mirror_url":null,"archived":false,"open_issues_count":704,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1337,"open_issues":704,"watchers":1268,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/8233"},"issue":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/8233"},"comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/8233/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/8233/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-powershell/statuses/360e65a9450bed66fa0344743312f37b399eeb0f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"maddieclayton"}}