{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/7430","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7430/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7430/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7430/events","html_url":"https://github.com/Azure/azure-powershell/issues/7430","id":365142168,"node_id":"MDU6SXNzdWUzNjUxNDIxNjg=","number":7430,"title":"Connect-AzureRmAccount with user credential login does not work in Az 0.2.2","user":{"login":"slavizh","id":11890856,"node_id":"MDQ6VXNlcjExODkwODU2","avatar_url":"https://avatars0.githubusercontent.com/u/11890856?v=4","gravatar_id":"","url":"https://api.github.com/users/slavizh","html_url":"https://github.com/slavizh","followers_url":"https://api.github.com/users/slavizh/followers","following_url":"https://api.github.com/users/slavizh/following{/other_user}","gists_url":"https://api.github.com/users/slavizh/gists{/gist_id}","starred_url":"https://api.github.com/users/slavizh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavizh/subscriptions","organizations_url":"https://api.github.com/users/slavizh/orgs","repos_url":"https://api.github.com/users/slavizh/repos","events_url":"https://api.github.com/users/slavizh/events{/privacy}","received_events_url":"https://api.github.com/users/slavizh/received_events","type":"User","site_admin":false},"labels":[{"id":187436091,"node_id":"MDU6TGFiZWwxODc0MzYwOTE=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Azure%20PS%20Team%20:snail:","name":"Azure PS Team :snail:","color":"DDDDDD","default":false},{"id":334537483,"node_id":"MDU6TGFiZWwzMzQ1Mzc0ODM=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/More%20Info%20:label:","name":"More Info :label:","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Azure/azure-powershell/milestones/58","html_url":"https://github.com/Azure/azure-powershell/milestone/58","labels_url":"https://api.github.com/repos/Azure/azure-powershell/milestones/58/labels","id":3683685,"node_id":"MDk6TWlsZXN0b25lMzY4MzY4NQ==","number":58,"title":"2018-11-06","description":"Reviews Complete: 10/22/2018; Code Complete: 10/29/2018; Release to CloudShell: 11/02/2018; Release to Customers: 11/06/2018","creator":{"login":"markcowl","id":1054056,"node_id":"MDQ6VXNlcjEwNTQwNTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1054056?v=4","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":57,"closed_issues":4,"state":"open","created_at":"2018-09-24T16:35:58Z","updated_at":"2018-10-24T20:29:52Z","due_on":"2018-10-29T07:00:00Z","closed_at":null},"comments":10,"created_at":"2018-09-29T15:35:27Z","updated_at":"2018-10-25T03:16:06Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\nIf this issue is a bug report:\r\n- Upgrade to the latest version of AzureRM and verify you are able to reproduce the issue\r\n    - You can install the latest version of AzureRM from the PowerShell Gallery\r\n        - https://www.powershellgallery.com/packages/AzureRM\r\n    - You can also install the latest version from the Releases section\r\n        - https://github.com/Azure/azure-powershell/releases\r\n- Ensure that you repro the issue with $DebugPreference = \"Continue\" to receive the debug stream\r\n- If this bug involves an exception being thrown, please run Resolve-AzureRmError to receive extended information on the error\r\n- Fill out the below template\r\n\r\nIf this issue is not a bug report, please remove the below template\r\n\r\n-->\r\n\r\n### Description\r\n\r\nConnect-AzureRmAccount does not work in Az 0.2.2 with credentials specified. It asks for ServicePrincipal which is not correct as I use user credentials.\r\n\r\n<!-- Please provide a description of the issue you are facing -->\r\n\r\n### Script/Steps for Reproduction\r\n\r\n<!-- Please provide the necessary script(s) that reproduce the issue -->\r\n\r\n```powershell\r\n$credential = Get-Credential\r\n$tenantId = \"XXX\"\r\nConnect-AzureRmAccount -TenantId $tenantId -Credential $credential -ErrorAction Stop\r\ncmdlet Connect-AzAccount at command pipeline position 1\r\nSupply values for the following parameters:\r\nServicePrincipal:\r\n```\r\n\r\n### Module Version\r\n\r\n<!-- Please run (Get-Module -ListAvailable) to get the version(s) of all modules, including Azure installed on your machine -->\r\n\r\n```powershell\r\nGet-Module -ListAvailable\r\nScript     0.2.2      Az.Profile                          {Disable-AzDataCollection, Disable-AzContextAutosave, Enab.\r\n```\r\n\r\n### Environment Data\r\n\r\n<!-- Please run $PSVersionTable to get the necessary environment data -->\r\n\r\n```powershell\r\n$PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      5.1.17763.1\r\nPSEdition                      Desktop\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion                   10.0.17763.1\r\nCLRVersion                     4.0.30319.42000\r\nWSManStackVersion              3.0\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\n```\r\n\r\n### Debug Output\r\n\r\n<!-- Please run the above script with $DebugPreference='Continue' and paste the resulting debug stream in the below code block -->\r\n\r\nDebug cannot be run as the cmdlet does not allows you to start.\r\n\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/432900098","html_url":"https://github.com/Azure/azure-powershell/issues/7430#issuecomment-432900098","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7430","id":432900098,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjkwMDA5OA==","user":{"login":"a138076","id":41881046,"node_id":"MDQ6VXNlcjQxODgxMDQ2","avatar_url":"https://avatars3.githubusercontent.com/u/41881046?v=4","gravatar_id":"","url":"https://api.github.com/users/a138076","html_url":"https://github.com/a138076","followers_url":"https://api.github.com/users/a138076/followers","following_url":"https://api.github.com/users/a138076/following{/other_user}","gists_url":"https://api.github.com/users/a138076/gists{/gist_id}","starred_url":"https://api.github.com/users/a138076/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a138076/subscriptions","organizations_url":"https://api.github.com/users/a138076/orgs","repos_url":"https://api.github.com/users/a138076/repos","events_url":"https://api.github.com/users/a138076/events{/privacy}","received_events_url":"https://api.github.com/users/a138076/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T03:16:06Z","updated_at":"2018-10-25T03:16:06Z","author_association":"NONE","body":"Just run into this issue, this is a big breaking change thats going to cause alot of issues for a lot of people!\r\n"}}
{"actor":{"display_login":"a138076"}}