consumption usage list: Subscription scope usage is not supported for current api version
- 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
Assessment
This issue has not been assessed yet.