{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/2458","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/2458/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/2458/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/2458/events","html_url":"https://github.com/Azure/azure-cli/issues/2458","id":213316701,"node_id":"MDU6SXNzdWUyMTMzMTY3MDE=","number":2458,"title":"az role assignment create fails","user":{"login":"hoffmann","id":7143,"node_id":"MDQ6VXNlcjcxNDM=","avatar_url":"https://avatars2.githubusercontent.com/u/7143?v=4","gravatar_id":"","url":"https://api.github.com/users/hoffmann","html_url":"https://github.com/hoffmann","followers_url":"https://api.github.com/users/hoffmann/followers","following_url":"https://api.github.com/users/hoffmann/following{/other_user}","gists_url":"https://api.github.com/users/hoffmann/gists{/gist_id}","starred_url":"https://api.github.com/users/hoffmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoffmann/subscriptions","organizations_url":"https://api.github.com/users/hoffmann/orgs","repos_url":"https://api.github.com/users/hoffmann/repos","events_url":"https://api.github.com/users/hoffmann/events{/privacy}","received_events_url":"https://api.github.com/users/hoffmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"yugangw-msft","id":6014209,"node_id":"MDQ6VXNlcjYwMTQyMDk=","avatar_url":"https://avatars1.githubusercontent.com/u/6014209?v=4","gravatar_id":"","url":"https://api.github.com/users/yugangw-msft","html_url":"https://github.com/yugangw-msft","followers_url":"https://api.github.com/users/yugangw-msft/followers","following_url":"https://api.github.com/users/yugangw-msft/following{/other_user}","gists_url":"https://api.github.com/users/yugangw-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/yugangw-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugangw-msft/subscriptions","organizations_url":"https://api.github.com/users/yugangw-msft/orgs","repos_url":"https://api.github.com/users/yugangw-msft/repos","events_url":"https://api.github.com/users/yugangw-msft/events{/privacy}","received_events_url":"https://api.github.com/users/yugangw-msft/received_events","type":"User","site_admin":false},"assignees":[{"login":"yugangw-msft","id":6014209,"node_id":"MDQ6VXNlcjYwMTQyMDk=","avatar_url":"https://avatars1.githubusercontent.com/u/6014209?v=4","gravatar_id":"","url":"https://api.github.com/users/yugangw-msft","html_url":"https://github.com/yugangw-msft","followers_url":"https://api.github.com/users/yugangw-msft/followers","following_url":"https://api.github.com/users/yugangw-msft/following{/other_user}","gists_url":"https://api.github.com/users/yugangw-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/yugangw-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugangw-msft/subscriptions","organizations_url":"https://api.github.com/users/yugangw-msft/orgs","repos_url":"https://api.github.com/users/yugangw-msft/repos","events_url":"https://api.github.com/users/yugangw-msft/events{/privacy}","received_events_url":"https://api.github.com/users/yugangw-msft/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-03-10T11:28:04Z","updated_at":"2019-01-02T22:04:09Z","closed_at":"2017-03-30T17:07:25Z","author_association":"NONE","body":"az role assignment create --debug --assignee XXX-XXX-XXX-XXX-XXX  --role XXX-XXX-XXX-XXX-XXX --resource-group rgname\r\n\r\nfails with The request was incorrectly formatted.\r\n```\r\n\r\nmsrest.http_logger : Request body:\r\nmsrest.http_logger : {\"properties\": {\"roleDefinitionId\": \"XXX-XXX-XXX-XXX-XXX\", \"principalId\": \"XXX-XXX-XXX-XXX-XXX\"}}\r\nrequests.packages.urllib3.connectionpool : Starting new HTTPS connection (1): management.azure.com\r\nrequests.packages.urllib3.connectionpool : https://management.azure.com:443 \"PUT /subscriptions/XXX-XXX-XXX-XXX-XXX/resourceGroups/XXX/providers/Microsoft.Authorization/roleAssignments/XXX-XXX-XXX-XXX-XXX?api-version=2015-07-01 HTTP/1.1\" 400 88\r\nmsrest.http_logger : Response status: 400\r\n\r\nmsrest.http_logger : Response content:\r\nmsrest.http_logger : b'{\"error\":{\"code\":\"BadRequestFormat\",\"message\":\"The request was incorrectly formatted.\"}}'\r\nmsrest.exceptions : The request was incorrectly formatted.\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/comments/450999595","html_url":"https://github.com/Azure/azure-cli/issues/2458#issuecomment-450999595","issue_url":"https://api.github.com/repos/Azure/azure-cli/issues/2458","id":450999595,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDk5OTU5NQ==","user":{"login":"lanpar","id":6757933,"node_id":"MDQ6VXNlcjY3NTc5MzM=","avatar_url":"https://avatars2.githubusercontent.com/u/6757933?v=4","gravatar_id":"","url":"https://api.github.com/users/lanpar","html_url":"https://github.com/lanpar","followers_url":"https://api.github.com/users/lanpar/followers","following_url":"https://api.github.com/users/lanpar/following{/other_user}","gists_url":"https://api.github.com/users/lanpar/gists{/gist_id}","starred_url":"https://api.github.com/users/lanpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanpar/subscriptions","organizations_url":"https://api.github.com/users/lanpar/orgs","repos_url":"https://api.github.com/users/lanpar/repos","events_url":"https://api.github.com/users/lanpar/events{/privacy}","received_events_url":"https://api.github.com/users/lanpar/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T22:04:09Z","updated_at":"2019-01-02T22:04:09Z","author_association":"NONE","body":"this thing is still a problem"}}
{"actor":{"display_login":"lanpar"}}