Skip to content

Commit 1779659

Browse files
authored
Merge pull request #106170 from TimShererWithAquent/us1680669c
[1680669 Freshness]
2 parents eac2bdc + 60f14c5 commit 1779659

File tree

1 file changed

+80
-85
lines changed

1 file changed

+80
-85
lines changed
Lines changed: 80 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
11
---
22
title: Create a virtual network - quickstart - Azure portal
3-
titlesuffix: Azure Virtual Network
4-
description: In this quickstart, you learn to create a virtual network using the Azure portal. A virtual network lets Azure resources, like virtual machines, securely communicate with each other and with the internet
5-
services: virtual-network
6-
documentationcenter: virtual-network
3+
titleSuffix: Azure Virtual Network
4+
description: 'Quickstart: Create a virtual network in the Azure portal. These networks let Azure resources, like VMs, securely communicate with each other and the internet.'
75
author: KumudD
86
tags: azure-resource-manager
9-
Customer intent: I want to create a virtual network so that virtual machines can securely communicate with each other and with the internet.
107
ms.service: virtual-network
118
ms.devlang: na
129
ms.topic: quickstart
1310
ms.tgt_pltfrm: virtual-network
1411
ms.workload: infrastructure
15-
ms.date: 07/08/2019
12+
ms.date: 03/05/2020
1613
ms.author: kumud
1714

1815
---
1916

2017
# Quickstart: Create a virtual network using the Azure portal
2118

22-
A virtual network is the fundamental building block for your private network in Azure. It enables Azure resources, like virtual machines (VMs), to securely communicate with each other and with the internet. In this Quickstart, you will learn how to create a virtual network using the Azure portal. Then, you can deploy two VMs into the virtual network, securely communicate between the two VMs, and connect to the VMs from the internet.
19+
In this quickstart, you learn how to create a virtual network using the Azure portal. You deploy two virtual machines (VMs). Next, you securely communicate between VMs and connect to VMs from the internet. A virtual network is the fundamental building block for your private network in Azure. It enables Azure resources, like VMs, to securely communicate with each other and with the internet.
2320

21+
## Prerequisites
2422

25-
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) now.
23+
* An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2624

2725
## Sign in to Azure
2826

