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
# Quickstart: Create a NAT gateway using the Azure CLI
15
15
16
-
This quickstart shows you how to use Azure Virtual Network NAT service. You'll create a NAT gateway to provide outbound connectivity for a virtual machine in Azure.
16
+
This quickstart shows you how to use the Azure Virtual Network NAT service. You'll create a NAT gateway to provide outbound connectivity for a virtual machine in Azure.
@@ -103,7 +103,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
103
103
104
104
1. Make note of the public IP address:
105
105
106
-
:::image type="content" source="./media/tutorial-create-nat-gateway-portal/find-public-ip.png" alt-text="Discover public IP address of NAT gateway" border="true":::
106
+
:::image type="content" source="./media/quickstart-create-nat-gateway-portal/find-public-ip.png" alt-text="Discover public IP address of NAT gateway" border="true":::
107
107
108
108
1. Select **All services** in the left-hand menu, select **All resources**, and then from the resources list, select **myVM** that is located in the **myResourceGroupNAT** resource group.
109
109
@@ -119,7 +119,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
119
119
120
120
1. Verify the IP address displayed matches the NAT gateway address you noted in the previous step:
121
121
122
-
:::image type="content" source="./media/tutorial-create-nat-gateway-portal/my-ip.png" alt-text="Internet Explorer showing external outbound IP" border="true":::
122
+
:::image type="content" source="./media/quickstart-create-nat-gateway-portal/my-ip.png" alt-text="Internet Explorer showing external outbound IP" border="true":::
Copy file name to clipboardExpand all lines: articles/virtual-network/nat-gateway/quickstart-create-nat-gateway-portal.md
+74-71Lines changed: 74 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,116 +7,116 @@ ms.author: allensu
7
7
ms.service: virtual-network
8
8
ms.subservice: nat
9
9
ms.topic: quickstart
10
-
ms.date: 03/02/2021
10
+
ms.date: 11/11/2022
11
11
ms.custom: template-quickstart
12
12
---
13
13
14
14
# Quickstart: Create a NAT gateway using the Azure portal
15
15
16
-
This quickstart shows you how to use Azure Virtual Network NAT service. You'll create a NAT gateway to provide outbound connectivity for a virtual machine in Azure.
16
+
This quickstart shows you how to use the Azure Virtual Network NAT service. You'll create a NAT gateway to provide outbound connectivity for a virtual machine in Azure.
17
17
18
18
## Prerequisites
19
19
20
20
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
21
21
22
-
## Virtual network
22
+
## Create a NAT gateway
23
+
24
+
Before you deploy the NAT gateway resource and the other resources, a resource group is required to contain the resources deployed. In the following steps, you'll create a resource group, NAT gateway resource, and a public IP address. You can use one or more public IP address resources, public IP prefixes, or both.
23
25
24
-
Before you deploy a VM and can use your NAT gateway, we need to create the resource group and virtualnetwork.
26
+
For information more about public IP prefixes and a NAT gateway, see [Manage NAT gateway](/azure/virtual-network/nat-gateway/manage-nat-gateway?tabs=manage-nat-portal#add-or-remove-a-public-ip-prefix)
25
27
26
28
1. Sign in to the [Azure portal](https://portal.azure.com).
27
29
28
-
2.On the upper-left side of the screen, select**Create a resource > Networking > Virtual network** or search for **Virtual network** in the search box.
30
+
2.In the search box at the top of the portal, enter**NAT gateway**. Select **NAT gateways** in the search results.
29
31
30
-
3. Select **Create**.
32
+
3. Select **+ Create**.
31
33
32
-
4. In **Create virtual network**, enter or select this information in the **Basics** tab:
34
+
4. In **Create network address translation (NAT) gateway**, enter or select this information in the **Basics** tab:
For information about availability zones and NAT gateway, see [NAT gateway and availability zones](/azure/virtual-network/nat-gateway/nat-availability-zones).
61
48
62
-
10. Select the **Security** tab.
49
+
5. Select the **Outbound IP** tab, or select the **Next: Outbound IP** button at the bottom of the page.
63
50
64
-
11. Under **BastionHost**, select **Enable**. Enter this information:
51
+
6. In the **Outbound IP** tab, enter or select the following information:
| AzureBastionSubnet address space | Enter **10.1.1.0/24**|
70
-
| Public IP Address | Select **Create new**. </br> For **Name**, enter **myBastionIP**. </br> Select **OK**. |
53
+
|**Setting**|**Value**|
54
+
| ----------- | --------- |
55
+
| Public IP addresses | Select **Create a new public IP address**. </br> In **Name**, enter **myPublicIP**. </br> Select **OK**. |
71
56
72
-
12. Select the **Review + create** tab or select the **Review + create** button.
57
+
7. Select the **Review + create** tab, or select the blue **Review + create** button at the bottom of the page.
73
58
74
-
13. Select **Create**.
59
+
8. Select **Create**.
75
60
76
-
## NAT gateway
61
+
## Virtual network
77
62
78
-
You can use one or more public IP address resources, public IP prefixes, or both. We'll add a public IP resource and a NAT gateway resource.
63
+
Before you deploy a virtual machine and can use your NAT gateway, you need to create the virtual network. This virtual network will contain the virtual machine created in later steps.
79
64
80
-
1.On the upper-left side of the screen, select**Create a resource > Networking > NAT gateway** or search for **NAT gateway** in the search box.
65
+
1.In the search box at the top of the portal, enter**Virtual network**. Select **Virtual networks** in the search results.
81
66
82
-
2. Select **Create**.
67
+
2. Select **Create**.
83
68
84
-
3. In **Create network address translation (NAT) gateway**, enter or select this information in the **Basics** tab:
69
+
3. In **Create virtual network**, enter or select this information in the **Basics** tab:
| Username | Enter a username for the virtual machine. |
136
137
| Password | Enter a password. |
@@ -150,7 +151,7 @@ In this section, you'll create a virtual machine to test the NAT gateway and ver
150
151
| ----------- | --------- |
151
152
|**Network interface**||
152
153
| Virtual network | Select **myVNet**. |
153
-
| Subnet | Select **mySubnet**. |
154
+
| Subnet | Select **mySubnet (10.1.0.0/24)**. |
154
155
| Public IP | Select **None**. |
155
156
| NIC network security group | Select **Basic**. |
156
157
| Public inbound ports | Select **None**. |
@@ -161,29 +162,31 @@ In this section, you'll create a virtual machine to test the NAT gateway and ver
161
162
162
163
## Test NAT gateway
163
164
164
-
In this section, we'll test the NAT gateway. We'll first discover the public IP of the NAT gateway. We'll then connect to the test virtual machine and verify the outbound connection through the NAT gateway.
165
+
In this section, you'll test the NAT gateway. You'll first discover the public IP of the NAT gateway. You'll then connect to the test virtual machine and verify the outbound connection through the NAT gateway.
165
166
166
-
1.Find the public IP address for the NAT gateway on the **Overview** screen. Select **All services** in the left-hand menu, select **All resources**, and then select **myPublicIP**.
167
+
1.In the search box at the top of the portal, enter **Public IP**. Select **Public IP addresses** in the search results.
167
168
168
-
2.Make note of the public IP address:
169
+
2.Select **myPublicIP**.
169
170
170
-
:::image type="content" source="./media/tutorial-create-nat-gateway-portal/find-public-ip.png" alt-text="Discover public IP address of NAT gateway" border="true":::
171
+
3. Make note of the publicIP address:
171
172
172
-
3. Select **All services** in the left-hand menu, select **All resources**, and then from the resources list, select **myVM** that is located in the **myResourceGroupNAT** resource group.
173
+
:::image type="content" source="./media/quickstart-create-nat-gateway-portal/find-public-ip.png" alt-text="Discover public IP address of NAT gateway" border="true":::
173
174
174
-
4. On the **Overview** page, select **Connect**, then **Bastion**.
175
+
4. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
176
+
177
+
5. Select **myVM**.
175
178
176
-
5. Select the blue **Use Bastion** button.
179
+
4. On the **Overview** page, select **Connect**, then **Bastion**.
177
180
178
-
6. Enter the username and password entered during VM creation.
181
+
6. Enter the username and password entered during VM creation. Select **Connect**.
179
182
180
-
7. Open **Internet Explorer** on **myTestVM**.
183
+
7. Open **Microsoft Edge** on **myTestVM**.
181
184
182
185
8. Enter **https://whatsmyip.com** in the address bar.
183
186
184
187
9. Verify the IP address displayed matches the NAT gateway address you noted in the previous step:
185
188
186
-
:::image type="content" source="./media/tutorial-create-nat-gateway-portal/my-ip.png" alt-text="Internet Explorer showing external outbound IP" border="true":::
189
+
:::image type="content" source="./media/quickstart-create-nat-gateway-portal/my-ip.png" alt-text="Internet Explorer showing external outbound IP" border="true":::
# Quickstart: Create a NAT gateway using Azure PowerShell
15
15
16
-
This quickstart shows you how to use Azure Virtual Network NAT service. You'll create a NAT gateway to provide outbound connectivity for a virtual machine in Azure.
16
+
This quickstart shows you how to use the Azure Virtual Network NAT service. You'll create a NAT gateway to provide outbound connectivity for a virtual machine in Azure.
17
17
18
18
## Prerequisites
19
19
@@ -188,7 +188,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
188
188
189
189
2. Make note of the public IP address:
190
190
191
-
:::image type="content" source="./media/tutorial-create-nat-gateway-portal/find-public-ip.png" alt-text="Discover public IP address of NAT gateway" border="true":::
191
+
:::image type="content" source="./media/quickstart-create-nat-gateway-portal/find-public-ip.png" alt-text="Discover public IP address of NAT gateway" border="true":::
192
192
193
193
3. Select **All services** in the left-hand menu, select **All resources**, and then from the resources list, select **myVM** that is located in the **myResourceGroupNAT** resource group.
194
194
@@ -204,7 +204,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
204
204
205
205
9. Verify the IP address displayed matches the NAT gateway address you noted in the previous step:
206
206
207
-
:::image type="content" source="./media/tutorial-create-nat-gateway-portal/my-ip.png" alt-text="Internet Explorer showing external outbound IP" border="true":::
207
+
:::image type="content" source="./media/quickstart-create-nat-gateway-portal/my-ip.png" alt-text="Internet Explorer showing external outbound IP" border="true":::
0 commit comments