{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/1791","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1791/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1791/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1791/events","html_url":"https://github.com/Azure/azure-powershell/issues/1791","id":132306750,"number":1791,"title":"New-AzureRmAutomationCredential odd error message","user":{"login":"microsmith","id":16263076,"avatar_url":"https://avatars0.githubusercontent.com/u/16263076?v=4","gravatar_id":"","url":"https://api.github.com/users/microsmith","html_url":"https://github.com/microsmith","followers_url":"https://api.github.com/users/microsmith/followers","following_url":"https://api.github.com/users/microsmith/following{/other_user}","gists_url":"https://api.github.com/users/microsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/microsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microsmith/subscriptions","organizations_url":"https://api.github.com/users/microsmith/orgs","repos_url":"https://api.github.com/users/microsmith/repos","events_url":"https://api.github.com/users/microsmith/events{/privacy}","received_events_url":"https://api.github.com/users/microsmith/received_events","type":"User","site_admin":false},"labels":[{"id":185013140,"url":"https://api.github.com/repos/Azure/azure-powershell/labels/Automation","name":"Automation","color":"DDDDDD","default":false}],"state":"closed","locked":false,"assignee":{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false},"assignees":[{"login":"cormacpayne","id":4462409,"avatar_url":"https://avatars2.githubusercontent.com/u/4462409?v=4","gravatar_id":"","url":"https://api.github.com/users/cormacpayne","html_url":"https://github.com/cormacpayne","followers_url":"https://api.github.com/users/cormacpayne/followers","following_url":"https://api.github.com/users/cormacpayne/following{/other_user}","gists_url":"https://api.github.com/users/cormacpayne/gists{/gist_id}","starred_url":"https://api.github.com/users/cormacpayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cormacpayne/subscriptions","organizations_url":"https://api.github.com/users/cormacpayne/orgs","repos_url":"https://api.github.com/users/cormacpayne/repos","events_url":"https://api.github.com/users/cormacpayne/events{/privacy}","received_events_url":"https://api.github.com/users/cormacpayne/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-powershell/milestones/3","html_url":"https://github.com/Azure/azure-powershell/milestone/3","labels_url":"https://api.github.com/repos/Azure/azure-powershell/milestones/3/labels","id":1616215,"number":3,"title":"Backlog","description":"Triaged issues will be added to backlog","creator":{"login":"ravbhatnagar","id":2806980,"avatar_url":"https://avatars3.githubusercontent.com/u/2806980?v=4","gravatar_id":"","url":"https://api.github.com/users/ravbhatnagar","html_url":"https://github.com/ravbhatnagar","followers_url":"https://api.github.com/users/ravbhatnagar/followers","following_url":"https://api.github.com/users/ravbhatnagar/following{/other_user}","gists_url":"https://api.github.com/users/ravbhatnagar/gists{/gist_id}","starred_url":"https://api.github.com/users/ravbhatnagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravbhatnagar/subscriptions","organizations_url":"https://api.github.com/users/ravbhatnagar/orgs","repos_url":"https://api.github.com/users/ravbhatnagar/repos","events_url":"https://api.github.com/users/ravbhatnagar/events{/privacy}","received_events_url":"https://api.github.com/users/ravbhatnagar/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":76,"state":"open","created_at":"2016-03-01T19:15:11Z","updated_at":"2018-03-10T00:58:49Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-02-09T01:32:04Z","updated_at":"2018-03-10T00:58:49Z","closed_at":"2018-03-10T00:58:49Z","author_association":"NONE","body":"New-AzureRmAutomationCredential displays \"Input string was not in a correct format\" when the credential name already exists. Would be better if it displayed something like \"Name myPsCredential already exists\".\n\nNew-AzurermAutomationCredential : **Input string was not in a correct format**.\nAt line:1 char:1\n- New-AzurermAutomationCredential -AutomationAccountName \"PStest\" -Name \"myPsCrede ...\n- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  - CategoryInfo          : CloseError: (:) [New-AzureRmAutomationCredential], FormatException\n  - FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.NewAzureAutomationCredential\n    <!---@tfsbridge:{\"tfsId\":5730364}-->\n"}}
{"actor":{"display_login":"maddieclayton"}}