You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/manage-route-table.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ author: asudbring
7
7
ms.service: virtual-network
8
8
ms.topic: how-to
9
9
ms.workload: infrastructure-services
10
-
ms.date: 12/13/2022
10
+
ms.date: 04/24/2023
11
11
ms.author: allensu
12
12
---
13
13
14
14
# Create, change, or delete a route table
15
15
16
-
Azure automatically routes traffic between Azure subnets, virtual networks, and on-premises networks. If you want to change any of Azure's default routing, you do so by creating a route table. If you're new to routing in virtual networks, you can learn more about it in [virtual network traffic routing](virtual-networks-udr-overview.md) or by completing a [tutorial](tutorial-create-route-table-portal.md).
16
+
Azure automatically routes traffic between Azure subnets, virtual networks, and on-premises networks. If you want to change Azure's default routing, you do so by creating a route table. If you're new to routing in virtual networks, you can learn more about it in [virtual network traffic routing](virtual-networks-udr-overview.md) or by completing a [tutorial](tutorial-create-route-table-portal.md).
17
17
18
18
## Before you begin
19
19
@@ -27,7 +27,7 @@ If you don't have one, set up an Azure account with an active subscription. [Cre
27
27
28
28
-**Azure CLI users**: Run the commands via either the [Azure Cloud Shell](https://shell.azure.com/bash) or the Azure CLI running locally. Use Azure CLI version 2.0.31 or later if you're running the Azure CLI locally. Run `az --version` to find the installed version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli). Also run `az login` to create a connection with Azure.
29
29
30
-
The account you log into, or connect to Azure with must be assigned to the [Network contributor role](../role-based-access-control/built-in-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json#network-contributor) or to a [Custom role](../role-based-access-control/custom-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json)that's assigned the appropriate actions listed in[Permissions](#permissions).
30
+
Assign the [Network contributor role](../role-based-access-control/built-in-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json#network-contributor) or a [Custom role](../role-based-access-control/custom-roles.md?toc=%2fazure%2fvirtual-network%2ftoc.json)with the appropriate [Permissions](#permissions).
31
31
32
32
## Create a route table
33
33
@@ -117,7 +117,17 @@ The most common changes are to [add](#create-a-route) routes, [remove](#delete-a
117
117
118
118
## Associate a route table to a subnet
119
119
120
-
You can optionally associate a route table to a subnet. A route table can be associated to zero or more subnets. Because route tables aren't associated to virtual networks, you must associate a route table to each subnet you want the route table associated to. Azure routes all traffic leaving the subnet based on routes you've created within route tables, [default routes](virtual-networks-udr-overview.md#default), and routes propagated from an on-premises network, if the virtual network is connected to an Azure virtual network gateway (ExpressRoute or VPN). You can only associate a route table to subnets in virtual networks that exist in the same Azure location and subscription as the route table.
120
+
You can optionally associate a route table to a subnet. A route table can be associated to zero or more subnets. Route tables aren't associated to virtual networks. You must associate a route table to each subnet you want the route table associated to.
121
+
122
+
Azure routes all traffic leaving the subnet based on routes you've created:
* Routes propagated from an on-premises network, if the virtual network is connected to an Azure virtual network gateway (ExpressRoute or VPN).
129
+
130
+
You can only associate a route table to subnets in virtual networks that exist in the same Azure location and subscription as the route table.
121
131
122
132
1. Go to the [Azure portal](https://portal.azure.com) to manage your virtual network. Search for and select **Virtual networks**.
123
133
@@ -198,7 +208,7 @@ There's a limit to how many routes per route table can create per Azure location
198
208
199
209
1. Enter a unique **Route name** for the route within the route table.
200
210
201
-
:::image type="content" source="./media/manage-route-table/add-route.png" alt-text="Screenshot of the add a route page for a route table.":::
211
+
:::image type="content" source="./media/manage-route-table/add-route.png" alt-text="Screenshot of add a route page for a route table.":::
202
212
203
213
1. Enter the **Address prefix**, in Classless Inter-Domain Routing (CIDR) notation, that you want to route traffic to. The prefix can't be duplicated in more than one route within the route table, though the prefix can be within another prefix. For example, if you defined *10.0.0.0/16* as a prefix in one route, you can still define another route with the *10.0.0.0/22* address prefix. Azure selects a route for traffic based on longest prefix match. To learn more, see [How Azure selects a route](virtual-networks-udr-overview.md#how-azure-selects-a-route).
204
214
@@ -328,7 +338,7 @@ You can determine the next hop type between a virtual machine and the IP address
328
338
329
339
1. In the **Network Watcher | Next hop** page:
330
340
331
-
:::image type="content" source="./media/manage-route-table/add-route.png" alt-text="Screenshot of the add a route page for a route table.":::
341
+
:::image type="content" source="./media/manage-route-table/add-route.png" alt-text="Screenshot of add a route page for a route table.":::
0 commit comments