{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/comments/216394910","pull_request_review_id":153865552,"id":216394910,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjM5NDkxMA==","diff_hunk":"@@ -3,14 +3,20 @@\n  *  Licensed under the MIT License. See License.txt in the project root for license information.\n  *--------------------------------------------------------------------------------------------*/\n \n-import { User } from 'azure-arm-website/lib/models';\n+import { AppServicePlan, User } from 'azure-arm-website/lib/models';\n import { BasicAuthenticationCredentials } from 'ms-rest';\n import { addExtensionUserAgent } from 'vscode-azureextensionui';\n import KuduClient from 'vscode-azurekudu';\n import { ArgumentError } from './errors';\n+import { localize } from './localize';\n import { SiteClient } from './SiteClient';\n \n export async function getKuduClient(client: SiteClient): Promise<KuduClient> {\n+    if (!client.kuduHostName) {\n+        const asp: AppServicePlan = await client.getAppServicePlan();\n+        const notSupportedLinux: string = localize('notSupportedLinux', 'This operation is not supported by App Service Plans with kind \"{0}\" and sku tier \"{1}\"', client.kind, asp.sku.tier);","path":"appservice/src/getKuduClient.ts","position":16,"original_position":16,"commit_id":"dcb9c7168e5b97654c0e9fc9c6067bf6e5eec451","original_commit_id":"dcb9c7168e5b97654c0e9fc9c6067bf6e5eec451","user":{"login":"EricJizbaMSFT","id":11282622,"node_id":"MDQ6VXNlcjExMjgyNjIy","avatar_url":"https://avatars2.githubusercontent.com/u/11282622?v=4","gravatar_id":"","url":"https://api.github.com/users/EricJizbaMSFT","html_url":"https://github.com/EricJizbaMSFT","followers_url":"https://api.github.com/users/EricJizbaMSFT/followers","following_url":"https://api.github.com/users/EricJizbaMSFT/following{/other_user}","gists_url":"https://api.github.com/users/EricJizbaMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/EricJizbaMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricJizbaMSFT/subscriptions","organizations_url":"https://api.github.com/users/EricJizbaMSFT/orgs","repos_url":"https://api.github.com/users/EricJizbaMSFT/repos","events_url":"https://api.github.com/users/EricJizbaMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/EricJizbaMSFT/received_events","type":"User","site_admin":false},"body":"Nit: Add a period at the end of the message and change \"Plans\" to \"plans\" (here's an example doc that uses lowercase \"plans\" all over: https://docs.microsoft.com/en-us/azure/app-service/azure-web-sites-web-hosting-plans-in-depth-overview)","created_at":"2018-09-10T16:51:02Z","updated_at":"2018-09-10T16:52:41Z","html_url":"https://github.com/Microsoft/vscode-azuretools/pull/256#discussion_r216394910","pull_request_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/comments/216394910"},"html":{"href":"https://github.com/Microsoft/vscode-azuretools/pull/256#discussion_r216394910"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256","id":214038096,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDM4MDk2","html_url":"https://github.com/Microsoft/vscode-azuretools/pull/256","diff_url":"https://github.com/Microsoft/vscode-azuretools/pull/256.diff","patch_url":"https://github.com/Microsoft/vscode-azuretools/pull/256.patch","issue_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/256","number":256,"state":"open","locked":false,"title":"Check for linuxConsumption plans","user":{"login":"nturinski","id":5290572,"node_id":"MDQ6VXNlcjUyOTA1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/5290572?v=4","gravatar_id":"","url":"https://api.github.com/users/nturinski","html_url":"https://github.com/nturinski","followers_url":"https://api.github.com/users/nturinski/followers","following_url":"https://api.github.com/users/nturinski/following{/other_user}","gists_url":"https://api.github.com/users/nturinski/gists{/gist_id}","starred_url":"https://api.github.com/users/nturinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nturinski/subscriptions","organizations_url":"https://api.github.com/users/nturinski/orgs","repos_url":"https://api.github.com/users/nturinski/repos","events_url":"https://api.github.com/users/nturinski/events{/privacy}","received_events_url":"https://api.github.com/users/nturinski/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-07T20:58:24Z","updated_at":"2018-09-10T16:52:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcfba702688af4d21efdf9c90a859d6fb80d7b14","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256/comments","review_comment_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/256/comments","statuses_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/statuses/dcb9c7168e5b97654c0e9fc9c6067bf6e5eec451","head":{"label":"Microsoft:nat/linuxConsumption","ref":"nat/linuxConsumption","sha":"dcb9c7168e5b97654c0e9fc9c6067bf6e5eec451","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":106758861,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY3NTg4NjE=","name":"vscode-azuretools","full_name":"Microsoft/vscode-azuretools","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vscode-azuretools","description":"Common packages for building Azure extensions for VS Code","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-azuretools","forks_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/deployments","created_at":"2017-10-13T00:27:20Z","updated_at":"2018-09-06T01:00:48Z","pushed_at":"2018-09-10T16:18:11Z","git_url":"git://github.com/Microsoft/vscode-azuretools.git","ssh_url":"git@github.com:Microsoft/vscode-azuretools.git","clone_url":"https://github.com/Microsoft/vscode-azuretools.git","svn_url":"https://github.com/Microsoft/vscode-azuretools","homepage":null,"size":556,"stargazers_count":11,"watchers_count":11,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":13,"open_issues":29,"watchers":11,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"ee1fd96ef7440d2b5e8850a79eb06936d3c7ff8c","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":106758861,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY3NTg4NjE=","name":"vscode-azuretools","full_name":"Microsoft/vscode-azuretools","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vscode-azuretools","description":"Common packages for building Azure extensions for VS Code","fork":false,"url":"https://api.github.com/repos/Microsoft/vscode-azuretools","forks_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/forks","keys_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/teams","hooks_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/events","assignees_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/tags","blobs_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/subscription","commits_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/merges","archive_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/downloads","issues_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vscode-azuretools/deployments","created_at":"2017-10-13T00:27:20Z","updated_at":"2018-09-06T01:00:48Z","pushed_at":"2018-09-10T16:18:11Z","git_url":"git://github.com/Microsoft/vscode-azuretools.git","ssh_url":"git@github.com:Microsoft/vscode-azuretools.git","clone_url":"https://github.com/Microsoft/vscode-azuretools.git","svn_url":"https://github.com/Microsoft/vscode-azuretools","homepage":null,"size":556,"stargazers_count":11,"watchers_count":11,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":13,"open_issues":29,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256"},"html":{"href":"https://github.com/Microsoft/vscode-azuretools/pull/256"},"issue":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/256"},"comments":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/pulls/256/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vscode-azuretools/statuses/dcb9c7168e5b97654c0e9fc9c6067bf6e5eec451"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"EricJizbaMSFT"}}