Hello @Kerwin, Eric ,
Thanks for reaching out.
I was getting below error when I run az resource list --resource-group test --query "length([])"
from client machine where I installed Az module.
Error from client machine:
However, I was able to get appropriate count without any delay by using below combination from Azure CLI
az resource list --resource-group sivaRG --query "length(@)"
az resource list --resource-group sivaRG --query "length([])"
az resource list --resource-group sivaRG --query "length([*])"
az resource list --resource-group sivaRG --query "[*].name | length(@)"
az resource list --resource-group sivaRG --query "[*].name | length([])"
az resource list --resource-group sivaRG --query "[*].name | length([*])"
Therefore, would request you to try above combination to see if you see any discrepancy also could you try using following filter to see if you get appropriate count az resource list --resource-group sivaRG --query "[*].name
?
Hope this helps. Thanks.
-----
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.