Azure / Azure/azure-cli

`az resource list -o table --query "[].{name:name, location:location, type:type}"` not displaying the type

Open
#24,520 7 comments 0 reactions 1 assignee Assigned to @zhoxing-ms View on GitHub
act-identity-squad ARM Auto-Assign Azure CLI Team customer-reported needs-team-attention question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

If you run `az resource list -o table --query "[].{name:name, location:location, type:type}"` it won't display the type column while
if you do `az resource list -o table --query "[].{name:name, location:location, kind:type}"` will be shown.

I guess it's because it's conflicting somehow with the reserved python's keyword `type`? Is this a bug?

Btw, I don't see in the help any way to sort this table by column... is it possible to achieve somehow?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.