question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az consumption usage list - resulting error message is unclear

See original GitHub issue

I tried to use az consumption usage list and got the following error (when using the latest az cli):

Command group 'consumption' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
(400) Subscription scope usage is not supported for current api version. Please use api version after 2019-10-01 (Request ID: 2f1d12d0-ce2e-4d85-a2ed-6443607f8edc)

What’s user to do ?

There should be. a simple solution to this - and that should be evoked here

 az --version
azure-cli                         2.38.0

core                              2.38.0
telemetry                          1.0.6

Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1

Python location '/opt/az/bin/python3'
Extensions directory '/home/mjb/.azure/cliextensions'

Python (Linux) 3.10.5 (main, Jul  1 2022, 04:14:40) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
geoswordcommented, Aug 10, 2022

@mjbright Thanks for reaching out to us and sharing this feedback. Cost Management supports only Enterprise Agreement, Web direct and Microsoft Customer Agreement offer types. I hope that your subscription XXXXXX is associated with a valid offer type.

Could you please run the below command and check if that helps?

az rest --method GET ‘https://management.azure.com/subscriptions/XXXXXXXX/providers/Microsoft.Consumption/usageDetails?api-version=2019-10-01

Awaiting your reply.

Just for anyone else stumbling on this like I did. I couldnt get this command to work. It kept returning Bad Request, I found that usageDetails should actually be UsageDetails and that --url was required.

az rest --method GET --url 'https://management.azure.com/subscriptions/<subscription-id>/providers/Microsoft.Consumption/UsageDetails?api-version=2019-10-01'
0reactions
navba-MSFTcommented, Jul 18, 2022

@mjbright The action is currently pending on you to test the above plan. We will now proceed with closure of this GitHub issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Please use api version after 2019-10-01 - Microsoft Q&A
az consumption usage list. from a terminal it errors out with message. Command group 'consumption' is in preview and under development.
Read more >
How to get rid of the error message in Powershell when listing ...
You should add the -ErrorAction SilentlyContinue flag, which ignores the errors that are displayed as a result of the command.
Read more >
Error messages | BigQuery - Google Cloud
This document describes error messages you might encounter when working with BigQuery, including HTTP error codes, job errors, and Google Cloud console ...
Read more >
Known issues - Fortinet Documentation Library
On the Policy & Objects > Firewall Policy page, the policy list can take ... High iowait CPU usage and memory consumption issues...
Read more >
January 28, 2015 - Customs and Border Protection
THIS ERROR MESSAGE WILL RESULT FOR A SHIPMENT FROM CANADA IF THE MANU- ... AN ENTRY SUMMARY INPUT TRANSACTION (APPLICATION EI) CANNOT USE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found