BRKR
BRKR

Reputation: 23

Get-AzureRmResourceGroup -detailed not working

I am trying to get the list of all resources under my subscription through Azure RM PS cmdlets. As per PS document Get-AzureRmResourceGroup -detailed should help. When I try that, I get the below error. Am I missing anything?

----------------------------------
*Get-AzureRmResourceGroup : A parameter cannot be found that matches parameter name 'Detailed'.
At line:1 char:26
+ Get-AzureRmResourceGroup -Detailed
+                          ~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-AzureRmResourceGroup], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.Resources.GetAzureResourceGroupCommand*
--------------------------------------

Upvotes: 1

Views: 517

Answers (3)

bmoore-msft
bmoore-msft

Reputation: 8737

Get-AzureRMResource will list all the resources in a subscription.

Upvotes: 0

Michael B
Michael B

Reputation: 12228

The detailed parameter for Get-AzureRmResourceGroup was removed on Oct 2 2015 in commit de84df5 I believe in version 1.0.2.

WriteWarning("The Detailed switch parameter is being deprecated and will be removed in a future release.");

Unfortunately there was no replacement for it, it was simply removed as part of the streamlining of the new AzureRM cmdlets.

Upvotes: 2

jbsmith
jbsmith

Reputation: 1666

Almost certainly what the documentation is telling you is that you can learn more about the command by running Get-Help Get-AzureRmResourceGroup -Detailed; this will give you more detailed help information in the PS console. The Get-AzureRmResourceGroup cmdlet itself does not have a "-Detailed" parameter -- Get-Help does.

Upvotes: 0

Related Questions