az network ddos-protection

Manage DDoS Protection Plans.

Commands

az network ddos-protection create

Create a DDoS protection plan.

az network ddos-protection delete

Delete a DDoS protection plan.

az network ddos-protection list

List DDoS protection plans.

az network ddos-protection show

Show details of a DDoS protection plan.

az network ddos-protection update

Update a DDoS protection plan.

az network ddos-protection create

Create a DDoS protection plan.

az network ddos-protection create --name
                                  --resource-group
                                  [--location]
                                  [--subscription]
                                  [--tags]
                                  [--vnets]

Examples

Create a DDoS protection plan.

az network ddos-protection create -g MyResourceGroup -n MyDdosPlan

Create a DDoS protection plan. (autogenerated)

az network ddos-protection create --location westus2 --name MyDdosPlan --resource-group MyResourceGroup

Required Parameters

--name -n

Name of the DDoS protection plan.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--vnets

Space-separated list of VNets (name or IDs) to associate with the plan.

az network ddos-protection delete

Delete a DDoS protection plan.

az network ddos-protection delete [--ids]
                                  [--name]
                                  [--resource-group]
                                  [--subscription]

Examples

Delete a DDoS protection plan.

az network ddos-protection delete -g MyResourceGroup -n MyDdosPlan

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the DDoS protection plan.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network ddos-protection list

List DDoS protection plans.

az network ddos-protection list [--query-examples]
                                [--resource-group]
                                [--subscription]

Examples

List DDoS protection plans

az network ddos-protection list

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network ddos-protection show

Show details of a DDoS protection plan.

az network ddos-protection show [--ids]
                                [--name]
                                [--query-examples]
                                [--resource-group]
                                [--subscription]

Examples

Show details of a DDoS protection plan.

az network ddos-protection show -g MyResourceGroup -n MyDdosPlan

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the DDoS protection plan.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network ddos-protection update

Update a DDoS protection plan.

az network ddos-protection update [--add]
                                  [--force-string]
                                  [--ids]
                                  [--location]
                                  [--name]
                                  [--remove]
                                  [--resource-group]
                                  [--set]
                                  [--subscription]
                                  [--tags]
                                  [--vnets]

Examples

Add a Vnet to a DDoS protection plan in the same subscription.

az network ddos-protection update -g MyResourceGroup -n MyDdosPlan --vnets MyVnet

Update a DDoS protection plan. (autogenerated)

az network ddos-protection update --name MyDdosPlan --remove tags.no_80 --resource-group MyResourceGroup

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

Name of the DDoS protection plan.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--vnets

Space-separated list of VNets (name or IDs) to associate with the plan.