Skip to content

Commit 0aa1323

Browse files
authored
Merge pull request #220651 from duongau/vnetsecurity
Virtual Network - add DDoS protection section to PS, CLI and Portal quickstarts
2 parents 852aaf1 + 8294f32 commit 0aa1323

File tree

6 files changed

+62
-22
lines changed

6 files changed

+62
-22
lines changed
44.8 KB
Loading
8.05 KB
Loading
14 KB
Loading

articles/virtual-network/quick-create-cli.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In this quickstart, you learn how to create a virtual network. After creating a
2323

2424
- This quickstart requires version 2.0.28 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
2525

26-
## Create a resource group and a virtual network
26+
## Create a resource group
2727

2828
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:
2929

@@ -33,13 +33,25 @@ az group create \
3333
--location eastus
3434
```
3535

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

3848
```azurecli-interactive
3949
az network vnet create \
4050
--name myVNet \
4151
--resource-group CreateVNetQS-rg \
4252
--subnet-name default
53+
--ddos-protection-plan myDDoSPlan \
54+
--ddos-protection true
4355
```
4456

4557
## Create virtual machines

articles/virtual-network/quick-create-portal.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.custom: mode-ui
1515

1616
# Quickstart: Create a virtual network using the Azure portal
1717

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

2020
## Prerequisites
2121

@@ -25,66 +25,80 @@ In this quickstart, you learn how to create a virtual network using the Azure po
2525

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

28-
## Create a virtual network
28+
## Create a DDoS protection plan
2929

3030
1. Select **Create a resource** in the upper left-hand corner of the portal.
3131

32+
1. In the search box, enter **DDoS protection plan**. Select **DDoS protection plan** in the search results and then select **Create**.
3233

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

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.":::
3837

3938
| Setting | Value |
40-
| ------- | ----- |
39+
|--|--|
4140
| **Project details** | |
4241
| Subscription | Select your subscription. |
4342
| Resource group | Select **Create new**. </br> Enter **myResourceGroup**. </br> Select **OK**. |
4443
| **Instance details** | |
45-
| Name | Enter **myVNet**. |
44+
| Name | Enter **myDDoSPlan**. |
4645
| Region | Select **(US) East US**. |
4746

47+
1. Select **Review + create** and then select **Create** to deploy the DDoS protection plan.
4848

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
5050

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

59+
:::image type="content" source="./media/quick-create-portal/example-basics-tab.png" alt-text="Screenshot of creating a virtual network in Azure portal.":::
5260

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

5470
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**:
5571

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.":::
73+
5674
| Setting | Value |
5775
|--------------------|----------------------------|
5876
| IPv4 address space | Enter **10.1.0.0/16**. |
5977
| **Add subnet** |
6078
| Subnet name | Enter **MySubnet**. |
6179
| Subnet address range | Enter **10.1.0.0/24**. |
6280
| Select **Add**. | |
63-
64-
65-
:::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":::
6681

6782
1. Select the **Security** tab, or select the **Next: Security** button at the bottom of the page.
6883

6984
1. Under **BastionHost**, select **Enable**. Enter this information:
7085

86+
:::image type="content" source="./media/quick-create-portal/example-security-tab.png" alt-text="Screenshot of editing security tab for virtual network.":::
87+
7188
| Setting | Value |
7289
|--------------------|----------------------------|
7390
| Bastion name | Enter **myBastionHost** |
7491
| AzureBastionSubnet address space | Enter **10.1.1.0/24** |
7592
| Public IP Address | Select **Create new**. </br> For **Name**, enter **myBastionIP**. </br> Select **OK**. |
7693

94+
1. Under **DDoS Protection Standard**, select **Enable**. Then for **DDoS Protection Plan**, select the **myDDoSPlan** resource created in the last section.
7795

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.":::
8197

8298
1. Select the **Review + create** tab or select the **Review + create** button.
8399

84100
1. Select **Create**.
85101

86-
87-
88102
## Create virtual machines
89103

90104
Create two VMs in the virtual network:

articles/virtual-network/quick-create-powershell.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,32 @@ $rg = @{
4040
New-AzResourceGroup @rg
4141
```
4242

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+
4356
### Create the virtual network
4457

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

4760
```azurepowershell-interactive
4861
$vnet = @{
4962
Name = 'myVNet'
5063
ResourceGroupName = 'CreateVNetQS-rg'
5164
Location = 'EastUS'
52-
AddressPrefix = '10.0.0.0/16'
65+
AddressPrefix = '10.0.0.0/16'
66+
DDoSProtectionPlan = $ddosplan.Id
5367
}
54-
$virtualNetwork = New-AzVirtualNetwork @vnet
68+
$virtualNetwork = New-AzVirtualNetwork @vnet -EnableDdosProtection
5569
```
5670

5771
### Add a subnet

0 commit comments

Comments
 (0)