2927
Sign in to the [Azure portal](https://portal.azure.com).
3028

3129
## Create a virtual network
3230

33-
1. From the Azure portal menu, select **Create a resource**.
34-
35-
2. From the Azure Marketplace, select **Networking** > **Virtual network**.
31+
1. From the Azure portal menu, select **Create a resource**. From the Azure Marketplace, select **Networking** > **Virtual network**.
3632

37-
3. In **Create virtual network**, enter or select this information:
33+
1. In **Create virtual network**, enter or select this information:
3834

3935
| Setting | Value |
4036
| ------- | ----- |
41-
| Name | Enter *myVirtualNetwork*. |
42-
| Address space | Enter *10.1.0.0/16*. |
4337
| Subscription | Select your subscription.|
4438
| Resource group | Select **Create new**, enter *myResourceGroup*, then select **OK**. |
39+
| Name | Enter *myVirtualNetwork*. |
4540
| Location | Select **East US**.|
46-
| Subnet - Name | Enter *myVirtualSubnet*. |
47-
| Subnet - Address range | Enter *10.1.0.0/24*. |
4841

49-
4. Leave the rest as default and select **Create**.
42+
1. Select **Next: IP Addresses**, and for **IPv4 address space**, enter *10.1.0.0/16*.
43+
44+
1. Select **Add subnet**, then enter *myVirtualSubnet* for **Subnet name** and *10.1.0.0/24* for **Subnet address range**.
45+
46+
1. Select **Add**, then select **Review + create**. Leave the rest as default and select **Create**.
47+
48+
1. In **Create virtual network**, select **Create**.
5049

5150
## Create virtual machines
5251

@@ -56,114 +55,108 @@ Create two VMs in the virtual network:
5655

5756
1. From the Azure portal menu, select **Create a resource**.
5857

59-
2. From the Azure Marketplace, select **Compute** > **Windows Server 2019 Datacenter**.
58+
1. From the Azure Marketplace, select **Compute** > **Windows Server 2019 Datacenter**. Select **Create**.
6059

61-
3. In **Create a virtual machine - Basics**, enter or select this information:
60+
1. In **Create a virtual machine - Basics**, enter or select this information:
6261

6362
| Setting | Value |
6463
| ------- | ----- |
65-
| **PROJECT DETAILS** | |
64+
| **Project details** | |
6665
| Subscription | Select your subscription. |
67-
| Resource group | Select **myResourceGroup**. You created this in the previous section. |
68-
| **INSTANCE DETAILS** | |
66+
| Resource group | Select **myResourceGroup**. You created this resource group in the previous section. |
67+
| **Instance details** | |
6968
| Virtual machine name | Enter *myVm1*. |
7069
| Region | Select **East US**. |
71-
| Availability options | Leave the default **No infrastructure redundancy required**. |
72-
| Image | Leave the default **Windows Server 2019 Datacenter**. |
73-
| Size | Leave the default **Standard DS1 v2**. |
74-
| **ADMINISTRATOR ACCOUNT** | |
70+
| Availability options | Default to **No infrastructure redundancy required**. |
71+
| Image | Default to **Windows Server 2019 Datacenter**. |
72+
| Size | Default to **Standard DS1 v2**. |
73+
| **Administrator account** | |
7574
| Username | Enter a username of your choosing. |
7675
| Password | Enter a password of your choosing. The password 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).|
77-
| Confirm Password | Reenter password. |
78-
| **INBOUND PORT RULES** | |
79-
| Public inbound ports | Leave the default **None**. |
80-
| **SAVE MONEY** | |
81-
| Already have a Windows license? | Leave the default **No**. |
76+
| Confirm Password | Re-enter password. |
77+
| **Inbound port rules** | |
78+
| Public inbound ports | Select **Allow selected ports**. |
79+
| Select inbound ports | Enter *HTTP (80)* and *RDP (3389)*. |
80+
| **Save money** | |
81+
| Already have a Windows license? | Default to **No**. |
8282

83-
4. Select **Next : Disks**.
83+
1. Select **Next: Disks**.
8484

85-
5. In **Create a virtual machine - Disks**, leave the defaults and select **Next : Networking**.
85+
1. In **Create a virtual machine - Disks**, keep the defaults and select **Next: Networking**.
8686

87-
6. In **Create a virtual machine - Networking**, select this information:
87+
1. In **Create a virtual machine - Networking**, select this information:
8888

8989
| Setting | Value |
9090
| ------- | ----- |
91-
| Virtual network | Leave the default **myVirtualNetwork**. |
92-
| Subnet | Leave the default **myVirtualSubnet (10.1.0.0/24)**. |
93-
| Public IP | Leave the default **(new) myVm-ip**. |
94-
| Public inbound ports | Select **Allow selected ports**. |
95-
| Select inbound ports | Select **HTTP** and **RDP**.
91+
| Virtual network | Default to **myVirtualNetwork**. |
92+
| Subnet | Default to **myVirtualSubnet (10.1.0.0/24)**. |
93+
| Public IP | Default to **(new) myVm-ip**. |
94+
| NIC network security group | Default to **Basic**. |
95+
| Public inbound ports | Default to **Allow selected ports**. |
96+
| Select inbound ports | Default to **HTTP** and **RDP**.
9697

97-
7. Select **Next : Management**.
98+
1. Select **Next: Management**.
9899

99-
8. In **Create a virtual machine - Management**, for **Diagnostics storage account**, select **Create New**.
100+
1. In **Create a virtual machine - Management**, for **Diagnostics storage account**, select **Create New**.
100101

101-
9. In **Create storage account**, enter or select this information:
102+
1. In **Create storage account**, enter or select this information:
102103

