{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/1896","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1896/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1896/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1896/events","html_url":"https://github.com/Azure/azure-powershell/issues/1896","id":137664535,"number":1896,"title":"New-AzureRmADApplication: Access denied to the specified API version","user":{"login":"winperec","id":10044618,"avatar_url":"https://avatars0.githubusercontent.com/u/10044618?v=3","gravatar_id":"","url":"https://api.github.com/users/winperec","html_url":"https://github.com/winperec","followers_url":"https://api.github.com/users/winperec/followers","following_url":"https://api.github.com/users/winperec/following{/other_user}","gists_url":"https://api.github.com/users/winperec/gists{/gist_id}","starred_url":"https://api.github.com/users/winperec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winperec/subscriptions","organizations_url":"https://api.github.com/users/winperec/orgs","repos_url":"https://api.github.com/users/winperec/repos","events_url":"https://api.github.com/users/winperec/events{/privacy}","received_events_url":"https://api.github.com/users/winperec/received_events","type":"User","site_admin":false},"labels":[{"id":372280081,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/1%20-%20Ready","name":"1 - Ready","color":"CCCCCC","default":false},{"id":370041747,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/P1","name":"P1","color":"b60205","default":false},{"id":185013601,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/ResourceAuthorization","name":"ResourceAuthorization","color":"DDDDDD","default":false},{"id":187436091,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Team","name":"Team","color":"DDDDDD","default":false}],"state":"closed","locked":false,"assignee":{"login":"shuagarw","id":10227276,"avatar_url":"https://avatars3.githubusercontent.com/u/10227276?v=3","gravatar_id":"","url":"https://api.github.com/users/shuagarw","html_url":"https://github.com/shuagarw","followers_url":"https://api.github.com/users/shuagarw/followers","following_url":"https://api.github.com/users/shuagarw/following{/other_user}","gists_url":"https://api.github.com/users/shuagarw/gists{/gist_id}","starred_url":"https://api.github.com/users/shuagarw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuagarw/subscriptions","organizations_url":"https://api.github.com/users/shuagarw/orgs","repos_url":"https://api.github.com/users/shuagarw/repos","events_url":"https://api.github.com/users/shuagarw/events{/privacy}","received_events_url":"https://api.github.com/users/shuagarw/received_events","type":"User","site_admin":false},"assignees":[{"login":"shuagarw","id":10227276,"avatar_url":"https://avatars3.githubusercontent.com/u/10227276?v=3","gravatar_id":"","url":"https://api.github.com/users/shuagarw","html_url":"https://github.com/shuagarw","followers_url":"https://api.github.com/users/shuagarw/followers","following_url":"https://api.github.com/users/shuagarw/following{/other_user}","gists_url":"https://api.github.com/users/shuagarw/gists{/gist_id}","starred_url":"https://api.github.com/users/shuagarw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuagarw/subscriptions","organizations_url":"https://api.github.com/users/shuagarw/orgs","repos_url":"https://api.github.com/users/shuagarw/repos","events_url":"https://api.github.com/users/shuagarw/events{/privacy}","received_events_url":"https://api.github.com/users/shuagarw/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-powershell/milestones/7","html_url":"https://github.com/Azure/azure-powershell/milestone/7","labels_url":"https://api.github.com/repos/Azure/azure-powershell/milestones/7/labels","id":1743656,"number":7,"title":"August 2016","description":"Code freeze August 1, Releasing August 8","creator":{"login":"markcowl","id":1054056,"avatar_url":"https://avatars2.githubusercontent.com/u/1054056?v=3","gravatar_id":"","url":"https://api.github.com/users/markcowl","html_url":"https://github.com/markcowl","followers_url":"https://api.github.com/users/markcowl/followers","following_url":"https://api.github.com/users/markcowl/following{/other_user}","gists_url":"https://api.github.com/users/markcowl/gists{/gist_id}","starred_url":"https://api.github.com/users/markcowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcowl/subscriptions","organizations_url":"https://api.github.com/users/markcowl/orgs","repos_url":"https://api.github.com/users/markcowl/repos","events_url":"https://api.github.com/users/markcowl/events{/privacy}","received_events_url":"https://api.github.com/users/markcowl/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":23,"state":"closed","created_at":"2016-05-02T21:56:27Z","updated_at":"2016-08-12T19:22:52Z","due_on":"2016-08-01T07:00:00Z","closed_at":"2016-08-12T19:01:51Z"},"comments":35,"created_at":"2016-03-01T19:31:34Z","updated_at":"2017-06-09T19:39:18Z","closed_at":"2016-08-02T18:21:14Z","body":"I created service principal, assign subscription Owner role for it and use Login-AzureRmAccount to authorize to Azure. \nThen when I try to run New-AzureRmADApplication command under my service principal I get the following error:\n{\"odata.error\":{\"code\":\"Authentication_Unauthorized\",\"message\":{\"lang\":\"en\",\"value\":\"Access denied to the specified API version.\"}}}\n\nIn exception i see that request goes to \nhttps://graph.windows.net/<tenant_id>/me?api-version=1.6-internal\n\nIs it expected behavior?  Is it possible to create AAD application under service principal?\nVersion of my AzurePS 1.2.1\n\n<!---@tfsbridge:{\"tfsId\":5867824}-->\n\n<!---\n@huboard:{\"order\":320.625,\"milestone_order\":1896,\"custom_state\":\"\"}\n-->\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/307481257","html_url":"https://github.com/Azure/azure-powershell/issues/1896#issuecomment-307481257","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1896","id":307481257,"user":{"login":"pearcec","id":125776,"avatar_url":"https://avatars2.githubusercontent.com/u/125776?v=3","gravatar_id":"","url":"https://api.github.com/users/pearcec","html_url":"https://github.com/pearcec","followers_url":"https://api.github.com/users/pearcec/followers","following_url":"https://api.github.com/users/pearcec/following{/other_user}","gists_url":"https://api.github.com/users/pearcec/gists{/gist_id}","starred_url":"https://api.github.com/users/pearcec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pearcec/subscriptions","organizations_url":"https://api.github.com/users/pearcec/orgs","repos_url":"https://api.github.com/users/pearcec/repos","events_url":"https://api.github.com/users/pearcec/events{/privacy}","received_events_url":"https://api.github.com/users/pearcec/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T19:39:18Z","updated_at":"2017-06-09T19:39:18Z","body":"Has this been released?"}}
{"actor":{"display_login":"pearcec"}}