Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Change scope to billing account #14

@aishvaryaps

Description

@aishvaryaps

I have deployed the azure_billing_exporter using docker commands. Currently, I am using the default AZ API query mentioned in the documentation ie;
{
"type": "ActualCost",
"dataSet": {
"granularity": "None",
"aggregation": {
"totalCost": {
"name": "PreTaxCost",
"function": "Sum"
}
},
"grouping": [
{
"type": "Dimension",
"name": "ResourceGroupName"
}
],
"sorting": [
{
"direction": "descending",
"name": "PreTaxCost"
}
]
},
"timeframe": "Custom",
"timePeriod": {
"from": "{{ CurrentMonthStart }}",
"to": "{{ TodayEnd }}"
}
}

I want to fetch the response at the billing account level. How can we change the scope from subscription to billing account? Is that possible?

So basically I want to see the results for
https://management.azure.com/providers/Microsoft.Billing/billingAccounts//providers/Microsoft.CostManagement/query?api-version=2022-10-01
Where can I change the API URL ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions