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
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
+
$ddosplan = @{
49
+
Name = 'myDDoSPlan'
50
+
ResourceGroupName = 'CreatePrivateEndpointQS-rg'
51
+
Location = 'EastUS'
52
+
}
53
+
New-AzDdosProtectionPlan @ddosplan
54
+
```
55
+
43
56
## Create a virtual network and bastion host
44
57
45
58
A virtual network and subnet is required for to host the private IP address for the private endpoint. You'll create a bastion host to connect securely to the virtual machine to test the private endpoint. You'll create the virtual machine in a later section.
@@ -55,19 +68,23 @@ In this section, you'll:
55
68
- Create the bastion host with [New-AzBastion](/powershell/module/az.network/new-azbastion)
56
69
57
70
```azurepowershell-interactive
71
+
## Place DDoS plan created previously into a variable. ##
@@ -324,6 +341,14 @@ Use the VM you created in the previous step to connect to the webapp across the
324
341
325
342
10. Close the connection to **myVM**.
326
343
344
+
## Clean up resources
345
+
346
+
When no longer needed, you can use the [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) command to remove the resource group, virtual network, and the remaining resources.
0 commit comments