az webapp scan

Note

This reference is part of the webapp extension for the Azure CLI (version 2.23.0 or higher). The extension will automatically install the first time you run an az webapp scan command. Learn more about extensions.

Holds group of commands which cater to webapp scans. Currently available only for Linux based webapps.

Commands

Name Description Type Status
az webapp scan list-result

Get details of all scans conducted on webapp, upto max scan limit set on the webapp This will get you the scan log results in addition to the scan status of each scan conducted on the webapp.

Extension GA
az webapp scan show-result

Get results of specified scan-id. This will fetch you the Scan log results of the specified scan-id.

Extension GA
az webapp scan start

Starts the scan on the specified webapp files in the wwwroot directory. It returns a JSON containing the ScanID, traking and results URL.

Extension GA
az webapp scan stop

Stops the current executing scan. Does nothing if no scan is executing.

Extension GA
az webapp scan track

Track status of scan by providing scan-id. You can track the status of the scan from [Starting, Success, Failed, TimeoutFailure, Executing].

Extension GA

az webapp scan list-result

Get details of all scans conducted on webapp, upto max scan limit set on the webapp This will get you the scan log results in addition to the scan status of each scan conducted on the webapp.

az webapp scan list-result --name
                           --resource-group
                           [--slot]

Required Parameters

--name -n

Name of the webapp to connect to.

--resource-group -g

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

Optional Parameters

--slot

Name of the deployment slot to use.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az webapp scan show-result

Get results of specified scan-id. This will fetch you the Scan log results of the specified scan-id.

az webapp scan show-result --name
                           --resource-group
                           --scan-id
                           [--slot]

Required Parameters

--name -n

Name of the webapp to connect to.

--resource-group -g

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

--scan-id

Unique scan id.

Optional Parameters

--slot

Name of the deployment slot to use.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az webapp scan start

Starts the scan on the specified webapp files in the wwwroot directory. It returns a JSON containing the ScanID, traking and results URL.

az webapp scan start --name
                     --resource-group
                     [--slot]
                     [--timeout]

Required Parameters

--name -n

Name of the webapp to connect to.

--resource-group -g

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

Optional Parameters

--slot

Name of the deployment slot to use.

--timeout

Timeout for operation in milliseconds.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az webapp scan stop

Stops the current executing scan. Does nothing if no scan is executing.

az webapp scan stop --name
                    --resource-group
                    [--slot]

Required Parameters

--name -n

Name of the webapp to connect to.

--resource-group -g

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

Optional Parameters

--slot

Name of the deployment slot to use.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az webapp scan track

Track status of scan by providing scan-id. You can track the status of the scan from [Starting, Success, Failed, TimeoutFailure, Executing].

az webapp scan track --name
                     --resource-group
                     --scan-id
                     [--slot]

Required Parameters

--name -n

Name of the webapp to connect to.

--resource-group -g

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

--scan-id

Unique scan id.

Optional Parameters

--slot

Name of the deployment slot to use.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.