{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/71601227","id":71601227,"diff_hunk":"@@ -0,0 +1,80 @@\n+﻿//\n+// Copyright Microsoft Corporation\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+// http://www.apache.org/licenses/LICENSE-2.0\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+// ----------------------------------------------------------------------------------\n+\n+using System;\n+using System.Management.Automation;\n+using System.Net;\n+using System.Text.RegularExpressions;\n+using Microsoft.Azure.Commands.Media.Common;\n+using Microsoft.Azure.Commands.Media.Models;\n+using Microsoft.Azure.Management.Media;\n+using Microsoft.Azure.Management.Media.Models;\n+\n+namespace Microsoft.Azure.Commands.Media.ServiceKey\n+{\n+    /// <summary>\n+    /// Regenerate the key of media service.\n+    /// </summary>\n+    [Cmdlet(VerbsCommon.Set, MediaServiceKeyNounStr), OutputType(typeof(PSServiceKey))]","path":"src/ResourceManager/Media/Commands.Media/ServiceKey/SetAzureRmMediaServiceKey.cs","position":28,"original_position":28,"commit_id":"b1315b05d214bf7b5339b991a5201f184824a3cf","original_commit_id":"9d6cbe23eca9f095a1da7384bd4d6a4d4b89516b","user":{"login":"fredericky","id":1081234,"avatar_url":"https://avatars.githubusercontent.com/u/1081234?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericky","html_url":"https://github.com/fredericky","followers_url":"https://api.github.com/users/fredericky/followers","following_url":"https://api.github.com/users/fredericky/following{/other_user}","gists_url":"https://api.github.com/users/fredericky/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericky/subscriptions","organizations_url":"https://api.github.com/users/fredericky/orgs","repos_url":"https://api.github.com/users/fredericky/repos","events_url":"https://api.github.com/users/fredericky/events{/privacy}","received_events_url":"https://api.github.com/users/fredericky/received_events","type":"User","site_admin":false},"body":"fixing.","created_at":"2016-07-20T20:33:48Z","updated_at":"2016-07-20T20:33:48Z","html_url":"https://github.com/Azure/azure-powershell/pull/2577#discussion_r71601227","pull_request_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2577","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/71601227"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/2577#discussion_r71601227"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/2577"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2577","id":76532960,"html_url":"https://github.com/Azure/azure-powershell/pull/2577","diff_url":"https://github.com/Azure/azure-powershell/pull/2577.diff","patch_url":"https://github.com/Azure/azure-powershell/pull/2577.patch","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/2577","number":2577,"state":"open","locked":false,"title":"Add PowerShell commands support for Azure Media Services.","user":{"login":"fredericky","id":1081234,"avatar_url":"https://avatars.githubusercontent.com/u/1081234?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericky","html_url":"https://github.com/fredericky","followers_url":"https://api.github.com/users/fredericky/followers","following_url":"https://api.github.com/users/fredericky/following{/other_user}","gists_url":"https://api.github.com/users/fredericky/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericky/subscriptions","organizations_url":"https://api.github.com/users/fredericky/orgs","repos_url":"https://api.github.com/users/fredericky/repos","events_url":"https://api.github.com/users/fredericky/events{/privacy}","received_events_url":"https://api.github.com/users/fredericky/received_events","type":"User","site_admin":false},"body":"- CRUD operations of media service account.\r\n- List and regenerate the keys of media service account.\r\n- Synchronize storage account keys for a storage account associated with the media service account.\r\n\r\nScenarioTests:\r\nDone\r\n\r\nUT:\r\nDone (Playback mode of ScenarioTests)\r\n\r\nValidation of sync storage account keys:\r\n1. upload an asset to a media service account.\r\n2. regenerate two keys of storage account and the above asset cannot be deleted because of different storage account keys.\r\n3. run the sync cmdlet and after a while the above asset can be deleted.","created_at":"2016-07-07T03:00:01Z","updated_at":"2016-07-20T20:33:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c97f25a27b529d635543da98d9c23299b5e176","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2577/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/2577/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/2577/comments","statuses_url":"https://api.github.com/repos/Azure/azure-powershell/statuses/b1315b05d214bf7b5339b991a5201f184824a3cf","head":{"label":"fredericky:dev","ref":"dev","sha":"b1315b05d214bf7b5339b991a5201f184824a3cf","user":{"login":"fredericky","id":1081234,"avatar_url":"https://avatars.githubusercontent.com/u/1081234?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericky","html_url":"https://github.com/fredericky","followers_url":"https://api.github.com/users/fredericky/followers","following_url":"https://api.github.com/users/fredericky/following{/other_user}","gists_url":"https://api.github.com/users/fredericky/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericky/subscriptions","organizations_url":"https://api.github.com/users/fredericky/orgs","repos_url":"https://api.github.com/users/fredericky/repos","events_url":"https://api.github.com/users/fredericky/events{/privacy}","received_events_url":"https://api.github.com/users/fredericky/received_events","type":"User","site_admin":false},"repo":{"id":62764502,"name":"azure-powershell","full_name":"fredericky/azure-powershell","owner":{"login":"fredericky","id":1081234,"avatar_url":"https://avatars.githubusercontent.com/u/1081234?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericky","html_url":"https://github.com/fredericky","followers_url":"https://api.github.com/users/fredericky/followers","following_url":"https://api.github.com/users/fredericky/following{/other_user}","gists_url":"https://api.github.com/users/fredericky/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericky/subscriptions","organizations_url":"https://api.github.com/users/fredericky/orgs","repos_url":"https://api.github.com/users/fredericky/repos","events_url":"https://api.github.com/users/fredericky/events{/privacy}","received_events_url":"https://api.github.com/users/fredericky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fredericky/azure-powershell","description":"Microsoft Azure PowerShell","fork":true,"url":"https://api.github.com/repos/fredericky/azure-powershell","forks_url":"https://api.github.com/repos/fredericky/azure-powershell/forks","keys_url":"https://api.github.com/repos/fredericky/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fredericky/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fredericky/azure-powershell/teams","hooks_url":"https://api.github.com/repos/fredericky/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/fredericky/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/fredericky/azure-powershell/events","assignees_url":"https://api.github.com/repos/fredericky/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/fredericky/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/fredericky/azure-powershell/tags","blobs_url":"https://api.github.com/repos/fredericky/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fredericky/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fredericky/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/fredericky/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fredericky/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/fredericky/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/fredericky/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/fredericky/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/fredericky/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/fredericky/azure-powershell/subscription","commits_url":"https://api.github.com/repos/fredericky/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/fredericky/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/fredericky/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/fredericky/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/fredericky/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/fredericky/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fredericky/azure-powershell/merges","archive_url":"https://api.github.com/repos/fredericky/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fredericky/azure-powershell/downloads","issues_url":"https://api.github.com/repos/fredericky/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/fredericky/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/fredericky/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/fredericky/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fredericky/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/fredericky/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/fredericky/azure-powershell/deployments","created_at":"2016-07-07T01:20:57Z","updated_at":"2016-07-07T01:21:25Z","pushed_at":"2016-07-19T23:31:58Z","git_url":"git://github.com/fredericky/azure-powershell.git","ssh_url":"git@github.com:fredericky/azure-powershell.git","clone_url":"https://github.com/fredericky/azure-powershell.git","svn_url":"https://github.com/fredericky/azure-powershell","homepage":null,"size":212487,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"7d68056e2854bc7fa0818869909e39faa7e2c53a","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":23891194,"name":"azure-powershell","full_name":"Azure/azure-powershell","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-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":"2016-07-19T08:48:01Z","pushed_at":"2016-07-20T19:11:25Z","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":314409,"stargazers_count":505,"watchers_count":505,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":480,"mirror_url":null,"open_issues_count":433,"forks":480,"open_issues":433,"watchers":505,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/2577"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/2577"},"issue":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/2577"},"comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/2577/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/2577/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/2577/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-powershell/statuses/b1315b05d214bf7b5339b991a5201f184824a3cf"}}}}
{"actor":{"display_login":"fredericky"}}