question

AljoaVister-4016 avatar image
0 Votes"
AljoaVister-4016 asked ·

Az resurce list --tags returns empty tags array

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-webappsazure-webapps-ip-addresses
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

eberdev avatar image
0 Votes"
eberdev answered ·

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




·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AljoaVister-4016 avatar image
0 Votes"
AljoaVister-4016 answered ·

Thank you very much :)

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.