Repository navigation
az webapp show and list returning serverFarmId instead of appServicePlanId #33732
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 15, 2026 - addedcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.Web Appsaz webappaz webapp
on Jul 15, 2026 Thank you for opening this issue, we will look into it.
- addedService 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 15, 2026 x-engineering-agent commented
on Jul 15, 2026 ContributorMore actionsBug Analysis
az webapp listandaz webapp showno longer return theappServicePlanIdfield in their output; it was replaced byserverFarmId. This regression was introduced in a change to_rename_server_farm_props()insrc/azure-cli/azure/cli/command_modules/appservice/utils.py(referenced commit d86606f). The function's intent appears to be renaming/aliasingserverFarmIdto also exposeappServicePlanIdin the output, but the current behavior dropsappServicePlanIdentirely.Fix guidance:
- Locate
_rename_server_farm_props()insrc/azure-cli/azure/cli/command_modules/appservice/utils.py. - Ensure the transformation still adds/retains the
appServicePlanIdkey (aliasing fromserverFarmId) in the output ofaz webapp showandaz webapp list, matching the pre-regression (v2.86) behavior. - Add or update unit tests in the appservice module's
tests/directory coveringaz webapp show/az webapp listoutput to assertappServicePlanIdis present.
Use this EXACT PR title:
[AppService] Fix #33732:az webapp show: Restore appServicePlanId in outputPR 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 #33732: `az webapp show`: Restore appServicePlanId in outputKeep the backticks around the command and the
Fix #33732: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 #33732. - 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).
- Locate
- linked a pull request that will close this issue[AppService] Restore `appServicePlanId` in `az webapp show/list` output #33733
on Jul 15, 2026 stephaniejchan8 commented
on Aug 13, 2026 AuthorMore actionsHi Yong Zhang (@yonzhan) do you have any updates on this? This change broke my deployment pipeline.
shreyas-gopalakrishna commented
on Sep 9, 2026 MemberMore actionsFix for this issue is in - #33733
Describe the bug
In Azure CLI v2.87, a bug was introduced where
az webapp listandaz webapp showoutput no longer contains the fieldappServicePlanIdand instead hasserverFarmId.There is a commit where in
src/azure-cli/azure/cli/command_modules/appservice/utils.py_rename_server_farm_props()it seems from the code that the intention is that the output foraz webapp listandaz webapp showshould still contain the fieldappServicePlanId.The release notes also don't communicate that
appServicePlanIdwas intentionally replaced withserverFarmId.When running
az webapp listandaz webapp showon Azure CLI v2.86,appServicePlanIdis in the output.Related command
az webapp list
az webapp show
Errors
No error message
Issue script & Debug output
az-cli-2.88-webapp-list-debug.txt
Expected behavior
az webapp listandaz webapp showshould still contain the fieldappServicePlanId.Environment Summary
azure-cli 2.88.0
core 2.88.0
telemetry 1.1.0
Dependencies:
msal 1.36.0
azure-mgmt-resource 24.0.0
Python location '/opt/homebrew/Cellar/azure-cli/2.88.0/libexec/bin/python'
Config directory '/Users/REDACTED/.azure'
Extensions directory '/Users/REDACTED/.azure/cliextensions'
Python (Darwin) 3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response