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

Get-AzureRMResource -ResourceGroupName failing

Open MattAllison opened this issue 9 years ago • 1 comments

Cmdlet(s)

Get-AzureRMResource

PowerShell Version

PSVersion 5.0.10586.117

Module Version

ModuleType Version Name


Script 2.5.0 AzureRM.profile Script 3.5.0 AzureRM.Resources Script 2.5.0 AzureRM.Storage

OS Version

BuildVersion 10.0.10586.117

Description

Get-AzureRMResource failing when using only the -ResourceGroupName parameter

Debug Output

PS Scripts:> Get-AzureRMResource -ResourceGroupName securityData Get-AzureRmResource : Parameter set cannot be resolved using the specified named parameters. At line:1 char:1

  • Get-AzureRMResource -ResourceGroupName securityData
  •   + CategoryInfo          : InvalidArgument: (:) [Get-AzureRmResource], ParameterBindingException
      + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Ge
     tAzureResourceCmdlet
    
    

Script/Steps for Reproduction

run the Get-AzureRMResource command with the -ResourceGroupName parameter. The error is the same whether the resource group exists or not.

MattAllison avatar Jan 24 '17 19:01 MattAllison

@MattAllison this looks to be a duplicate of issue https://github.com/Azure/azure-powershell/issues/3539

Closing this issue so that we can track the status on the other.

cormacpayne avatar Mar 03 '17 22:03 cormacpayne