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.
8,934 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael C. McKinnon 81 Reputation points
    2020-01-11T17:50:32.48+00:00

    If you try a specific resource to select like below, does that return anything?

    az resource list --tag company=Foo
    

    EDIT: Forget the above (what's strikeout command?) found this. looks like an identified bug:
    https://github.com/Azure/azure-cli/issues/3180

    0 comments No comments

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.