2 parents 036cfe4 + f9c5cb1 commit 24f3200Copy full SHA for 24f3200
1 file changed
modules/help/az/az.bash
@@ -27,3 +27,18 @@ yellow
27
echo "Set the Default Organization and Project"
28
nocolor
29
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
40
+echo "Get VPN credentials"
41
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