Browsing resource groups
When you have created some resource groups, they will be available in your subscription. We can quickly display them using either the Azure CLI or PowerShell window. Both commands are pretty straightforward. The result for Azure CLI is as follows:
$ az group list --subscription "Pay-As-You-Go"
The result of running the preceding command will look like this:
[
{
"id": "/subscriptions/.../resourceGroups/azureadministrator-euw-rg",
"location": "westeurope",
"managedBy": null,
"name": "azureadministrator-euw-rg",
"properties": {
"provisioningState": "Succeeded"
},
"tags": {}
}
{
...
}
]
You will get a similar effect for the PowerShell cmdlet, as shown here. Note that it returns a similar result containing information about the resource group's location, its tags, and its identifier:
PS C:\Users\kamz> Get-AzResourceGroup
The result of running the preceding PowerShell cmdlet should look like this:
ResourceGroupName : azureadministrator-euw-rg
Location : westeurope
ProvisioningState : Succeeded
Tags :
ResourceId : /subscriptions/.../resourceGroups/azureadministrator-euw-rg
(...)
Note that both commands provide additional parameters. The following is the result of running the Azure CLI command with an additional switch that determines the output's format (which is --output table):
$ az group list --subscription "Pay-As-You-Go" --output "table"
With an additional parameter, the output will change from its default JSON representation to a table:
Name Location Status
---------------------------- ---------- ---------
azureadministrator-euw-rg westeurope Succeeded
azureadministratornew-euw-rg westeurope Succeeded
azureadminstration-euw-rg westeurope Succeeded
azurecli-euw-rg westeurope Succeeded
azurepowershell-eue-rg westeurope Succeeded
azurepowershell-euw-rg westeurope Succeeded
Now that we've got some information about the available resource groups, we can dive deeper and check out the resources they contain.