-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Resources in MC_* when listing via az resource list -g <MC_* resource group name> #1964
Comments
Hi aido123, AKS bot here 👋 I might be just a bot, but I'm told my suggestions are normally quite good, as such:
|
@aido123 CLI and portal actually hit the same API at the backend (but may hit different region). The /resources API is served from a regional cache from Azure Resource Manager, which is eventual consistent, and not real time. To get real time /resources result, you would want to hit the endpoint where the resource group locate. I developed a tool called armclient, which allows you to make a request like:
Note you can use The other option is to list resources by type, which is always realtime. e.g. |
Thanks for the info @yangl900, this is very useful. I'll checkout both your tool and see if az vmss list will do the trick. Best Regards, |
FYI, az vmss list --resource-group is NOT realtime |
@aido123 you are right, but under a condition. I missed that earlier. If the region had no other VMSS at all, meaning it is the first time deploying VMSS in a region, it is not realtime. But if the region already had some VMSS, the |
What happened:
As part of automation, trying to list all resources in the MC_* resource group but it's showing as empty. I can see all the resources successfully via the UI. I can also list resources successfully in other Resource Groups that are not the MC_* one.
What you expected to happen:
I would have expected to see all the resources in the MC_* resource group like I see in the UI.
How to reproduce it (as minimally and precisely as possible):
az resource list -g MC_adrian-group_cluster_westeurope
[]
Anything else we need to know?:
Resources start to appear slowly after a lengthy period i.e. + 18 minutes after cluster created. Reproduced on both EastUS2 and WestEurope
Environment:
azure-cli: 2.14.1
AKS Version: 1.17.13
Cluster Size: 1 Node
No workloads deployed yet
The text was updated successfully, but these errors were encountered: