@@ -6,7 +6,7 @@ author: AbdullahBell
6
6
ms.service : ddos-protection
7
7
ms.topic : quickstart
8
8
ms.workload : infrastructure-services
9
- ms.date : 10/12/2022
9
+ ms.date : 05/23/2023
10
10
ms.author : abell
11
11
ms.custom : devx-track-azurepowershell, mode-api, ignite-2022
12
12
---
@@ -74,6 +74,17 @@ $vnet.DdosProtectionPlan.Id = $ddosProtectionPlanID.Id
74
74
$vnet.EnableDdosProtection = $true
75
75
$vnet | Set-AzVirtualNetwork
76
76
```
77
+ ### Disable DDoS for a virtual network
78
+
79
+ To disable DDoS protection for a virtual network:
80
+
81
+ ``` azurepowershell-interactive
82
+ # Gets the most updated version of the virtual network
83
+ $vnet = Get-AzVirtualNetwork -Name MyVnet -ResourceGroupName MyResourceGroup
84
+ $vnet.DdosProtectionPlan = $null
85
+ $vnet.EnableDdosProtection = $false
86
+ $vnet | Set-AzVirtualNetwork
87
+ ```
77
88
78
89
## Validate and test
79
90
@@ -97,17 +108,8 @@ You can keep your resources for the next tutorial. If no longer needed, delete t
97
108
Remove-AzResourceGroup -Name MyResourceGroup
98
109
```
99
110
100
- To disable DDoS protection for a virtual network:
101
-
102
- ``` azurepowershell-interactive
103
- # Gets the most updated version of the virtual network
104
- $vnet = Get-AzVirtualNetwork -Name MyVnet -ResourceGroupName MyResourceGroup
105
- $vnet.DdosProtectionPlan = $null
106
- $vnet.EnableDdosProtection = $false
107
- $vnet | Set-AzVirtualNetwork
108
- ```
109
-
110
- If you want to delete a DDoS protection plan, you must first dissociate all virtual networks from it.
111
+ > [ !NOTE]
112
+ > If you want to delete a DDoS protection plan, you must first dissociate all virtual networks from it.
111
113
112
114
## Next steps
113
115
0 commit comments