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
Copy file name to clipboardExpand all lines: articles/virtual-network/quick-create-cli.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ In this quickstart, you learn how to create a virtual network. After creating a
23
23
24
24
- This quickstart requires version 2.0.28 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
25
25
26
-
## Create a resource group and a virtual network
26
+
## Create a resource group
27
27
28
28
Before you can create a virtual network, you have to create a resource group to host the virtual network. Create a resource group with [az group create](/cli/azure/group#az-group-create). This example creates a resource group named **CreateVNetQS-rg** in the **Eastus** location:
29
29
@@ -33,13 +33,25 @@ az group create \
33
33
--location eastus
34
34
```
35
35
36
-
Create a virtual network with [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create). This example creates a default virtual network named **myVNet** with one subnet named **default**:
36
+
## Create a virtual network with DDoS Protection Standard enabled
37
+
38
+
Create a DDoS Protection plan with [az network ddos-protection create](/cli/azure/network/ddos-protection#az-network-ddos-protection-create) to associate with the virtual network. This example creates a DDoS Protection plan named **myDDoSPlan** in the **EastUS** location:
39
+
40
+
```azurecli-interactive
41
+
az network ddos-protection create \
42
+
--resource-group CreateVNetQS-rg \
43
+
--name myDDoSPlan
44
+
```
45
+
46
+
Create a virtual network with [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create). This example creates a default virtual network named **myVNet** with one subnet named **default** with a DDoS Protection plan enabled:
Copy file name to clipboardExpand all lines: articles/virtual-network/quick-create-portal.md
+31-17Lines changed: 31 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.custom: mode-ui
15
15
16
16
# Quickstart: Create a virtual network using the Azure portal
17
17
18
-
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.
18
+
In this quickstart, you'll 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.
19
19
20
20
## Prerequisites
21
21
@@ -25,66 +25,80 @@ In this quickstart, you learn how to create a virtual network using the Azure po
25
25
26
26
Sign in to the [Azure portal](https://portal.azure.com).
27
27
28
-
## Create a virtual network
28
+
## Create a DDoS protection plan
29
29
30
30
1. Select **Create a resource** in the upper left-hand corner of the portal.
31
31
32
+
1. In the search box, enter **DDoS protection plan**. Select **DDoS protection plan** in the search results and then select **Create**.
32
33
33
-
1. In the search box, enter **Virtual Network**. Select **Virtual Network** in the search results.
34
-
35
-
1. In the **Virtual Network** page, select **Create**.
34
+
1. In the **Create a DDoS protection plan** page, enter or select the following information on the **Basics** tab:
36
35
37
-
1. In **Create virtual network**, enter or select this information in the **Basics** tab:
36
+
:::image type="content" source="./media/quick-create-portal/create-ddos-plan.png" alt-text="Screenshot of creating a DDoS protection plan.":::
38
37
39
38
| Setting | Value |
40
-
| ------- | ----- |
39
+
|--|--|
41
40
|**Project details**||
42
41
| Subscription | Select your subscription. |
43
42
| Resource group | Select **Create new**. </br> Enter **myResourceGroup**. </br> Select **OK**. |
44
43
|**Instance details**||
45
-
| Name | Enter **myVNet**. |
44
+
| Name | Enter **myDDoSPlan**. |
46
45
| Region | Select **(US) East US**. |
47
46
47
+
1. Select **Review + create** and then select **Create** to deploy the DDoS protection plan.
48
48
49
-
:::image type="content" source="./media/quick-create-portal/example-basics-tab.png" alt-text="Screenshot of creating a virtual network in Azure portal." border="true":::
49
+
## Create a virtual network
50
50
51
+
1. Select **Create a resource** in the upper left-hand corner of the portal.
52
+
53
+
1. In the search box, enter **Virtual Network**. Select **Virtual Network** in the search results.
54
+
55
+
1. In the **Virtual Network** page, select **Create**.
56
+
57
+
1. In **Create virtual network**, enter or select this information in the **Basics** tab:
51
58
59
+
:::image type="content" source="./media/quick-create-portal/example-basics-tab.png" alt-text="Screenshot of creating a virtual network in Azure portal.":::
52
60
61
+
| Setting | Value |
62
+
| ------- | ----- |
63
+
|**Project details**||
64
+
| Subscription | Select your subscription. |
65
+
| Resource group | Select **myResourceGroup**. |
66
+
|**Instance details**||
67
+
| Name | Enter **myVNet**. |
68
+
| Region | Select **(US) East US**. |
53
69
54
70
1. Select the **IP Addresses** tab, or select the **Next: IP Addresses** button at the bottom of the page and enter in the following information then select **Add**:
55
71
72
+
:::image type="content" source="./media/quick-create-portal/example-ip-address-tab.png" alt-text="Screenshot of editing ip address tab for virtual network.":::
:::image type="content" source="./media/quick-create-portal/example-ip-address-tab.png" alt-text="Screenshot of editing ip address tab for virtual network." border="true":::
66
81
67
82
1. Select the **Security** tab, or select the **Next: Security** button at the bottom of the page.
68
83
69
84
1. Under **BastionHost**, select **Enable**. Enter this information:
70
85
86
+
:::image type="content" source="./media/quick-create-portal/example-security-tab.png" alt-text="Screenshot of editing security tab for virtual network.":::
| AzureBastionSubnet address space | Enter **10.1.1.0/24**|
75
92
| Public IP Address | Select **Create new**. </br> For **Name**, enter **myBastionIP**. </br> Select **OK**. |
76
93
94
+
1. Under **DDoS Protection Standard**, select **Enable**. Then for **DDoS Protection Plan**, select the **myDDoSPlan** resource created in the last section.
77
95
78
-
:::image type="content" source="./media/quick-create-portal/example-security-tab.png" alt-text="Screenshot of editing security tab for virtual network." border="true":::
79
-
80
-
96
+
:::image type="content" source="./media/quick-create-portal/enable-ddos.png" alt-text="Screenshot of enabling DDoS protection standard in the security tab.":::
81
97
82
98
1. Select the **Review + create** tab or select the **Review + create** button.
Copy file name to clipboardExpand all lines: articles/virtual-network/quick-create-powershell.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,18 +40,32 @@ $rg = @{
40
40
New-AzResourceGroup @rg
41
41
```
42
42
43
+
### Create a DDoS Protection plan
44
+
45
+
Create a DDoS Protection plan with [New-AzDdosProtectionPlan](/powershell/module/az.network/new-azddosprotectionplan) to associate with the virtual network. This example creates a DDoS Protection plan named **myDDoSPlan** in the **EastUS** location:
46
+
47
+
```azurepowershell-interactive
48
+
$plan = @{
49
+
Name = 'myDDoSPlan'
50
+
ResourceGroupName = 'CreateVNetQS-rg'
51
+
Location = 'EastUS'
52
+
}
53
+
$ddosplan = New-AzDdosProtectionPlan @plan
54
+
```
55
+
43
56
### Create the virtual network
44
57
45
-
Create a virtual network with [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork). This example creates a default virtual network named **myVNet** in the **EastUS** location:
58
+
Create a virtual network with [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork). This example creates a default virtual network named **myVNet** in the **EastUS** location with the DDoS Protection Standard enabled:
0 commit comments