Azure / Azure/azure-cli

consumption usage list: Subscription scope usage is not supported for current api version

Open
#17,102 14 comments 1 reaction 0 assignees View on GitHub
act-codegen-extensibility-squad consumption Consumption - UsageDetailsandExport Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az consumption usage list`

**Errors:**
```
(400) Subscription scope usage is not supported for current api version. Please use api version after 2019-10-01 (Request ID: 8ed4d0e8-a4ac-4be2-883e-c7095c544f21)
```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

$subscriptions = az account list | ConvertFrom-Json
foreach ($subscription in $subscriptions) {
$usage = az consumption usage list --subscription $subscription.id --debug | ConvertFrom-Json
}

- _Put any pre-requisite steps here..._
- `az consumption usage list`

## Expected Behavior

## Environment Summary
```
Windows-10-10.0.18362-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.19.1

Extensions:
interactive 0.4.4

```
## Additional Context
How do we target a specific API version? I do not see this in the documentation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.