Created
August 15, 2024 10:04
-
-
Save pichuang/c6164d9e1f24ff2c76240e3cbcf156f5 to your computer and use it in GitHub Desktop.
Azure Route Server / VNG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RESOURCE_GROUP="" | |
ARS_NAME="" | |
PEERNAME="" | |
echo "=====" | |
echo "Show Azure Route Server Advertised Routes" | |
echo "=====" | |
az network routeserver peering list-advertised-routes \ | |
--resource-group $RESOURCE_GROUP \ | |
--routeserver $ARS_NAME \ | |
--name "$PEERNAME" \ | |
--output table | |
echo "=====" | |
echo "Show Azure Route Server Learned Routes" | |
echo "=====" | |
az network routeserver peering list-learned-routes \ | |
--resource-group $RESOURCE_GROUP \ | |
--routeserver $ARS_NAME \ | |
--name "$PEERNAME" \ | |
--output table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RESOURCE_GROUP="" | |
ERGW_NAME="" | |
echo | |
echo "list of BGP peers for the virtual network gateway" | |
echo | |
az network vnet-gateway list-bgp-peer-status \ | |
--resource-group $RESOURCE_GROUP \ | |
--name $ERGW_NAME \ | |
--output table | |
echo | |
echo "list of routes the virtual network gateway has learned" | |
echo | |
az network vnet-gateway list-learned-routes \ | |
--resource-group $RESOURCE_GROUP \ | |
--name $ERGW_NAME \ | |
--output table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment