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 [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
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 webapp to connect to.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the deployment slot to use.
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 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 --scan-id
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
Required Parameters
Unique scan id.
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 webapp to connect to.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the deployment slot to use.
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 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 [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
[--timeout]
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 webapp to connect to.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the deployment slot to use.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Timeout for operation in milliseconds.
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 webapp scan stop
Stops the current executing scan. Does nothing if no scan is executing.
az webapp scan stop [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
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 webapp to connect to.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the deployment slot to use.
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 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 --scan-id
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
Required Parameters
Unique scan id.
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 webapp to connect to.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the deployment slot to use.
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.