Skip to content

Instantly share code, notes, and snippets.

@pichuang
Created August 15, 2024 10:04
Show Gist options
  • Save pichuang/c6164d9e1f24ff2c76240e3cbcf156f5 to your computer and use it in GitHub Desktop.
Save pichuang/c6164d9e1f24ff2c76240e3cbcf156f5 to your computer and use it in GitHub Desktop.
Azure Route Server / VNG
#!/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
#!/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