bebound / azure-cli

Azure Command-Line Interface
MIT License
0 stars 0 forks source link

az consumption usage list fails on Ubuntu 20.04.5 LTS #33

Open bebound opened 1 year ago

bebound commented 1 year ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az consumption usage list

Errors:

list() missing 1 required positional argument: 'scope'
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
    raise ex
cli/core/commands/__init__.py, ln 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 657, in _run_job
    cmd_copy.exception_handler(ex)
...
azure/cli/core/__init__.py, ln 493, in default_command_handler
    return op(**command_args)
cli/command_modules/consumption/custom.py, ln 33, in cli_consumption_list_usage
    return client.list(expand=expand, filter=filter_expression)
TypeError: list() missing 1 required positional argument: 'scope'

To Reproduce:

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

Expected Behavior

Environment Summary

Linux-5.15.0-1019-aws-x86_64-with-glibc2.29
Python 3.8.10
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

Copy from https://github.com/Azure/azure-cli/issues/25268

similar-bot-test[bot] commented 1 year ago
Find similar issue https://github.com/Azure/azure-cli/issues/12458.
Issue title Running 'az consumption usage list' fails
Create time 2020-03-05
Comment number 3