http://vcloud-lab.com/entries/microsoft-azure/powershell-get-the-list-of-azure-reservations-virtual-machines-instancesComments on post: Powershell get the list of Azure Reservations Virtual Machines instancesVivitiCMS2023-12-08T16:40:25+05:30Virtual Geektag:vcloud-lab.com,2021-12-16:/entries/112422#comment_162211Comment by Robert2021-12-16T19:35:50+05:302021-12-16T19:35:50+05:30Please note that the command for Get-AzConsumptionUsageDetail is in the Az.Billing module not the Az.Reservations module so you need to ensure that both are installed.tag:vcloud-lab.com,2023-02-27:/entries/112422#comment_167125Comment by SJ2023-02-27T10:39:06+05:302023-02-27T10:39:06+05:30I am getting Get-AzConsumptionUsageDetail : Operation returned an invalid status code 'BadRequest' throughout multiple subscriptions and blank CSV file....is there a workaround?tag:vcloud-lab.com,2023-12-08:/entries/112422#comment_180070Comment by Ajit Walvekar2023-12-08T16:40:25+05:302023-12-08T16:40:25+05:30I am still getting the below error despite installing Az.Billing module.
Get-AzConsumptionUsageDetail: Operation returned an invalid status code ‘BadRequest’