Skip to content

Commit 24f3200

Browse files
authored
Merge pull request #22 from e-lemongrab/help_az
help_az
2 parents 036cfe4 + f9c5cb1 commit 24f3200

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

modules/help/az/az.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,18 @@ yellow
2727
echo "Set the Default Organization and Project"
2828
nocolor
2929
echo -e "\taz devops configure --defaults organization=https://dev.azure.com/YourOrganization project=YourProjectName"
30+
yellow
31+
echo "RGs where there is a VPN"
32+
nocolor
33+
echo -e "\tfor RG in \$(az group list --query \"[].name\" -o tsv); do"
34+
echo -e "\t az network vnet-gateway list \\\\"
35+
echo -e "\t --resource-group \"\$RG\" \\\\"
36+
echo -e "\t --query \"[].{rg:resourceGroup,name:name}\" \\\\"
37+
echo -e "\t -o tsv"
38+
echo -e "\tdone"
39+
yellow
40+
echo "Get VPN credentials"
41+
nocolor
42+
echo -e "\taz network vnet-gateway vpn-client show-url \\"
43+
echo -e "\t --resource-group rg-name \\"
44+
echo -e "\t --name vpn-name"

0 commit comments

Comments
 (0)