Az resurce list --tags returns empty tags array

Aljoša Vister 21 Reputation points
2020-01-11T14:39:01.3+00:00

All tags are missing in the JSON result when listing resources while using the tag argument.

This is the default listing that I get when running without "tag" attribute:

# az resource list
{
    "id": xxxx,
    "identity": null,
    "kind": null,
    "location": xxxx,
    "managedBy": null,
    "name": xxxx,
    "plan": null,
    "properties": null,
    "resourceGroup": xxxx,
    "sku": null,
    "tags": {
      "company": "Foo",
      "owner": "kubernetes",
      "type": "aks-slb-managed-outbound-ip"
    },
    "type": "Microsoft.Network/publicIPAddresses"
  }

When running with --tag attribute I get empty tags array:

# az resource list --tag company
  {
    "id": xxxx,
    "identity": null,
    "kind": null,
    "location": xxxx,
    "managedBy": null,
    "name": xxxx,
    "plan": null,
    "properties": null,
    "resourceGroup": xxxx,
    "sku": null,
    "tags": null,
    "type": "Microsoft.Network/publicIPAddresses"
  }

Is this the expected behaviour? I would really like to get the complete result.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,199 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Aljoša Vister 21 Reputation points
    2020-01-11T18:24:09.917+00:00

    Thank you very much :)

    0 comments No comments