Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Route maps for Azure Route Server is currently in preview. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
This article shows you how to create, configure, and apply route maps on Azure Route Server by using the Azure portal or Azure PowerShell. For more information about route maps, see About route maps for Azure Route Server.
Prerequisites
- An Azure account with an active subscription. Create an account for free.
- An Azure Route Server deployed in a virtual network. If you need to create one, see Create a Route Server - Portal.
- At least one of the following resources configured in the same virtual network as the route server:
- A BGP peering with a network virtual appliance (NVA)
- An ExpressRoute gateway connection
- A VPN gateway connection
Review About route maps for considerations and limitations before proceeding.
Configuration workflow
Follow these high-level steps to configure route maps:
- Create or use an existing Azure Route Server.
- Configure BGP peerings to your NVAs, and deploy any ExpressRoute or VPN gateways needed.
- Verify that incoming and outgoing routes work as expected by using the Effective Routes view on your Azure Route Server.
- Configure a route map and route-map rules, then save. For more information about route-map rules, see About route maps.
- Apply the route map to the desired BGP peerings or gateway connections.
- Verify the route map is working as expected using the Effective Routes view.
Note
The first time you create a route map on an Azure Route Server, the route server undergoes an upgrade that takes approximately 30 minutes. After the upgrade completes, subsequent route map operations don't require another upgrade.
Create a route map
To create a route map in the Azure portal:
In the Azure portal, go to your Azure Route Server resource.
In the left menu under Settings, select route maps.
On the route maps page, select + Add Route Map to create a new route map.
On the Create Route Map page, enter a Name for the route map.
Select + Add rule to create rules in the route map.
On the Create Route Map rule page, configure the following settings:
- Name: Enter a name for the route-map rule.
- Next step: Select Continue if routes matching this rule should be processed by subsequent rules. Select Terminate to stop processing after this rule.
- Match conditions: Configure one or more match conditions for the rule. Each match condition requires a Property, Criterion, and Value.
- To add a match condition, select the empty row in the table.
- To delete a match condition, select the delete icon at the end of the row.
- Use a comma (,) as a delimiter to add multiple values. For supported match conditions, see About route maps.
- Actions > Action on matched routes: Select Drop to deny the matched routes, or Modify to permit and modify the matched routes.
- Actions > Route modifications: Configure one or more route modifications. Each modification requires a Property, Action, and Value.
- To add a modification, select the empty row in the table.
- To delete a modification, select the delete icon at the end of the row.
- Use a comma (,) as a delimiter to add multiple values. For supported actions, see About route maps.
Select Add to save the rule. This step stores the rule temporarily in the portal but doesn't save it to the route map yet.
Repeat steps 6 and 7 to add more rules as needed.
On the Create Route Map page, verify that the rules are in the correct order. To adjust the order, hover over a row, then drag it up or down by using the three dots icon.
Select Save to save all the rules to the route map.
It takes a few minutes to save the route map and the route-map rules. After the save completes, the Provisioning state shows Succeeded.
Apply a route map to BGP peerings and gateway connections
After you save the route map, you can apply it to BGP peerings and gateway connections.
On route maps, select Apply route maps.
On Apply route maps, configure the following settings:
- Under Inbound Route Map, select the route map you want to apply in the ingress direction.
- Under Outbound Route Map, select the route map you want to apply in the egress direction.
- The table at the bottom lists all BGP peerings and gateway connections. Select one or more connections to apply the route maps to.
Select Save to apply the route maps.
Verify the changes by opening Apply route maps again from route maps.
Use the Route Map dashboard on the Route Server to verify that routes, AS-Path, and BGP communities are being modified as expected.
Modify or remove a route map
- Go to the route maps page on your Azure Route Server resource.
- On the row for the route map you want to modify or remove, select ... > Edit or ... > Delete.
Remove a route map from a connection
- On route maps, select Apply route maps.
- Select the checkbox for the connection you want to modify.
- Change the Inbound Route Map or Outbound Route Map dropdowns to None for the connections you want to remove the route map from.
- Select Save.
Troubleshoot route maps
Route map is in a failed state
If a route map fails to provision:
- Verify that the route-map rules are configured correctly and don't contain invalid values.
- Check that you're not using reserved ASNs or attempting to remove Azure BGP communities. For more information, see Considerations and limitations.
- Delete the failed route map and create a new one.
- If the issue persists, open a support case.
Routes aren't being summarized
If route summarization doesn't work as expected:
- Verify the match conditions are configured to match the correct prefixes.
- Ensure the route modification action is set to Replace with the correct summary prefix.
- Check the Effective Routes view on the route server to verify the routes before and after the route map is applied.
AS-PATH modifications aren't applied
If AS-PATH changes don't take effect:
- Verify that you're not using reserved ASNs (8074, 8075, 12076, 65515, 65517, 65518, 65519, 65520).
- Confirm that the match conditions correctly identify the target routes.
- Check the Effective Routes view to verify the AS-PATH values.
Route map changes aren't taking effect
If a newly created or updated route map doesn't appear to affect routing:
- If this route map is the first route map on the Route Server, wait for the one-time upgrade to complete (approximately 30 minutes). Check the Provisioning state on the route maps page.
- Verify that the route map is applied to the correct connection in the correct direction (inbound or outbound).
- Check the Route Map dashboard to confirm the route map is processing routes.
Route map is matching more routes than expected
If a route map affects routes you didn't intend to modify:
- Check whether the route-map rule has match conditions configured. A rule without match conditions matches all routes from the applied connection.
- Verify that the match condition criterion is correct. Equals matches only the exact prefixes specified, while Contains matches the specified prefixes and all more-specific prefixes underneath them.
- Review the rule order. Rules are evaluated sequentially, and a rule set to Terminate stops processing for matched routes.