Skip to content

New-AzureRmAutomationCredential odd error message #1791

@microsmith

Description

@microsmith

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".

New-AzurermAutomationCredential : Input string was not in a correct format.
At line:1 char:1

  • New-AzurermAutomationCredential -AutomationAccountName "PStest" -Name "myPsCrede ...
  • - CategoryInfo          : CloseError: (:) [New-AzureRmAutomationCredential], FormatException
    - FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.NewAzureAutomationCredential
      <!---@tfsbridge:{"tfsId":5730364}-->
    

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions