Az consumption usage list does not seem to work for some subscriptions.

Yashas Manjunath 26 Reputation points
2022-12-07T15:17:45.69+00:00

Below is the error I get when I use az consumption usage list. Is there any new api version update I should be aware of?
why does it work for some subscriptions and not for others?

(400) Subscription scope usage is not supported for the current api version. Please use api version after 2019-10-01 (Request ID: 24d7d86b-9242-4e7c-afa3-dff9372b4e7b)

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,026 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. SadiqhAhmed-MSFT 37,206 Reputation points Microsoft Employee
    2022-12-09T20:19:43.977+00:00

    Hi @Yashas Manjunath Thank you for posting your query with us on Microsoft Q&A platform. Happy to help!

    I understand that you are using Az consumption usage list and does not seem to work for some subscriptions. I would recommend using either Cost Details API or Exports. You can learn more about which is best for you here.

    Cost details best practices - Microsoft Cost Management | Microsoft Learn

    Hope this helps!

    ----------------------------------------------------------------------------------------------------------------------

    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments