Skip to content

Commit 2c15c7f

Browse files
authored
Merge pull request #218135 from asudbring/nat-freshness-qs
Freshness update for quickstart NAT gateway portal
2 parents d90bc7b + db5d851 commit 2c15c7f

File tree

7 files changed

+82
-79
lines changed

7 files changed

+82
-79
lines changed
109 KB
Loading
294 KB
Loading

articles/virtual-network/nat-gateway/quickstart-create-nat-gateway-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ description: Get started creating a NAT gateway using the Azure CLI.
55
author: asudbring
66
ms.author: allensu
77
ms.service: virtual-network
8-
ms.subservice: nat
8+
ms.subservice: nat
99
ms.topic: quickstart
1010
ms.date: 02/04/2022
1111
ms.custom: template-quickstart, devx-track-azurecli
1212
---
1313

1414
# Quickstart: Create a NAT gateway using the Azure CLI
1515

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.
1717

1818
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
1919

@@ -59,7 +59,7 @@ Create a virtual network with a subnet with [az network vnet create](/cli/azure/
5959

6060
Create an Azure Bastion host to access the virtual machine.
6161

62-
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-create) to create a Azure Bastion subnet.
62+
Use [az network vnet subnet create](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-create) to create an Azure Bastion subnet.
6363

6464
:::code language="azurecli" source="~/azure_cli_scripts/virtual-network/create-nat-gateway/create-nat-gateway-cli.sh" id="subnet":::
6565

@@ -103,7 +103,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
103103

104104
1. Make note of the public IP address:
105105

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":::
107107

108108
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.
109109

@@ -119,7 +119,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
119119

120120
1. Verify the IP address displayed matches the NAT gateway address you noted in the previous step:
121121

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":::
123123

124124
## Clean up resources
125125

articles/virtual-network/nat-gateway/quickstart-create-nat-gateway-portal.md

Lines changed: 74 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -7,116 +7,116 @@ ms.author: allensu
77
ms.service: virtual-network
88
ms.subservice: nat
99
ms.topic: quickstart
10-
ms.date: 03/02/2021
10+
ms.date: 11/11/2022
1111
ms.custom: template-quickstart
1212
---
1313

1414
# Quickstart: Create a NAT gateway using the Azure portal
1515

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.
1717

1818
## Prerequisites
1919

2020
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2121

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.
2325

24-
Before you deploy a VM and can use your NAT gateway, we need to create the resource group and virtual network.
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)
2527

