Skip to content

Commit e8bdac4

Browse files
authored
Updated PowerShell script for creating vnet and enabling DDoS
------- cc: @AbdullahBell
1 parent 3d7cb42 commit e8bdac4

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)