User Tools

Site Tools


burim:azure:expressroute

Azure Resource Graph VNet Query

User: Resources

project subscriptionId,
        resourceGroup,
        vnetName = name,
        vnetAddressSpace = tostring(vnetAddressPrefixes),
        location

— need only for vnet1, vnet2 the ip address spaces

Assistant: You can filter the results to only the VNets `vnet1` and `vnet2` by adding a `where` clause for the VNet names:

```kusto Resources

project vnetName = name,
        vnetAddressSpace = tostring(vnetAddressPrefixes)

View ExpressRoute Connections and Routing

User: need to view all my express routes connection, and rotuing configuration on the gateway

Assistant: To view ExpressRoute resources and routing config:

ExpressRoute Gateways

kusto Copy code Resources

kusto Copy code Resources

kusto Copy code Resources

User: is it possible to see also the routes

Assistant: Short answer: No — full routing tables (effective routes) cannot be queried via Azure Resource Graph.

But you can see routes via CLI / PowerShell:

Learned Routes (ExpressRoute Gateway)

bash Copy code az network vnet-gateway list-learned-routes \

  1. -name <GatewayName> \
  2. -resource-group <RGName>

Advertised Routes to On-Prem

bash Copy code az network vnet-gateway list-advertised-routes \

  1. -name <GatewayName> \
  2. -resource-group <RGName> \
  3. -peer <PeerIP>

Effective Routes for VM NIC

bash Copy code az network nic show-effective-route-table \

  1. -name <NICName> \
  2. -resource-group <RGName>

Azure Portal also shows effective routes.

User Request

User: give me the wholy communication in a dokuwiki format ready for copy and paste

Assistant: (Provided the full DokuWiki formatted content)

burim/azure/expressroute.txt · Last modified: 2025/10/31 15:22 by burim

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki