Get Azure consumption with PowerShell
How can you get your Azure consumption details? Easy! We will user PowerShell for that. In this example we are using Get-AzureRmConsumptionUsageDetail and get the Instance Name, the Currency, Pretax Costs and the Billable Quantity. You can transform the .txt to a .csv and filter the information in Excel.
Happy cleaning up your Azure tenants.