Skip to content

Commit 2196732

Browse files
Merge pull request #238986 from AbdullahBell/patch-74
DDoS Protection: Network Protection CLI QuickStart - Updated disable Network Protection Step
2 parents 634adac + 2f73ae7 commit 2196732

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

articles/ddos-protection/manage-ddos-protection-cli.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: ddos-protection
77
ms.topic: quickstart
88
ms.custom: ignite-2022, devx-track-azurecli
99
ms.workload: infrastructure-services
10-
ms.date: 10/12/2022
10+
ms.date: 05/23/2023
1111
ms.author: abell
1212
---
1313
# Quickstart: Create and configure Azure DDoS Network Protection using Azure CLI
@@ -89,6 +89,19 @@ az network vnet update \
8989
--ddos-protection true
9090
```
9191

92+
### Disable DDoS protection for a virtual network
93+
94+
Update a given virtual network to disable DDoS protection:
95+
96+
```azurecli-interactive
97+
az network vnet update \
98+
--resource-group MyResourceGroup \
99+
--name MyVnet \
100+
--ddos-protection-plan MyDdosProtectionPlan \
101+
--ddos-protection false
102+
103+
```
104+
92105
## Validate and test
93106

94107
First, check the details of your DDoS protection plan:
@@ -112,18 +125,8 @@ az group delete \
112125
--name MyResourceGroup
113126
```
114127

115-
Update a given virtual network to disable DDoS protection:
116-
117-
```azurecli-interactive
118-
az network vnet update \
119-
--resource-group MyResourceGroup \
120-
--name MyVnet \
121-
--ddos-protection-plan MyDdosProtectionPlan \
122-
--ddos-protection false
123-
124-
```
125-
126-
If you want to delete a DDoS protection plan, you must first dissociate all virtual networks from it.
128+
> [!NOTE]
129+
> If you want to delete a DDoS protection plan, you must first dissociate all virtual networks from it.
127130
128131
## Next steps
129132

0 commit comments

Comments
 (0)