az webapp scan

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

Commands

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 show-result

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

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 stop

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

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 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

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

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
--timeout

Timeout for operation in milliseconds.

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

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