az webapp troubleshoot
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Diagnose common Linux web app problems.
Preview command group that pairs built-in configuration checks (from KuduLite on the worker) with per-instance runtime status and startup summaries from ARM. Use when a Linux app is failing to start, returning HTTP 502/503, or exhibiting other post-deployment misbehavior.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az webapp troubleshoot status |
Show site runtime status and recent startup summary for a Linux web app. |
Core | Preview |
az webapp troubleshoot status
Command group 'webapp troubleshoot' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show site runtime status and recent startup summary for a Linux web app.
Aggregates two data sources:
- Site Runtime Status
- Startup summary: KuduLite (SCM) /api/startuplogs/summary (counts of successful and failed startup attempts in the last 24h, plus the most recent success and failure timestamps).
Use --instance to scope both to a single worker. By default the command
returns a structured payload so the standard -o json/yaml/table formatters
handle output. Pass --report to
print a human-readable two-section report to stdout instead.
az webapp troubleshoot status --name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--instance]
[--report {false, true}]
[--slot]
Examples
Show status for all instances of a web app (JSON by default)
az webapp troubleshoot status --name MyWebApp --resource-group MyResourceGroup
Print the human-readable report
az webapp troubleshoot status --name MyWebApp --resource-group MyResourceGroup --report
Show status scoped to a single worker instance
az webapp troubleshoot status --name MyWebApp --resource-group MyResourceGroup --instance 7c2d9
Required Parameters
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using az configure --defaults web=<name>.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Scope the report to a single worker instance.
Accepts either the hex instanceId (from az webapp list-instances) or the machine name (e.g. lw0sdlwk0007AB). When omitted, returns an overview of every instance seen in the last 24 hours.
Print a human-readable, color-coded report instead of returning structured data.
When set, the command writes a formatted report (overview table plus per-instance Last runtime status and Startup summary) to stdout and returns no machine-readable output. Omit --report to keep the default structured payload that works with -o json, -o yaml, and -o table.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
The name of the slot. Defaults to the production slot if not specified.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |