Skip to content

az functionapp list --output table fails when appServicePlanId is absent #33914

Description

Summary

az functionapp list --output table fails when any Function App response omits appServicePlanId. JSON output succeeds.

Reproduction

az version
# azure-cli 2.89.1

az functionapp list --output table

Actual result

ERROR: Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.

The debug traceback identifies the underlying failure:

File "azure/cli/command_modules/appservice/commands.py", line 35, in transform_web_output
  result["appServicePlan"] = result.pop("appServicePlanId").split("/")[-1]
KeyError: 'appServicePlanId'

Expected result

az functionapp list --output table should render the Function Apps list without failing when appServicePlanId is missing. The formatter should tolerate an omitted optional field.

Workaround

Explicitly project fields before requesting table output:

az functionapp list --query '[].{Name:name,ResourceGroup:resourceGroup,Location:location,State:state}' --output table

Related issues

This may be another regression in the Function App output/transform layer introduced around 2.87.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions