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
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.'
7
5
author: KumudD
8
6
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.
10
7
ms.service: virtual-network
11
8
ms.devlang: na
12
9
ms.topic: quickstart
13
10
ms.tgt_pltfrm: virtual-network
14
11
ms.workload: infrastructure
15
-
ms.date: 07/08/2019
12
+
ms.date: 03/05/2020
16
13
ms.author: kumud
17
14
18
15
---
19
16
20
17
# Quickstart: Create a virtual network using the Azure portal
21
18
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.
23
20
21
+
## Prerequisites
24
22
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).
26
24
27
25
## Sign in to Azure
28
26
29
27
Sign in to the [Azure portal](https://portal.azure.com).
30
28
31
29
## Create a virtual network
32
30
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**.
36
32
37
-
3. In **Create virtual network**, enter or select this information:
33
+
1. In **Create virtual network**, enter or select this information:
38
34
39
35
| Setting | Value |
40
36
| ------- | ----- |
41
-
| Name | Enter *myVirtualNetwork*. |
42
-
| Address space | Enter *10.1.0.0/16*. |
43
37
| Subscription | Select your subscription.|
44
38
| Resource group | Select **Create new**, enter *myResourceGroup*, then select **OK**. |
39
+
| Name | Enter *myVirtualNetwork*. |
45
40
| Location | Select **East US**.|
46
-
| Subnet - Name | Enter *myVirtualSubnet*. |
47
-
| Subnet - Address range | Enter *10.1.0.0/24*. |
48
41
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**.
50
49
51
50
## Create virtual machines
52
51
@@ -56,114 +55,108 @@ Create two VMs in the virtual network:
56
55
57
56
1. From the Azure portal menu, select **Create a resource**.
58
57
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**.
60
59
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:
62
61
63
62
| Setting | Value |
64
63
| ------- | ----- |
65
-
|**PROJECT DETAILS**||
64
+
|**Project details**||
66
65
| 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**||
69
68
| Virtual machine name | Enter *myVm1*. |
70
69
| Region | Select **East US**. |
71
-
| Availability options |Leave the default**No infrastructure redundancy required**. |
72
-
| Image |Leave the default**Windows Server 2019 Datacenter**. |
| Image |Default to**Windows Server 2019 Datacenter**. |
72
+
| Size |Default to**Standard DS1 v2**. |
73
+
|**Administrator account**||
75
74
| Username | Enter a username of your choosing. |
76
75
| 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**. |
82
82
83
-
4. Select **Next: Disks**.
83
+
1. Select **Next: Disks**.
84
84
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**.
86
86
87
-
6. In **Create a virtual machine - Networking**, select this information:
87
+
1. In **Create a virtual machine - Networking**, select this information:
88
88
89
89
| Setting | Value |
90
90
| ------- | ----- |
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**.
96
97
97
-
7. Select **Next: Management**.
98
+
1. Select **Next: Management**.
98
99
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**.
100
101
101
-
9. In **Create storage account**, enter or select this information:
102
+
1. In **Create storage account**, enter or select this information:
102
103
103
104
| Setting | Value |
104
105
| ------- | ----- |
105
106
| 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)**. |
This command allows ICMP inbound through the Windows firewall:
186
179
187
-
4. Close the remote desktop connection to *myVm1*.
180
+
1. Close the remote desktop connection to *myVm1*.
188
181
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*.
190
183
191
-
6. From a command prompt, enter `ping myvm1`.
184
+
1. From a command prompt, enter `ping myvm1`.
192
185
193
186
You'll get back something like this message:
194
187
195
-
```powershell
188
+
```output
196
189
Pinging myVm1.0v0zze1s0uiedpvtxz5z0r0cxg.bx.internal.cloudapp.net [10.1.0.4] with 32 bytes of data:
197
190
Reply from 10.1.0.4: bytes=32 time=1ms TTL=128
198
191
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.
207
200
208
201
You receive replies from *myVm1*, because you allowed ICMP through the Windows firewall on the *myVm1* VM in step 3.
209
202
210
-
7. Close the remote desktop connection to *myVm2*.
203
+
1. Close the remote desktop connection to *myVm2*.
211
204
212
205
## Clean up resources
213
206
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
+
214
209
When you're done using the virtual network and the VMs, delete the resource group and all of the resources it contains:
215
210
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*.
217
212
218
-
2. Select **Delete resource group**.
213
+
1. Select **Delete resource group**.
219
214
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**.
221
216
222
217
## Next steps
223
218
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).
225
220
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