azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

New-AzureResourceGroupDeployment handles bad inputs / parameters in a confusing way

Open clamanna opened this issue 11 years ago • 3 comments

Givung the cmdlet the ResourceGroupName parameter and nothing else yields:

PS C:\WINDOWS\system32> New-AzureResourceGroupDeployment -ResourceGroupName testkay New-AzureResourceGroupDeployment : Accessed JArray values with invalid key value: "identity". Array position index expected. At line:1 char:1

  • New-AzureResourceGroupDeployment -ResourceGroupName testkay
  • CategoryInfo : CloseError: (:) [New-AzureResourceGroupDeployment], ArgumentException
  • FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupDeploymentCommand

clamanna avatar Mar 18 '15 01:03 clamanna

Now it fails with the following message which is still not meaningful. PS C:\WINDOWS\system32> New-AzureRmResourceGroupDeployment -ResourceGroupName temprg1 New-AzureRmResourceGroupDeployment : Value cannot be null. Parameter name: path At line:1 char:1

  • New-AzureRmResourceGroupDeployment -ResourceGroupName temprg1
  • - CategoryInfo          : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], ArgumentNullException
    - FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Azure.Commands.Resources.NewAzureResourceGroupDeploymentCommand
    

ravbhatnagar avatar Dec 10 '15 00:12 ravbhatnagar

Moving to backlog. Could not fix in Apr release

ravbhatnagar avatar Mar 28 '16 18:03 ravbhatnagar

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rthorn17

ghost avatar Aug 14 '19 19:08 ghost