Skip to content

Commit d908663

Browse files
Changed the order of tasks per issue #40425.
1 parent f62acfe commit d908663

File tree

9 files changed

+90
-116
lines changed

9 files changed

+90
-116
lines changed
-52.3 KB
Loading
Binary file not shown.
396 Bytes
Loading
127 KB
Loading
30.5 KB
Loading
-3.29 KB
Loading
-3.21 KB
Loading
96.1 KB
Loading

articles/virtual-network/tutorial-create-route-table-portal.md

Lines changed: 90 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -20,188 +20,162 @@ ms.author: kumud
2020
Azure routes traffic between all subnets within a virtual network, by default. You can create your own routes to override Azure's default routing. The ability to create custom routes is helpful if, for example, you want to route traffic between subnets through a network virtual appliance (NVA). In this tutorial, you learn how to:
2121

2222
> [!div class="checklist"]
23+
> * Create an NVA that routes traffic
2324
> * Create a route table
2425
> * Create a route
25-
> * Create a virtual network with multiple subnets
2626
> * Associate a route table to a subnet
27-
> * Create an NVA that routes traffic
2827
> * Deploy virtual machines (VM) into different subnets
2928
> * Route traffic from one subnet to another through an NVA
3029
3130
If you prefer, you can finish this tutorial using the [Azure CLI](tutorial-create-route-table-cli.md) or [Azure PowerShell](tutorial-create-route-table-powershell.md).
3231

3332
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
3433