2628
1. Sign in to the [Azure portal](https://portal.azure.com).
2729

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.
2931

30-
3. Select **Create**.
32+
3. Select **+ Create**.
3133

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:
3335

3436
| **Setting** | **Value** |
3537
|------------------|-----------------------------------------------------------------|
3638
| **Project Details** | |
37-
| Subscription | Select your Azure subscription |
39+
| Subscription | Select your Azure subscription. |
3840
| Resource Group | Select **Create new**. </br> Enter **myResourceGroupNAT**. </br> Select **OK**. |
3941
| **Instance details** | |
40-
| Name | Enter **myVNet** |
41-
| Region | Select **(Europe) West Europe** |
42-
43-
5. Select the **IP Addresses** tab or select the **Next: IP Addresses** button at the bottom of the page.
44-
45-
6. In the **IP Addresses** tab, enter this information:
46-
47-
| Setting | Value |
48-
|--------------------|----------------------------|
49-
| IPv4 address space | Enter **10.1.0.0/16** |
50-
51-
7. Select **+ Add subnet**.
52-
53-
8. In **Edit subnet**, enter this information:
54-
55-
| Setting | Value |
56-
|--------------------|----------------------------|
57-
| Subnet name | Enter **mySubnet** |
58-
| Subnet address range | Enter **10.1.0.0/24** |
42+
| NAT gateway name | Enter **myNATgateway** |
43+
| Region | Select **West Europe** |
44+
| Availability Zone | Select **No Zone**. |
45+
| Idle timeout (minutes) | Enter **10**. |
5946

60-
9. Select **Add**.
47+
For information about availability zones and NAT gateway, see [NAT gateway and availability zones](/azure/virtual-network/nat-gateway/nat-availability-zones).
6148

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.
6350

64-
11. Under **BastionHost**, select **Enable**. Enter this information:
51+
6. In the **Outbound IP** tab, enter or select the following information:
6552

66-
| Setting | Value |
67-
|--------------------|----------------------------|
68-
| Bastion name | Enter **myBastionHost** |
69-
| 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**. |
7156

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.
7358

74-
13. Select **Create**.
59+
8. Select **Create**.
7560

76-
## NAT gateway
61+
## Virtual network
7762

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.
7964

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.
8166

82-
2. Select **Create**.
67+
2. Select **Create**.
8368

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:
8570

8671
| **Setting** | **Value** |
8772
|------------------|-----------------------------------------------------------------|
8873
| **Project Details** | |
89-
| Subscription | Select your Azure subscription. |
74+
| Subscription | Select your Azure subscription |
9075
| Resource Group | Select **myResourceGroupNAT**. |
9176
| **Instance details** | |
92-
| Name | Enter **myNATgateway** |
93-
| Region | Select **(Europe) West Europe** |
94-
| Availability Zone | Select **None**. |
95-
| Idle timeout (minutes) | Enter **10**. |
77+
| Name | Enter **myVNet** |
78+
| Region | Select **(Europe) West Europe** |
9679

97-
4. Select the **Outbound IP** tab, or select the **Next: Outbound IP** button at the bottom of the page.
80+
4. Select the **IP Addresses** tab or select the **Next: IP Addresses** button at the bottom of the page.
9881

99-
5. In the **Outbound IP** tab, enter or select the following information:
82+
5. Accept the default IPv4 address space of **10.1.0.0/16**.
10083

101-
| **Setting** | **Value** |
102-
| ----------- | --------- |
103-
| Public IP addresses | Select **Create a new public IP address**. </br> In **Name**, enter **myPublicIP**. </br> Select **OK**. |
84+
6. In the subnet section in **Subnet name**, select the **default** subnet.
85+
86+
7. In **Edit subnet**, enter this information:
87+
88+
| Setting | Value |
89+
|--------------------|----------------------------|
90+
| Subnet name | Enter **mySubnet** |
91+
| Subnet address range | Enter **10.1.0.0/24** |
92+
| **NAT GATEWAY** |
93+
| NAT gateway | Select **myNATgateway**. |
10494

105-
6. Select the **Subnet** tab, or select the **Next: Subnet** button at the bottom of the page.
95+
8. Select **Save**.
10696

107-
7. In the **Subnet** tab, select **myVNet** in the **Virtual network** pull-down.
97+
9. Select the **Security** tab.
10898

109-
8. Check the box next to **mySubnet**.
99+
10. Under **BastionHost**, select **Enable**. Enter this information:
110100

111-
9. Select the **Review + create** tab, or select the blue **Review + create** button at the bottom of the page.
101+
| Setting | Value |
102+
|--------------------|----------------------------|
103+
| Bastion name | Enter **myBastionHost** |
104+
| AzureBastionSubnet address space | Enter **10.1.1.0/26** |
105+
| Public IP Address | Select **Create new**. </br> For **Name**, enter **myBastionIP**. </br> Select **OK**. |
112106

113-
10. Select **Create**.
107+
11. Select the **Review + create** tab or select the **Review + create** button.
108+
109+
12. Select **Create**.
110+
111+
It can take a few minutes for the deployment of the virtual network to complete. Proceed to the next steps when the deployment completes.
114112

115113
## Virtual machine
116114

117115
In this section, you'll create a virtual machine to test the NAT gateway and verify the public IP address of the outbound connection.
118116

119-
1. On the upper-left side of the portal, select **Create a resource** > **Compute** > **Virtual machine**.
117+
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
118+
119+
2. Select **+ Create** > **Azure virtual machine**.
120120

121121
2. In the **Create a virtual machine** page in the **Basics** tab, enter, or select the following information:
122122

@@ -129,8 +129,9 @@ In this section, you'll create a virtual machine to test the NAT gateway and ver
129129
| Virtual machine name | Enter **myVM**. |
130130
| Region | Select **(Europe) West Europe**. |
131131
| Availability options | Select **No infrastructure redundancy required**. |
132-
| Image | Select **Windows Server 2019 Datacenter - Gen2**. |
133-
| Size | Select **Standard_DS1_v2**. |
132+
| Security type | Select **Standard**. |
133+
| Image | Select **Windows Server 2022 Datacenter: Azure Edition - Gen2**. |
134+
| Size | Select a size. |
134135
| **Administrator account** | |
135136
| Username | Enter a username for the virtual machine. |
136137
| Password | Enter a password. |
@@ -150,7 +151,7 @@ In this section, you'll create a virtual machine to test the NAT gateway and ver
150151
| ----------- | --------- |
151152
| **Network interface** | |
152153
| Virtual network | Select **myVNet**. |
153-
| Subnet | Select **mySubnet**. |
154+
| Subnet | Select **mySubnet (10.1.0.0/24)**. |
154155
| Public IP | Select **None**. |
155156
| NIC network security group | Select **Basic**. |
156157
| 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
161162

162163
## Test NAT gateway
163164

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.
165166

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.
167168

168-
2. Make note of the public IP address:
169+
2. Select **myPublicIP**.
169170

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 public IP address:
171172

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":::
173174

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**.
175178

176-
5. Select the blue **Use Bastion** button.
179+
4. On the **Overview** page, select **Connect**, then **Bastion**.
177180

178-
6. Enter the username and password entered during VM creation.
181+
6. Enter the username and password entered during VM creation. Select **Connect**.
179182

180-
7. Open **Internet Explorer** on **myTestVM**.
183+
7. Open **Microsoft Edge** on **myTestVM**.
181184

182185
8. Enter **https://whatsmyip.com** in the address bar.
183186

184187
9. Verify the IP address displayed matches the NAT gateway address you noted in the previous step:
185188

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":::
187190

188191
## Clean up resources
189192

articles/virtual-network/nat-gateway/quickstart-create-nat-gateway-powershell.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.custom: template-quickstart, devx-track-azurepowershell
1313

1414
# Quickstart: Create a NAT gateway using Azure PowerShell
1515

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.
1717

1818
## Prerequisites
1919

@@ -188,7 +188,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
188188

189189
2. Make note of the public IP address:
190190

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":::
192192

193193
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.
194194

@@ -204,7 +204,7 @@ In this section, we'll test the NAT gateway. We'll first discover the public IP
204204

205205
9. Verify the IP address displayed matches the NAT gateway address you noted in the previous step:
206206

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":::
208208

209209
## Clean up resources
210210

0 commit comments

Comments
 (0)