How to manage the static routes of a Direct Connect connection
A static route tells the VNet that a network on your side is reached through the Direct Connect. Each route belongs to one connection (a VNet bound to a Direct Connect), and its gateway is always the peer that is carrying the traffic: the primary peer or, after a failover, the backup. You do not choose the gateway; the platform fills it in.
Prerequisites
- A VNet bound to the Direct Connect, with the status BOUND. See How to bind a VNet to a Direct Connect.
- The
customer-connect:direct_connect:managepermission to create and edit routes, andcustomer-connect:direct_connect:deleteto delete them.
See the routes of a connection
The Static Routes column of Active Connections shows up to three destinations of each connection and, when there are more, a +N badge. Hover over the destinations to see the full list, each route with its gateway (gw:) and description.
The full list, with the actions, is on the page of the connection: in Active Connections, click the row of the VNet and open the Static routes tab. The tab shows how many routes there are, and the table has the Destination CIDR, the Gateway, the Description and the date the route was created (Created At). When the traffic is on the IPsec, the gateway shows via IPsec followed by the name of the IPsec.
Create a route
-
Open Customer Connect → Direct Connect and click the Direct Connect.
-
In Active Connections, click the row of the VNet. The page of the connection opens.
-
Open the Static routes tab and click Create Route.

-
In Create Static Route, fill in:
- Destination CIDR: the network on your side, with the mask, such as
10.52.0.0/24. - Description (optional): a note of up to 255 characters, such as the site name.

- Destination CIDR: the network on your side, with the mask, such as
-
Click Confirm.
The route shows up in the Static routes tab with the gateway of the active peer and starts working right away.
Rules for the destination
- It must be a network with the mask, such as
192.168.10.0/24. A single host is written with/32. - The default route
0.0.0.0/0is reserved and cannot be added. - The same destination can exist only once in the VNet, even across different Direct Connects. To send a network through another connection, delete the old route first.
Edit the description
In the Static routes tab, click the pencil icon of the route, change the Description and click Save Changes. The destination cannot be edited: to change it, delete the route and create a new one.
Delete a route
- In the Static routes tab, click the trash icon of the route.
- In Delete Route followed by the destination, click Delete.
Traffic to that network stops going through the connection at once. The deletion cannot be undone.
What happens to the routes later
- On a failover, all the routes of the connection move to the next path together, and the gateway shown changes. With an IPsec as the last level, the IPsec takes over exactly these routes: a route that the IPsec does not cover stays out of the tunnel. After creating or deleting a route, open the IPsec card and run its health test again to see the coverage. See How to set up failover for a Direct Connect connection.
- When you change the remote IP of the primary peer, the routes follow the new address. See How to change the remote IP of a Direct Connect connection.
- In the firewall, rules that use the target LAN-to-LAN (Peer + Routes) cover the destinations of the routes and are updated on their own when you create or delete a route. See How to allow Direct Connect traffic in the firewall.
On your side
The routes only cover the way out of the VNet. The way back is on your firewall: it needs a route to the VNet network through the Local IP of the connection.