diff options
Diffstat (limited to 'AzureHelpers/Public/List-AzGroups.ps1')
-rw-r--r-- | AzureHelpers/Public/List-AzGroups.ps1 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/AzureHelpers/Public/List-AzGroups.ps1 b/AzureHelpers/Public/List-AzGroups.ps1 new file mode 100644 index 0000000..a280388 --- /dev/null +++ b/AzureHelpers/Public/List-AzGroups.ps1 @@ -0,0 +1,23 @@ +function List-AzGroups { + <# + .SYNOPSIS + List all resource groups inside the Azure subscription we are logged into. + + .DESCRIPTION + This simply uses `az group list` with a few parameters. Main purpose: coloured + and terse output. + + .INPUTS + None. (Also, no parameters.) + + .OUTPUTS + String. A coloured JSON output showing a more or less terse list of VMs. + #> + [Alias( + 'azgrouplist', + 'azrgl' + )] + Param ( + ) + az group list -o jsonc --query '[].{id: id, location: location, managedBy: managedBy, properties: properties, tags: tags}' +}
\ No newline at end of file |