File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/ResourceManager/Resources/Commands.Resources/help Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,25 @@ PS C:\>(Get-AzureRmResourceGroup -Name "ContosoRG").Tags
46
46
47
47
This command gets the resource group named ContosoRG, and displays the tags associated with that group.
48
48
49
+ ### Example 3: Show the Resource groups by location
50
+ ```
51
+ PS C:\> Get-AzureRmResourceGroup |
52
+ Sort Location,ResourceGroupName |
53
+ Format-Table -GroupBy Location ResourceGroupName,ProvisioningState,Tags
54
+ ```
55
+
56
+ ### Example 4: Show the names of all the Resource groups in a particular location
57
+ ```
58
+ PS C:\> Get-AzureRmResourceGroup -Location westus2 |
59
+ Sort ResourceGroupName |
60
+ Format-Wide ResourceGroupName -Column 4
61
+ ```
62
+
63
+ ### Example 5: Show the Resource groups whose names begin with WebServer
64
+ ```
65
+ PS C:\> Get-AzureRmResourceGroup | Where ResourceGroupName -like WebServer*
66
+ ```
67
+
49
68
## PARAMETERS
50
69
51
70
### -ApiVersion
You can’t perform that action at this time.
0 commit comments