35-
## Create a route table
36-
37-
1. On the [Azure portal](https://portal.azure.com) menu or from the **Home** page, select **Create a resource**.
38-
39-
2. In the search box, enter *Route table*. When **Route table** appears in the search results, select it.
40-
41-
3. In the **Route table** page, select **Create**.
42-
43-
4. In **Create route table**, enter or select this information:
44-
45-
| Setting | Action |
46-
| ------- | ----- |
47-
| Name | Enter *myRouteTablePublic*. |
48-
| Subscription | Select your subscription. |
49-
| Resource group | Select **Create new**, enter *myResourceGroup*, and select **OK**. |
50-
| Location | Select **(US) East US**.
51-
| Virtual network gateway route propagation | Leave the default **Enabled**. |
34+
## Create an NVA
5235

53-
5. Select **Create**.
36+
Network virtual appliances (NVAs) are virtual machines that help with network functions, such as routing and firewall optimization. You can select a different operating system if you want. This tutorial assumes you're using **Windows Server 2016 Datacenter**.
5437

55-
## Create a route
38+
1. On the [Azure portal](https://portal.azure.com) menu or from the **Home** page, select **Create a resource**.
5639

57-
1. Go to the [Azure portal](https://portal.azure.com) to manage your route table. Search for and select **Route tables**.
40+
1. Choose **Security** > **Windows Server 2016 Datacenter**.
5841

59-
1. Pick the name of your route table (**myRouteTablePublic**).
42+
![Windows Server 2016 Datacenter, Create a VM, Azure portal](./media/tutorial-create-route-table-portal/vm-ws2016-datacenter.png)
6043

61-
1. Choose **Routes** > **Add**.
44+
1. In the **Create a virtual machine** window, under **Basics**, enter or select this information:
6245

63-
![Add route, route table, Azure portal](./media/tutorial-create-route-table-portal/add-route.png)
46+
| Section | Setting | Action |
47+
| ------- | ------- | ----- |
48+
| **Project details** | Subscription | Choose your subscription. |
49+
| | Resource group | Select **Create new**, enter *myResourceGroup*, and select **OK**. |
50+
| **Instance details** | Virtual machine name | Enter *myVmNva*. |
51+
| | Region | Choose **(US) East US**. |
52+
| | Availability options | Choose **No infrastructure redundancy required**. |
53+
| | Image | Choose **Windows Server 2016 Datacenter**. |
54+
| | Size | Keep the default, **Standard DS1 v2**. |
55+
| **Administrator account** | Username | Enter a user name of your choosing. |
56+
| | Password | Enter a password of your choosing, which must be at least 12 characters long and meet the [defined complexity requirements](../virtual-machines/windows/faq.md?toc=%2fazure%2fvirtual-network%2ftoc.json#what-are-the-password-requirements-when-creating-a-vm). |
57+
| | Confirm Password | Enter your password again. |
58+
| **Inbound port rules** | Public inbound ports | Pick **None**. |
59+
| **Save money** | Already have a Windows Server license? | Pick **No**. |
60+
61+
![Basics, Create a virtual machine, Azure portal](./media/tutorial-create-route-table-portal/basics-create-virtual-machine.png)
6462

65-
1. In **Add route**, enter or select this information:
63+
Then select **Next : Disks >**.
6664

67-
| Setting | Value |
68-
| ------- | ----- |
69-
| Route name | *ToPrivateSubnet* |
70-
| Address prefix | *10.0.1.0/24* |
71-
| Next hop type | **Virtual appliance** |
72-
| Next hop address | *10.0.2.4* |
65+
1. Under **Disks**, select the settings that are right for your needs, and then select **Next : Networking >**.
7366

74-
1. Select **OK**.
67+
1. Under **Networking**:
7568

76-
## Associate a route table to a subnet
69+
1. For **Virtual network**, select **Create new**.
70+
71+
1. In the **Create virtual network** dialog box, under **Name**, enter *myVirtualNetwork*.
7772

78-
Before you can associate a route table to a subnet, you have to create a virtual network and subnet.
73+
1. In **Address space**, replace the existing address range with *10.0.0.0/16*.
7974

80-
### Create a virtual network
75+
1. In **Subnets**, select the **Delete** icon to delete the existing subnet, and then enter the following combinations of **Subnet name** and **Address range**. Once a valid name and range is entered, a new empty row appears below it.
8176

82-
1. On the [Azure portal](https://portal.azure.com) menu or from the **Home** page, select **Create a resource**.
77+
| Subnet name | Address range |
78+
| ----------- | ------------- |
79+
| *Public* | *10.0.0.0/24* |
80+
| *Private* | *10.0.1.0/24* |
81+
| *DMZ* | *10.0.2.0/24* |
8382

84-
1. Choose **Networking** > **Virtual network**.
83+
1. Select **OK** to exit the dialog box.
8584

86-
1. In **Basics**, enter or select this information:
85+
1. In **Subnet**, choose **Public (10.0.0.0/24)**.
8786

88-
| Setting | Value |
89-
| ------- | ----- |
90-
| Subscription | Your subscription |
91-
| Resource group | **myResourceGroup** |
92-
| Name | *myVirtualNetwork* |
93-
| Region | **(US) East US** |
87+
1. In **Public IP**, choose **None**, since the VM won't connect over the internet.
9488

95-
1. Select **Next : IP Addresses >**.
89+
1. Select **Next : Management >**.
9690

97-
1. In **IP Addresses**, under **IPv4 address space**, enter *10.0.0.0/16*.
91+
1. Under **Management**:
9892

99-
1. Under the **Subnet name**/**Subnet address range** table, choose **default**. Then in the **Add subnet** dialog box, change the **Subnet name** to *Public* and change **Subnet address range** to *10.0.0.0/24*. Finally, select **Save**.
93+
1. In **Diagnostics storage account**, select **Create New**.
94+
95+
1. In the **Create storage account** dialog box, enter or select this information:
10096

101-
1. Select **Review + create**. Once you see the **Validation passed** message, select **Create** to create the new virtual network.
97+
| Setting | Value |
98+
| ------- | ----- |
99+
| Name | *mynvastorageaccount* |
100+
| Account kind | **Storage (general purpose v1)** |
101+
| Performance | **Standard** |
102+
| Replication | **Locally-redundant storage (LRS)** |
103+
104+
1. Select **OK** to exit the dialog box.
102105

103-
### Add subnets to the virtual network
106+
1. Select **Review + create**. You're taken to the **Review + create** page, and Azure validates your configuration.
104107

105-
1. Go to the [Azure portal](https://portal.azure.com) to manage your new virtual network. Search for and select **Virtual networks**.
108+
1. When you see the **Validation passed** message, select **Create**.
106109

107-
1. Pick the name of your virtual network (**myVirtualNetwork**).
110+
The VM takes a few minutes to create. Don't keep going until Azure finishes creating the VM. The **Your deployment is underway** page will show you deployment details.
108111

109-
1. Choose **Subnets** > **Subnet**.
112+
1. When your VM is ready, select **Go to resource**.
110113

111-
![Add subnet, virtual network, Azure portal](./media/tutorial-create-route-table-portal/add-subnet.png)
114+
## Create a route table
112115

113-
1. In **Add subnet**, enter this information:
116+
1. On the [Azure portal](https://portal.azure.com) menu or from the **Home** page, select **Create a resource**.
114117

115-
| Setting | Value |
116-
| ------- | ----- |
117-
| Name | *Private*. |
118-
| Address space (CIDR block) | *10.0.1.0/24* |
118+
2. In the search box, enter *Route table*. When **Route table** appears in the search results, select it.
119119

120-
1. Leave the rest of the defaults and select **OK**.
120+
3. In the **Route table** page, select **Create**.
121121

122-
1. Select **Subnet** again. This time, enter this information:
122+
4. In **Create route table**, enter or select this information:
123123

124124
| Setting | Value |
125125
| ------- | ----- |
126-
| Name | *DMZ* |
127-
| Address space (CIDR block) | *10.0.2.0/24* |
128-
129-
1. Like the last time, leave the rest of the defaults and select **OK**.
130-
131-
Azure shows the three subnets: **Public**, **Private**, and **DMZ**.
132-
133-
### Associate myRouteTablePublic to your Public subnet
134-
135-
1. In the virtual network's subnet list, choose **Public**.
136-
137-
1. In **Route table**, choose the route table you created (**myRouteTablePublic**), and then select **Save** to associate your route table to the *Public* subnet.
138-
139-
![Associate route table, subnet list, virtual network, Azure portal](./media/tutorial-create-route-table-portal/associate-route-table.png)
140-
141-
## Create an NVA
126+
| Name | *myRouteTablePublic* |
127+
| Subscription | Your subscription |
128+
| Resource group | **myResourceGroup** |
129+
| Location | **(US) East US** |
130+
| Virtual network gateway route propagation | **Enabled** |
142131

143-
Network virtual appliances (NVAs) are virtual machines that help with network functions, such as routing and firewall optimization. You can select a different operating system if you want. This tutorial assumes you're using **Windows Server 2016 Datacenter**.
132+
![Create route table, Azure portal](./media/tutorial-create-route-table-portal/create-route-table.png)
144133

145-
1. On the [Azure portal](https://portal.azure.com) menu or from the **Home** page, select **Create a resource**.
134+
5. Select **Create**.
146135

147-
1. Choose **Security** > **Windows Server 2016 Datacenter**.
136+
## Create a route
148137

149-
1. In the **Create a virtual machine** window, under **Basics**, enter or select this information:
138+
1. Go to the [Azure portal](https://portal.azure.com) to manage your route table. Search for and select **Route tables**.
150139

151-
| Section | Setting | Value |
152-
| ------- | ------- | ----- |
153-
| **Project details** | Subscription | Your subscription |
154-
| | Resource group | Your resource group (**myResourceGroup**) |
155-
| **Instance details** | Virtual machine name | *myVmNva* |
156-
| | Region | **(US) East US** |
157-
| | Availability options | **No infrastructure redundancy required** |
158-
| | Image | **Windows Server 2016 Datacenter** |
159-
| | Size | **Standard DS1 v2** |
160-
| **Administrator account** | Username | A user name of your choosing |
161-
| | Password | A password of your choosing, which must be at least 12 characters long and meet the [defined complexity requirements](../virtual-machines/windows/faq.md?toc=%2fazure%2fvirtual-network%2ftoc.json#what-are-the-password-requirements-when-creating-a-vm) |
162-
| | Confirm Password | Your password again |
163-
| **Inbound port rules** | Public inbound ports | **None** |
164-
| **Save money** | Already have a Windows Server license? | **No** |
140+
1. Pick the name of your route table (**myRouteTablePublic**).
165141

166-
Then select **Next : Disks >**.
142+
1. Choose **Routes** > **Add**.
167143

168-
1. Under **Disks**, select the settings that are right for your needs, and then select **Next : Networking >**.
144+
![Add route, route table, Azure portal](./media/tutorial-create-route-table-portal/add-route.png)
169145

170-
1. Under **Networking**, select this information:
146+
1. In **Add route**, enter or select this information:
171147

172148
| Setting | Value |
173149
| ------- | ----- |
174-
| Virtual network | Your virtual network (**myVirtualNetwork**) |
175-
| Subnet | **DMZ (10.0.2.0/24)** |
176-
| Public IP | **None** (the VM won't connect over the internet) |
177-
178-
Then select **Next : Management >**.
150+
| Route name | *ToPrivateSubnet* |
151+
| Address prefix | *10.0.1.0/24* |
152+
| Next hop type | **Virtual appliance** |
153+
| Next hop address | *10.0.2.4* |
179154

180-
1. Under **Management**, for **Diagnostics storage account**, select **Create New**.
155+
1. Select **OK**.
181156

182-
1. In the **Create storage account** dialog box, enter or select this information:
157+
## Associate a route table to a subnet
183158

184-
| Setting | Value |
185-
| ------- | ----- |
186-
| Name | *mynvastorageaccount* |
187-
| Account kind | **Storage (general purpose v1)** |
188-
| Performance | **Standard** |
189-
| Replication | **Locally-redundant storage (LRS)** |
159+
1. Go to the [Azure portal](https://portal.azure.com) to manage your virtual network. Search for and select **Virtual networks**.
190160

191-
Then select **OK**.
161+
1. Pick the name of your virtual network (**myVirtualNetwork**).
192162

193-
1. Select **Review + create**. You're taken to the **Review + create** page, and Azure validates your configuration.
163+
1. In the virtual network's menu bar, choose **Subnets**.
194164

195-
1. When you see the **Validation passed** message, select **Create**.
165+
1. In the virtual network's subnet list, choose **Public**.
196166

197-
The VM takes a few minutes to create. Don't keep going until Azure finishes creating the VM. The **Your deployment is underway** page will show you deployment details.
167+
1. In **Route table**, choose the route table you created (**myRouteTablePublic**), and then select **Save** to associate your route table to the *Public* subnet.
198168

199-
1. When your VM is ready, select **Go to resource**.
169+
![Associate route table, subnet list, virtual network, Azure portal](./media/tutorial-create-route-table-portal/associate-route-table.png)
200170

201171
## Turn on IP forwarding
202172

203173
Next, turn on IP forwarding for your new NVA virtual machine, *myVmNva*. When Azure sends network traffic to *myVmNva*, if the traffic is destined for a different IP address, IP forwarding sends the traffic to the correct location.
204174

175+
1. Go to the [Azure portal](https://portal.azure.com) to manage your VM. Search for and select **Virtual machines**.
176+
177+
1. Pick the name of your VM (**myVmNva**).
178+
205179
1. In your NVA virtual machine's menu bar, select **Networking**.
206180

207181
1. Select **myvmnva123**. That's the network interface Azure created for your VM. It will have a string of numbers to make it unique for you.

0 commit comments

Comments
 (0)