Skip to content

[Output] Support default table format & a custom query that applies #704

Description

Johan Stenberg (ex-msft) (@johanste) pointed out the following issue: az vm list -o table --query "[?location=='westus']" gives the standard error:
Table output unavailable. Change output type with --output or use the --query option to specify an appropriate query. Use --debug for more info.

Currently the default table format is only used if --query is not specified. However, if --query is used to specify a filter, but not a projection (as in this case) it would be reasonable for the user to expect that the default projection would be used.

We should look at whether it would be technically feasible/reasonable to apply the result of --query first and then apply the table format query. In this case, you would get the default table output, but filtered on location. Ideally, we would still like the ability to specify the desired projection (like you currently have to).

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions