cloudquery / cloudquery

The open source high performance ELT framework powered by Apache Arrow
https://cloudquery.io
Mozilla Public License 2.0
5.81k stars 507 forks source link

bug(azure): Cost management views only fetch non-private views #9859

Open disq opened 1 year ago

disq commented 1 year ago

Is there an existing issue for this?

Current Behavior

In azure_costmanagement_views, the fetched views don't contain the private views. This seems to because of the code using svc.NewListByScopePager("subscriptions/"+cl.SubscriptionId, nil), whereas if it had used NewListPager() it will fetch the users views (but this time not any of the shared views - verified with api call)

Expected Behavior

Fetch all views

CloudQuery version

azure v7.1.0

Additional Context

Reported on Discord

Pull request (optional)

github-actions[bot] commented 1 year ago

Thanks for reporting this issue 👍
You can reach us via Discord too. If you enjoy using this project, please consider starring it for support