{"action":"created","comment":{"url":"https://api.github.com/repos/docker/machine/pulls/comments/74838320","id":74838320,"diff_hunk":"@@ -31,15 +31,27 @@ authenticate:\n     Microsoft Azure: To sign in, use a web browser to open the page https://aka.ms/devicelogin.\n     Enter the code [...] to authenticate.\n \n-After authenticating, the driver will remember your credentials up to two weeks.\n+- Browser based authentication **credentials expire in 2 weeks**.\n+- Once your credentials expire, you will be prompted to log in again.\n+- This is practical for daily use; but not recommended for headless applications.\n \n-> **KNOWN ISSUE:** There is a known issue with Azure Active Directory causing stored\n-> credentials to expire within hours rather than 14 days when the user logs in with\n-> personal Microsoft Account (formerly _Live ID_) instead of an Active Directory account.\n-> Currently, there is no ETA for resolution, however in the meanwhile you can\n-> [create an AAD account][aad-docs] and login with that as a workaround.\n+## Authentication (service principal account)\n \n-[aad-docs]: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-create-aad-work-id/\n+1. Create an Azure Service Principal account ([described here][sp]) to get a\n+   `client_id` and `client_secret`","path":"docs/drivers/azure.md","position":27,"original_position":27,"commit_id":"81b76355c63b5b0e8ee0e6e5c093e636ac18f563","original_commit_id":"81b76355c63b5b0e8ee0e6e5c093e636ac18f563","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"@ppadala these are stored on machine's `config.json`. You just need to provide it during `create` command.","created_at":"2016-08-15T21:25:56Z","updated_at":"2016-08-15T21:25:56Z","html_url":"https://github.com/docker/machine/pull/3665#discussion_r74838320","pull_request_url":"https://api.github.com/repos/docker/machine/pulls/3665","_links":{"self":{"href":"https://api.github.com/repos/docker/machine/pulls/comments/74838320"},"html":{"href":"https://github.com/docker/machine/pull/3665#discussion_r74838320"},"pull_request":{"href":"https://api.github.com/repos/docker/machine/pulls/3665"}}},"pull_request":{"url":"https://api.github.com/repos/docker/machine/pulls/3665","id":81365344,"html_url":"https://github.com/docker/machine/pull/3665","diff_url":"https://github.com/docker/machine/pull/3665.diff","patch_url":"https://github.com/docker/machine/pull/3665.patch","issue_url":"https://api.github.com/repos/docker/machine/issues/3665","number":3665,"state":"open","locked":false,"title":"azure: Service principal authentication","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"This adds a new authentication mode for Azure driver using arguments `--azure-client-id` & `--azure-client-secret`, that works like API key credentials in other drivers (called “Service Principal Account” in Azure).\r\n\r\n- allow users to authenticate clients without browser window\r\n  (recommended for headless applications) (fixes #3201, fixes #3493, fixes #3199)\r\n- allow clients to have long-lived credentials (as opposed to current\r\n  model that expires every 2 weeks and requires interactive auth again)\r\n","created_at":"2016-08-15T19:55:48Z","updated_at":"2016-08-15T21:25:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2ae8e95fd926a0e94db3e5b07ee4f8395334b9c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/docker/machine/pulls/3665/commits","review_comments_url":"https://api.github.com/repos/docker/machine/pulls/3665/comments","review_comment_url":"https://api.github.com/repos/docker/machine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/machine/issues/3665/comments","statuses_url":"https://api.github.com/repos/docker/machine/statuses/81b76355c63b5b0e8ee0e6e5c093e636ac18f563","head":{"label":"ahmetalpbalkan:azure-sp","ref":"azure-sp","sha":"81b76355c63b5b0e8ee0e6e5c093e636ac18f563","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"repo":{"id":30435141,"name":"machine","full_name":"ahmetalpbalkan/machine","owner":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahmetalpbalkan/machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/ahmetalpbalkan/machine","forks_url":"https://api.github.com/repos/ahmetalpbalkan/machine/forks","keys_url":"https://api.github.com/repos/ahmetalpbalkan/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahmetalpbalkan/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahmetalpbalkan/machine/teams","hooks_url":"https://api.github.com/repos/ahmetalpbalkan/machine/hooks","issue_events_url":"https://api.github.com/repos/ahmetalpbalkan/machine/issues/events{/number}","events_url":"https://api.github.com/repos/ahmetalpbalkan/machine/events","assignees_url":"https://api.github.com/repos/ahmetalpbalkan/machine/assignees{/user}","branches_url":"https://api.github.com/repos/ahmetalpbalkan/machine/branches{/branch}","tags_url":"https://api.github.com/repos/ahmetalpbalkan/machine/tags","blobs_url":"https://api.github.com/repos/ahmetalpbalkan/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahmetalpbalkan/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahmetalpbalkan/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahmetalpbalkan/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahmetalpbalkan/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/ahmetalpbalkan/machine/languages","stargazers_url":"https://api.github.com/repos/ahmetalpbalkan/machine/stargazers","contributors_url":"https://api.github.com/repos/ahmetalpbalkan/machine/contributors","subscribers_url":"https://api.github.com/repos/ahmetalpbalkan/machine/subscribers","subscription_url":"https://api.github.com/repos/ahmetalpbalkan/machine/subscription","commits_url":"https://api.github.com/repos/ahmetalpbalkan/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahmetalpbalkan/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahmetalpbalkan/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahmetalpbalkan/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahmetalpbalkan/machine/contents/{+path}","compare_url":"https://api.github.com/repos/ahmetalpbalkan/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahmetalpbalkan/machine/merges","archive_url":"https://api.github.com/repos/ahmetalpbalkan/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahmetalpbalkan/machine/downloads","issues_url":"https://api.github.com/repos/ahmetalpbalkan/machine/issues{/number}","pulls_url":"https://api.github.com/repos/ahmetalpbalkan/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/ahmetalpbalkan/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/ahmetalpbalkan/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahmetalpbalkan/machine/labels{/name}","releases_url":"https://api.github.com/repos/ahmetalpbalkan/machine/releases{/id}","deployments_url":"https://api.github.com/repos/ahmetalpbalkan/machine/deployments","created_at":"2015-02-06T22:06:21Z","updated_at":"2016-06-13T11:04:19Z","pushed_at":"2016-08-15T21:25:00Z","git_url":"git://github.com/ahmetalpbalkan/machine.git","ssh_url":"git@github.com:ahmetalpbalkan/machine.git","clone_url":"https://github.com/ahmetalpbalkan/machine.git","svn_url":"https://github.com/ahmetalpbalkan/machine","homepage":null,"size":18327,"stargazers_count":1,"watchers_count":1,"language":"Go","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":1,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"6143a3e36838562ae3c82dcc812da2b21cf10413","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":27494663,"name":"machine","full_name":"docker/machine","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/machine","description":"Machine management for a container-centric world","fork":false,"url":"https://api.github.com/repos/docker/machine","forks_url":"https://api.github.com/repos/docker/machine/forks","keys_url":"https://api.github.com/repos/docker/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/machine/teams","hooks_url":"https://api.github.com/repos/docker/machine/hooks","issue_events_url":"https://api.github.com/repos/docker/machine/issues/events{/number}","events_url":"https://api.github.com/repos/docker/machine/events","assignees_url":"https://api.github.com/repos/docker/machine/assignees{/user}","branches_url":"https://api.github.com/repos/docker/machine/branches{/branch}","tags_url":"https://api.github.com/repos/docker/machine/tags","blobs_url":"https://api.github.com/repos/docker/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/machine/languages","stargazers_url":"https://api.github.com/repos/docker/machine/stargazers","contributors_url":"https://api.github.com/repos/docker/machine/contributors","subscribers_url":"https://api.github.com/repos/docker/machine/subscribers","subscription_url":"https://api.github.com/repos/docker/machine/subscription","commits_url":"https://api.github.com/repos/docker/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/machine/contents/{+path}","compare_url":"https://api.github.com/repos/docker/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/machine/merges","archive_url":"https://api.github.com/repos/docker/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/machine/downloads","issues_url":"https://api.github.com/repos/docker/machine/issues{/number}","pulls_url":"https://api.github.com/repos/docker/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/machine/labels{/name}","releases_url":"https://api.github.com/repos/docker/machine/releases{/id}","deployments_url":"https://api.github.com/repos/docker/machine/deployments","created_at":"2014-12-03T15:52:06Z","updated_at":"2016-08-15T21:14:54Z","pushed_at":"2016-08-15T21:25:00Z","git_url":"git://github.com/docker/machine.git","ssh_url":"git@github.com:docker/machine.git","clone_url":"https://github.com/docker/machine.git","svn_url":"https://github.com/docker/machine","homepage":"https://docs.docker.com/machine/","size":41916,"stargazers_count":3438,"watchers_count":3438,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":915,"mirror_url":null,"open_issues_count":527,"forks":915,"open_issues":527,"watchers":3438,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/machine/pulls/3665"},"html":{"href":"https://github.com/docker/machine/pull/3665"},"issue":{"href":"https://api.github.com/repos/docker/machine/issues/3665"},"comments":{"href":"https://api.github.com/repos/docker/machine/issues/3665/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/machine/pulls/3665/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/machine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/machine/pulls/3665/commits"},"statuses":{"href":"https://api.github.com/repos/docker/machine/statuses/81b76355c63b5b0e8ee0e6e5c093e636ac18f563"}}}}
{"actor":{"display_login":"ahmetalpbalkan"}}