Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,035 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Is there an example for how to sum the PretaxCost property for all objects returned by Get-AzConsumptionUsageDetail?
The cmdlet returns a PSUsageObject, so this might be what you need:
Get-AzConsumptionUsageDetail |
Measure-Object -Sum -Property PretaxCost