103104
| Setting | Value |
104105
| ------- | ----- |
105106
| Name | Enter *myvmstorageaccount*. If this name is taken, create a unique name.|
106-
| Account kind | Leave the default **Storage (general purpose v1)**. |
107-
| Performance | Leave the default **Standard**. |
108-
| Replication | Leave the default **Locally-redundant storage (LRS)**. |
107+
| Account kind | Default to **Storage (general purpose v1)**. |
108+
| Performance | Default to **Standard**. |
109+
| Replication | Default to **Locally-redundant storage (LRS)**. |
109110

110-
10. Select **OK**
111+
1. Select **OK**, then select **Review + create**. You're taken to the **Review + create** page where Azure validates your configuration.
111112

112-
11. Select **Review + create**. You're taken to the **Review + create** page where Azure validates your configuration.
113-
114-
12. When you see the **Validation passed** message, select **Create**.
113+
1. When you see the **Validation passed** message, select **Create**.
115114

116115
### Create the second VM
117116

118-
1. Complete steps 1 and 9 from above.
119-
120-
> [!NOTE]
121-
> In step 2, for the **Virtual machine name**, enter *myVm2*.
122-
>
123-
> In step 7, for **Diagnosis storage account**, make sure you select **myvmstorageaccount**.
117+
Repeat the procedure in the previous section to create another virtual machine.
124118

125-
2. Select **Review + create**. You're taken to the **Review + create** page and Azure validates your configuration.
126-
127-
3. When you see the **Validation passed** message, select **Create**.
119+
> [!IMPORTANT]
120+
> For the **Virtual machine name**, enter *myVm2*.
121+
>
122+
> For **Diagnosis storage account**, make sure you select **myvmstorageaccount**, instead of creating one.
128123
129124
## Connect to a VM from the internet
130125

131126
After you've created *myVm1*, connect to the internet.
132127

133-
1. In the portal's search bar, enter *myVm1*.
128+
1. In the Azure portal, search for and select *myVm1*.
134129

135-
2. Select the **Connect** button.
130+
1. Select **Connect**, then **RDP**.
136131

137132
![Connect to a virtual machine](./media/quick-create-portal/connect-to-virtual-machine.png)
138133

139-
After selecting the **Connect** button, **Connect to virtual machine** opens.
140-
141-
3. Select **Download RDP File**. Azure creates a Remote Desktop Protocol (*.rdp*) file and downloads it to your computer.
134+
The **Connect** page opens.
142135

143-
4. Open the downloaded *.rdp* file.
136+
1. Select **Download RDP File**. Azure creates a Remote Desktop Protocol (*.rdp*) file and downloads it to your computer.
144137

145-
1. If prompted, select **Connect**.
138+
1. Open the RDP file. If prompted, select **Connect**.
146139

147-
2. Enter the username and password you specified when creating the VM.
140+
1. Enter the username and password you specified when creating the VM.
148141

149-
> [!NOTE]
150-
> You may need to select **More choices** > **Use a different account**, to specify the credentials you entered when you created the VM.
142+
> [!NOTE]
143+
> You may need to select **More choices** > **Use a different account**, to specify the credentials you entered when you created the VM.
151144
152-
5. Select **OK**.
145+
1. Select **OK**.
153146

154-
6. You may receive a certificate warning during the sign in process. If you receive a certificate warning, select **Yes** or **Continue**.
147+
1. You may receive a certificate warning when you sign in. If you receive a certificate warning, select **Yes** or **Continue**.
155148

156-
7. Once the VM desktop appears, minimize it to go back to your local desktop.
149+
1. Once the VM desktop appears, minimize it to go back to your local desktop.
157150

158151
## Communicate between VMs
159152

160153
1. In the Remote Desktop of *myVm1*, open PowerShell.
161154

162-
2. Enter `ping myVm2`.
155+
1. Enter `ping myVm2`.
163156

164-
You'll receive a message similar to this:
157+
You'll receive a message similar to this output:
165158

166-
```powershell
159+
```output
167160
Pinging myVm2.0v0zze1s0uiedpvtxz5z0r0cxg.bx.internal.clouda
168161
Request timed out.
169162
Request timed out.
@@ -176,23 +169,23 @@ After you've created *myVm1*, connect to the internet.
176169
177170
The `ping` fails, because `ping` uses the Internet Control Message Protocol (ICMP). By default, ICMP isn't allowed through the Windows firewall.
178171
179-
3. To allow *myVm2* to ping *myVm1* in a later step, enter this command:
172+
1. To allow *myVm2* to ping *myVm1* in a later step, enter this command:
180173
181174
```powershell
182175
New-NetFirewallRule –DisplayName "Allow ICMPv4-In" –Protocol ICMPv4
183176
```
184177
185178
This command allows ICMP inbound through the Windows firewall:
186179
187-
4. Close the remote desktop connection to *myVm1*.
180+
1. Close the remote desktop connection to *myVm1*.
188181
189-
5. Complete the steps in [Connect to a VM from the internet](#connect-to-a-vm-from-the-internet) again, but connect to *myVm2*.
182+
1. Complete the steps in [Connect to a VM from the internet](#connect-to-a-vm-from-the-internet) again, but connect to *myVm2*.
190183
191-
6. From a command prompt, enter `ping myvm1`.
184+
1. From a command prompt, enter `ping myvm1`.
192185
193186
You'll get back something like this message:
194187
195-
```powershell
188+
```output
196189
Pinging myVm1.0v0zze1s0uiedpvtxz5z0r0cxg.bx.internal.cloudapp.net [10.1.0.4] with 32 bytes of data:
197190
Reply from 10.1.0.4: bytes=32 time=1ms TTL=128
198191
Reply from 10.1.0.4: bytes=32 time<1ms TTL=128
@@ -207,20 +200,22 @@ After you've created *myVm1*, connect to the internet.
207200
208201
You receive replies from *myVm1*, because you allowed ICMP through the Windows firewall on the *myVm1* VM in step 3.
209202
210-
7. Close the remote desktop connection to *myVm2*.
203+
1. Close the remote desktop connection to *myVm2*.
211204
212205
## Clean up resources
213206
207+
In this quickstart, you created a default virtual network and two VMs. You connected to one VM from the internet and securely communicated between the two VMs.
208+
214209
When you're done using the virtual network and the VMs, delete the resource group and all of the resources it contains:
215210
216-
1. Enter *myResourceGroup* in the **Search** box at the top of the portal and select **myResourceGroup** from the search results.
211+
1. Search for and select *myResourceGroup*.
217212
218-
2. Select **Delete resource group**.
213+
1. Select **Delete resource group**.
219214
220-
3. Enter *myResourceGroup* for **TYPE THE RESOURCE GROUP NAME** and select **Delete**.
215+
1. Enter *myResourceGroup* for **TYPE THE RESOURCE GROUP NAME** and select **Delete**.
221216
222217
## Next steps
223218
224-
In this Quickstart, you created a default virtual network and two VMs. You connected to one VM from the internet and securely communicated between the two VMs. To learn more about virtual network settings, see [Manage a virtual network](manage-virtual-network.md).
219+
To learn more about virtual network settings, see [Create, change, or delete a virtual network](manage-virtual-network.md).
225220
226-
By default, Azure allows unrestricted secure communication between VMs. Conversely, it only allows inbound remote desktop connections to Windows VMs from the internet. To learn more about configuring different types of VM network communications, go to the [Filter network traffic](tutorial-filter-network-traffic.md) tutorial.
221+
By default, Azure allows secure communication between VMs. Azure only allows inbound remote desktop connections to Windows VMs from the internet. To learn more about types of VM network communications, see [Filter network traffic](tutorial-filter-network-traffic.md).

0 commit comments

Comments
 (0)