Skip to content

Commit a939a39

Browse files
Merge pull request #212268 from AbdullahBell/patch-25
DDoS Quickstart portal update
2 parents 9cb71b7 + e8bdac4 commit a939a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You can enable DDoS protection when creating a virtual network. In this example,
5757
$ddosProtectionPlanID = Get-AzDdosProtectionPlan -ResourceGroupName MyResourceGroup -Name MyDdosProtectionPlan
5858
5959
#Creates the virtual network
60-
New-AzVirtualNetwork -Name MyVnet -ResourceGroupName MyResourceGroup -Location "East US" -AddressPrefix 10.0.0.0/16 -DdosProtectionPlan $ddosProtectionPlanID -EnableDdosProtection
60+
New-AzVirtualNetwork -Name MyVnet -ResourceGroupName MyResourceGroup -Location "East US" -AddressPrefix 10.0.0.0/16 -DdosProtectionPlan $ddosProtectionPlanID.Id -EnableDdosProtection
6161
```
6262

6363
### Enable DDoS for an existing virtual network

0 commit comments

Comments
 (0)