az network ddos-protection
Manage DDoS Protection Plans.
Commands
Name | Description | Type | Status |
---|---|---|---|
az network ddos-protection create |
Create a DDoS protection plan. |
Core | GA |
az network ddos-protection delete |
Delete a DDoS protection plan. |
Core | GA |
az network ddos-protection list |
List DDoS protection plans. |
Core | GA |
az network ddos-protection show |
Show details of a DDoS protection plan. |
Core | GA |
az network ddos-protection update |
Update a DDoS protection plan. |
Core | GA |
az network ddos-protection wait |
Place the CLI in a waiting state until a condition is met. |
Core | GA |
az network ddos-protection create
Create a DDoS protection plan.
az network ddos-protection create --name
--resource-group
[--location]
[--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 of the DDoS protection plan.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Space-separated list of VNets (name or IDs) to associate with the plan.
This parameter can only be used if all the VNets are within the same subscription as the DDoS protection plan. If this is not the case, set the protection plan on the VNet directly using the az network vnet update
command.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network ddos-protection delete
Delete a DDoS protection plan.
az network ddos-protection delete [--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
Examples
Delete a DDoS protection plan.
az network ddos-protection delete -g MyResourceGroup -n MyDdosPlan
Optional Parameters
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 of the DDoS protection plan.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network ddos-protection list
List DDoS protection plans.
az network ddos-protection list [--resource-group]
Examples
List DDoS protection plans
az network ddos-protection list
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network ddos-protection show
Show details of a DDoS protection plan.
az network ddos-protection show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Show details of a DDoS protection plan.
az network ddos-protection show -g MyResourceGroup -n MyDdosPlan
Optional Parameters
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 of the DDoS protection plan.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network ddos-protection update
Update a DDoS protection plan.
az network ddos-protection update [--ids]
[--name]
[--resource-group]
[--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 --tags foo=boo --resource-group MyResourceGroup
Optional Parameters
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 of the DDoS protection plan.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Space-separated list of VNets (name or IDs) to associate with the plan.
This parameter can only be used if all the VNets are within the same subscription as the DDoS protection plan. If this is not the case, set the protection plan on the VNet directly using the az network vnet update
command.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az network ddos-protection wait
Place the CLI in a waiting state until a condition is met.
az network ddos-protection wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
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.
Polling interval in seconds.
Name of the DDoS protection plan.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI