Repository navigation
webapp webjob triggered list drops actionable 409 response body #33824
Description
Activity
- addedbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
on Jul 31, 2026 Thank you for opening this issue, we will look into it.
- addedWeb Appsaz webappaz webappService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Auto-AssignAuto assign by botAuto assign by bot
on Jul 31, 2026 x-engineering-agent commented
on Jul 31, 2026 ContributorMore actionsBug Analysis
az webapp webjob triggered list(appservice module) surfaces only a generic
Operation returned an invalid status 'Conflict'message for a Kudu 409
response, discarding the actionable JSON error body (e.g. "The web app is not
configured to run the web job. Please enable running web jobs before calling
the API.").Root cause: the Kudu client call for triggered webjobs list does not
capture/surface the response body when raising on non-2xx status codes,
falling back to the generic HTTP status reason phrase instead of the JSON
errormessage from the response.Suggested fix: when the Kudu request for triggered webjob list (and
ideally other Kudu-backed webjob operations) returns a non-2xx status, parse
the JSON body'serror/Messagefield and include it in the raised
CLIError, instead of only reporting the generic status text. This should be
handled similarly to how other Kudu-backed commands in this module report
errors, so the CLI reproduces the actionable Kudu error text
(e.g. "The web app is not configured to run WebJobs. Enable webJobsEnabled and
retry.") instead of just "Conflict".Add/adjust a scenario or unit test asserting the response body is echoed in
the raised error for a 409 from this endpoint.Use this EXACT PR title:
[AppService] Fix #33824:az webapp webjob triggered list: Preserve Kudu error response body on 409 ConflictPR title & description format (required)
This repo enforces a PR format (guide). Please author the PR exactly as follows or CI's Check the Format of Pull Request Title and Content will fail.
Use this EXACT PR title (copy verbatim, do not reword):
[AppService] Fix #33824: `az webapp webjob triggered list`: Preserve Kudu error response body on 409 ConflictKeep the backticks around the command and the
Fix #33824:prefix. You may only adjust the wording after the command (the final summary) if the fix changes; the[AppService]prefix, issue link, and backticked command must stay.Description — follow the PR template and fill in:
- Link the issue — start the Description with a closing keyword so the PR auto-links and closes it:
Fixes #33824. - Related command — the
az ...command this affects. - Description (mandatory) — why the bug happens, what you changed, and the resulting behavior.
- Testing Guide — example command(s) showing the fix works.
- History Notes — leave the title to drive the history note, or add extra lines in the same format (component in brackets + the command in backticks), e.g.
[AppService] `az <command>`: <note>. - Keep the template checklist and tick the items you've satisfied.
Posted by agent-assist (autonomous bug-fix pipeline).
- Link the issue — start the Description with a closing keyword so the PR auto-links and closes it:
- linked a pull request that will close this issue[appservice] Surface Kudu 409 response body in `az webapp webjob triggered list` #33825
on Jul 31, 2026
Describe the bug
az webapp webjob triggered listdrops the actionable response body returned by Kudu for a409 Conflict. The CLI reports only a generic status name, hiding the exact configuration prerequisite that failed.Related command
Preconditions:
properties.webJobsEnabled=falseon theMicrosoft.Web/sites/configresource.App_Data/jobs/triggered/AppendLine.Errors
Azure CLI output:
Exit code:
1.The authenticated Kudu endpoint returns an actionable body for the same operation:
{ "error": "The web app is not configured to run the web job. Please enable running web jobs before calling the API." }Issue script & Debug output
The package was deployed successfully, and Kudu VFS confirmed these files existed:
After setting
properties.webJobsEnabled=true, the unchanged CLI command succeeded and returned theAppendLinejob. This isolates the conflict to the disabled WebJobs runtime and confirms the service response body contained the required remediation.Expected behavior
Azure CLI should include the service response body in its error output, for example:
At minimum, the original JSON error body should be preserved instead of being reduced to
Conflict.Environment Summary
Additional context
The generic CLI output led to unnecessary investigation of deployment layout even though the files were present. Direct Kudu inspection immediately identified the missing site-level runtime switch.
No existing Azure/azure-cli issue containing the exact Kudu error text was found.
Suggested assignee: Jordan Selig (@seligj95)