Hello @Lucas Duran Thank you for contacting us on Microsoft Q&A Platform. Happy to help!
I understand that you created an app from Azure AD, to read the costs of billings accounts. However, it errors out as ""RBACAccessDenied". This implies that there is a permission issue that we need to fix to run the API query successfully.
If the link you posted is the one that you used, then I believe this billing account is an EA billing account.
In that case, since the scope is billing account, so the traditional RBAC role won’t work since you will need Enrollment Reader role on the SPN. This can only be done via calling API.
You can find the official document here: https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/assign-roles-azure-service-principals
Hope this helps. Let us know if you need further assistance in this matter!
If the response helped, do "Accept Answer" and up-vote it