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:
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:
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: