Created
November 26, 2021 06:49
-
-
Save yooakim/a269845d120b0f4f0476edc1355054c5 to your computer and use it in GitHub Desktop.
Get Azure Cost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://management.azure.com/subscriptions/{{subscriptionId}}/providers/Microsoft.Billing/billingPeriods/{{billingPeriod}}/providers/Microsoft.Consumption/usageDetails?$apply=filter(properties/usageEnd ge '{{startDate}}' AND properties/usageEnd le '{{endDate}}')/groupby((tags/Customer),aggregate(properties/cost with sum as TotalCost))&api-version=2021-10-01 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment