Skip to content

Commit 5ef5f08

Browse files
committed
Tidy up Azure connector functions
1 parent f8137eb commit 5ef5f08

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/azure-functions

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,9 @@ connector-groups() {
712712
--method get \
713713
--url "$url" \
714714
--output "$output_format" \
715-
--query 'value[].[id, name, region, connectorGroupType, isDefault]' --output tsv |
716-
sort -k 2
715+
--query 'value[].[id, name, region, connectorGroupType, isDefault]' --output tsv \
716+
| LC_ALL=C sort -k 2 \
717+
| columnise
717718
}
718719

719720
connector-group-apps() {
@@ -737,8 +738,9 @@ connector-group-apps() {
737738
displayName,
738739
createdDateTime
739740
]' \
740-
--output tsv |
741-
sort -k 2
741+
--output tsv \
742+
| LC_ALL=C sort -k 2 \
743+
| columnise
742744
done
743745
}
744746

@@ -764,8 +766,9 @@ connector-group-members() {
764766
machineName,
765767
externalIp
766768
]' \
767-
--output tsv |
768-
sort -k 2
769+
--output tsv \
770+
| LC_ALL=C sort -k 2 \
771+
| columnise
769772
done
770773
}
771774
# https://graph.microsoft.com/beta/rolemanagement/directory/transitiveRoleAssignments?$count=true&$filter=principalId eq '12345'

0 commit comments

Comments
 (0)