blob: a280388925e61b92d238e53f733cd2d2189d28cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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}'
}
|