{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/183099432","pull_request_review_id":114038038,"id":183099432,"diff_hunk":"@@ -97,6 +97,12 @@ static ContextAutosaveSettings InitializeSessionSettings(IDataStore store, strin\n                     result.Mode = settings.Mode;\n                     result.ContextFile = settings.ContextFile ?? result.ContextFile;\n                 }\n+                else\n+                {\n+                    FileUtilities.EnsureDirectoryExists(profileDirectory);","path":"src/Common/Commands.Common.Authentication/AzureSessionInitializer.cs","position":6,"original_position":15,"commit_id":"e429c1dc5020ff9459ffc2333c46d2d720137c6b","original_commit_id":"c26f24cdbcd01630cd503bcb8141a7a328a71136","user":{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false},"body":"@markcowl updated this so it remains `Process` by default but switches to `CurrentUser` after we are able to write the settings file","created_at":"2018-04-20T16:08:34Z","updated_at":"2018-04-20T16:08:34Z","html_url":"https://github.com/Azure/azure-powershell/pull/6003#discussion_r183099432","pull_request_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/6003","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/comments/183099432"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/6003#discussion_r183099432"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/6003"}},"in_reply_to_id":182936931},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-powershell/pulls/6003","id":182931769,"html_url":"https://github.com/Azure/azure-powershell/pull/6003","diff_url":"https://github.com/Azure/azure-powershell/pull/6003.diff","patch_url":"https://github.com/Azure/azure-powershell/pull/6003.patch","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/6003","number":6003,"state":"open","locked":false,"title":"Enable context autosave by default","user":{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false},"body":"<!-- DO NOT DELETE THIS TEMPLATE -->\r\n\r\n## Description\r\n\r\nFix for issue https://github.com/Azure/azure-powershell/issues/5902\r\n\r\n- Enable context autosave by default\r\n- When the user runs `Connect-AzureRmAccount` with the default (empty) context, populate the context list with _all_ subscriptions in the current tenant\r\n\r\n<!-- Please add a brief description of the changes made in this PR -->\r\n\r\n## Checklist\r\n\r\n- [x] I have read the [_Submitting Changes_](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md)\r\n- [x] 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/preview/CONTRIBUTING.md#updating-the-change-log)\r\n- [ ] The PR does not introduce [breaking changes](https://github.com/Azure/azure-powershell/blob/preview/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)\r\n    - [ ] the cmdlet markdown files were [generated using the `platyPS` module](https://github.com/Azure/azure-powershell/blob/preview/documentation/development-docs/help-generation.md)\r\n","created_at":"2018-04-20T00:26:18Z","updated_at":"2018-04-20T16:08:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d19a7abed28087a13c601944054b8f67ee54fe14","assignee":{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false},"assignees":[{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":556235223,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/needs-revision","name":"needs-revision","color":"fd8c00","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/6003/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-powershell/pulls/6003/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/6003/comments","statuses_url":"https://api.github.com/repos/Azure/azure-powershell/statuses/e429c1dc5020ff9459ffc2333c46d2d720137c6b","head":{"label":"cormacpayne:context-default","ref":"context-default","sha":"e429c1dc5020ff9459ffc2333c46d2d720137c6b","user":{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false},"repo":{"id":64254912,"name":"azure-powershell","full_name":"cormacpayne/azure-powershell","owner":{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cormacpayne/azure-powershell","description":"Microsoft Azure PowerShell","fork":true,"url":"https://api.github.com/repos/cormacpayne/azure-powershell","forks_url":"https://api.github.com/repos/cormacpayne/azure-powershell/forks","keys_url":"https://api.github.com/repos/cormacpayne/azure-powershell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cormacpayne/azure-powershell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cormacpayne/azure-powershell/teams","hooks_url":"https://api.github.com/repos/cormacpayne/azure-powershell/hooks","issue_events_url":"https://api.github.com/repos/cormacpayne/azure-powershell/issues/events{/number}","events_url":"https://api.github.com/repos/cormacpayne/azure-powershell/events","assignees_url":"https://api.github.com/repos/cormacpayne/azure-powershell/assignees{/user}","branches_url":"https://api.github.com/repos/cormacpayne/azure-powershell/branches{/branch}","tags_url":"https://api.github.com/repos/cormacpayne/azure-powershell/tags","blobs_url":"https://api.github.com/repos/cormacpayne/azure-powershell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cormacpayne/azure-powershell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cormacpayne/azure-powershell/git/refs{/sha}","trees_url":"https://api.github.com/repos/cormacpayne/azure-powershell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cormacpayne/azure-powershell/statuses/{sha}","languages_url":"https://api.github.com/repos/cormacpayne/azure-powershell/languages","stargazers_url":"https://api.github.com/repos/cormacpayne/azure-powershell/stargazers","contributors_url":"https://api.github.com/repos/cormacpayne/azure-powershell/contributors","subscribers_url":"https://api.github.com/repos/cormacpayne/azure-powershell/subscribers","subscription_url":"https://api.github.com/repos/cormacpayne/azure-powershell/subscription","commits_url":"https://api.github.com/repos/cormacpayne/azure-powershell/commits{/sha}","git_commits_url":"https://api.github.com/repos/cormacpayne/azure-powershell/git/commits{/sha}","comments_url":"https://api.github.com/repos/cormacpayne/azure-powershell/comments{/number}","issue_comment_url":"https://api.github.com/repos/cormacpayne/azure-powershell/issues/comments{/number}","contents_url":"https://api.github.com/repos/cormacpayne/azure-powershell/contents/{+path}","compare_url":"https://api.github.com/repos/cormacpayne/azure-powershell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cormacpayne/azure-powershell/merges","archive_url":"https://api.github.com/repos/cormacpayne/azure-powershell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cormacpayne/azure-powershell/downloads","issues_url":"https://api.github.com/repos/cormacpayne/azure-powershell/issues{/number}","pulls_url":"https://api.github.com/repos/cormacpayne/azure-powershell/pulls{/number}","milestones_url":"https://api.github.com/repos/cormacpayne/azure-powershell/milestones{/number}","notifications_url":"https://api.github.com/repos/cormacpayne/azure-powershell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cormacpayne/azure-powershell/labels{/name}","releases_url":"https://api.github.com/repos/cormacpayne/azure-powershell/releases{/id}","deployments_url":"https://api.github.com/repos/cormacpayne/azure-powershell/deployments","created_at":"2016-07-26T21:09:37Z","updated_at":"2018-04-20T00:35:46Z","pushed_at":"2018-04-20T16:07:08Z","git_url":"git://github.com/cormacpayne/azure-powershell.git","ssh_url":"git@github.com:cormacpayne/azure-powershell.git","clone_url":"https://github.com/cormacpayne/azure-powershell.git","svn_url":"https://github.com/cormacpayne/azure-powershell","homepage":null,"size":387075,"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":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"preview"}},"base":{"label":"Azure:preview","ref":"preview","sha":"dec9bf4e54ac620d184721b29fe75eef6e709fab","user":{"login":"Azure","id":6844498,"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,"name":"azure-powershell","full_name":"Azure/azure-powershell","owner":{"login":"Azure","id":6844498,"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},"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":"2018-04-20T08:40:56Z","pushed_at":"2018-04-20T16:07:09Z","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":391934,"stargazers_count":981,"watchers_count":981,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1025,"mirror_url":null,"archived":false,"open_issues_count":614,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1025,"open_issues":614,"watchers":981,"default_branch":"preview"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/6003"},"html":{"href":"https://github.com/Azure/azure-powershell/pull/6003"},"issue":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/6003"},"comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/issues/6003/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-powershell/pulls/6003/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/6003/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-powershell/statuses/e429c1dc5020ff9459ffc2333c46d2d720137c6b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"cormacpayne"}}