{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/4746","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/4746/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/4746/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/4746/events","html_url":"https://github.com/Azure/azure-cli/issues/4746","id":268181864,"number":4746,"title":"Getting \"permission denied\" during az aks get-credentials","user":{"login":"artisticcheese","id":13176884,"avatar_url":"https://avatars0.githubusercontent.com/u/13176884?v=4","gravatar_id":"","url":"https://api.github.com/users/artisticcheese","html_url":"https://github.com/artisticcheese","followers_url":"https://api.github.com/users/artisticcheese/followers","following_url":"https://api.github.com/users/artisticcheese/following{/other_user}","gists_url":"https://api.github.com/users/artisticcheese/gists{/gist_id}","starred_url":"https://api.github.com/users/artisticcheese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artisticcheese/subscriptions","organizations_url":"https://api.github.com/users/artisticcheese/orgs","repos_url":"https://api.github.com/users/artisticcheese/repos","events_url":"https://api.github.com/users/artisticcheese/events{/privacy}","received_events_url":"https://api.github.com/users/artisticcheese/received_events","type":"User","site_admin":false},"labels":[{"id":468699060,"url":"https://api.github.com/repos/Azure/azure-cli/labels/ACS","name":"ACS","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"mboersma","id":73019,"avatar_url":"https://avatars0.githubusercontent.com/u/73019?v=4","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false},"assignees":[{"login":"mboersma","id":73019,"avatar_url":"https://avatars0.githubusercontent.com/u/73019?v=4","gravatar_id":"","url":"https://api.github.com/users/mboersma","html_url":"https://github.com/mboersma","followers_url":"https://api.github.com/users/mboersma/followers","following_url":"https://api.github.com/users/mboersma/following{/other_user}","gists_url":"https://api.github.com/users/mboersma/gists{/gist_id}","starred_url":"https://api.github.com/users/mboersma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboersma/subscriptions","organizations_url":"https://api.github.com/users/mboersma/orgs","repos_url":"https://api.github.com/users/mboersma/repos","events_url":"https://api.github.com/users/mboersma/events{/privacy}","received_events_url":"https://api.github.com/users/mboersma/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-cli/milestones/28","html_url":"https://github.com/Azure/azure-cli/milestone/28","labels_url":"https://api.github.com/repos/Azure/azure-cli/milestones/28/labels","id":2763816,"number":28,"title":"Sprint 26- Connect()","description":"Release will be on 11/15 in time for Connect()","creator":{"login":"mayurid","id":5912228,"avatar_url":"https://avatars2.githubusercontent.com/u/5912228?v=4","gravatar_id":"","url":"https://api.github.com/users/mayurid","html_url":"https://github.com/mayurid","followers_url":"https://api.github.com/users/mayurid/followers","following_url":"https://api.github.com/users/mayurid/following{/other_user}","gists_url":"https://api.github.com/users/mayurid/gists{/gist_id}","starred_url":"https://api.github.com/users/mayurid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayurid/subscriptions","organizations_url":"https://api.github.com/users/mayurid/orgs","repos_url":"https://api.github.com/users/mayurid/repos","events_url":"https://api.github.com/users/mayurid/events{/privacy}","received_events_url":"https://api.github.com/users/mayurid/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":11,"state":"open","created_at":"2017-09-13T23:06:10Z","updated_at":"2017-11-01T18:59:38Z","due_on":"2017-11-09T08:00:00Z","closed_at":null},"comments":15,"created_at":"2017-10-24T20:52:48Z","updated_at":"2017-11-01T19:48:39Z","closed_at":null,"author_association":"NONE","body":"\r\n---\r\n\r\n### Environment summary\r\n\r\nShell: Powershell\r\nInstalled via MSI\r\naz --version 2.0.20\r\n\r\nGetting permission denied when running `az aks get-credentials` command. Powershell is being run as administrator\r\n```\r\nPS C:\\Users\\admin> az aks get-credentials --resource-group Kubernetes-RG --name=Kubernetes-Cluster\r\n[Errno 13] Permission denied: 'D:\\\\temp\\\\tmpl34_mzlt'\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\azure\\cli\\main.py\", line 36, in main\r\n    cmd_result = APPLICATION.execute(args)\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\azure\\cli\\core\\application.py\", line 212, in execute\r\n    result = expanded_arg.func(params)\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\azure\\cli\\core\\commands\\__init__.py\", line 377, in __call__\r\n    return self.handler(*args, **kwargs)\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\azure\\cli\\core\\commands\\__init__.py\", line 620, in _execute_command\r\n    reraise(*sys.exc_info())\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\six.py\", line 693, in reraise\r\n    raise value\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\azure\\cli\\core\\commands\\__init__.py\", line 602, in _execute_command\r\n    result = op(client, **kwargs) if client else op(**kwargs)\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\azure\\cli\\command_modules\\acs\\custom.py\", line 1288, in aks_get_credentials\r\n    merge_kubernetes_configurations(path, additional_file.name)\r\n  File \"C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\lib\\site-packages\\azure\\cli\\command_modules\\acs\\custom.py\", line 829, in merge_kubernetes_configurations\r\n    with open(addition_file) as stream:\r\nPermissionError: [Errno 13] Permission denied: 'D:\\\\temp\\\\tmpl34_mzlt'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/comments/341219433","html_url":"https://github.com/Azure/azure-cli/issues/4746#issuecomment-341219433","issue_url":"https://api.github.com/repos/Azure/azure-cli/issues/4746","id":341219433,"user":{"login":"artisticcheese","id":13176884,"avatar_url":"https://avatars0.githubusercontent.com/u/13176884?v=4","gravatar_id":"","url":"https://api.github.com/users/artisticcheese","html_url":"https://github.com/artisticcheese","followers_url":"https://api.github.com/users/artisticcheese/followers","following_url":"https://api.github.com/users/artisticcheese/following{/other_user}","gists_url":"https://api.github.com/users/artisticcheese/gists{/gist_id}","starred_url":"https://api.github.com/users/artisticcheese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artisticcheese/subscriptions","organizations_url":"https://api.github.com/users/artisticcheese/orgs","repos_url":"https://api.github.com/users/artisticcheese/repos","events_url":"https://api.github.com/users/artisticcheese/events{/privacy}","received_events_url":"https://api.github.com/users/artisticcheese/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T19:48:39Z","updated_at":"2017-11-01T19:48:39Z","author_association":"NONE","body":"@benc-uk Workaround for browse is to use @tomconte comment above. It works as expected after you got your credentials squared away."}}
{"actor":{"display_login":"artisticcheese"}}