[Bug]:ARI Report - Inconsistent Resource count
Describe the bug After running the Invoke-ARI module, it exports the excel file and extracts all the resources from all the active subscriptons from the Tenant. The resource count is not very consistent; on few days it misses to export the resources from few subscriptions which will lead to resource count inconsistent.
To Reproduce On multiple runs it will export the exact resource counts.
Expected behavior The resource counts should be same when run this PS module multiple days/times.
Screenshots If applicable, add screenshots to help explain your problem.
Environment Production
Azure cloud special setting Public Cloud
Additional context Add any other context about the problem here.
Hello @chennavinay
Did you mean the resource count inside the Excel report? It is showing different resource numbers? i.e in one run shows 3 Load balancers and the next one shows 5?
Sharing some additional information from @chennavinay
"We are ran into one issue with ARI daily export resource count mismatch. Our daily job tries to export using “Invoke-ARI” PS module provided by Microsoft as open-source tool. Some occasions it won’t export all the subscriptions count it skips some on few occasions. It’s not very consistent with our daily resource count."
So @Claudio-Merola it sounds as though the subscription count and the resource count are both inconsistent.
Sharing some additional information from @chennavinay
"We are ran into one issue with ARI daily export resource count mismatch. Our daily job tries to export using “Invoke-ARI” PS module provided by Microsoft as open-source tool. Some occasions it won’t export all the subscriptions count it skips some on few occasions. It’s not very consistent with our daily resource count."
So @Claudio-Merola it sounds as though the subscription count and the resource count are both inconsistent.
If not all the subscriptions are present in the inventory, then the numbers will be different.
So, we need to understand why not all the subscriptions are present in the inventory. You are running the script in Automation Account?
Hello @chennavinay
Did you mean the resource count inside the Excel report? It is showing different resource numbers? i.e in one run shows 3 Load balancers and the next one shows 5?
@Claudio-Merola, yes it misses the resources from subscriptions altogether so that the resource counts will be lesser compared to other day's counts. When I run the same report again after few mins it will come up all the resources as compared to other day's counts.
2nd June:
3rd June:
This Issue is stale and may be automatically close soon.