Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Consumption] #28274

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/azure-cli/azure/cli/command_modules/consumption/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,8 @@
type: command
short-summary: List the details of Azure resource consumption, either as an invoice or within a billing period.
"""

helps['consumption lot list'] = """
type: command
short-summary: List all Microsoft Azure consumption commitments for a billing account. Or List all Azure credits for a customer.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ def load_arguments(self, _):
cb.argument('resource_groups', options_list='--resource-group-filter', nargs='+', help='Space-separated list of resource groups to filter on.')
cb.argument('resources', options_list='--resource-filter', nargs='+', help='Space-separated list of resource instances to filter on.')
cb.argument('meters', options_list='--meter-filter', nargs='+', help='Space-separated list of meters to filter on. Required if category is usage.')

with self.argument_context('consumption lot') as c:
c.argument('billing_account_id', help='Billing Account ID')
c.argument('billing_profile_id', help='Azure Billing Profile ID.')
c.argument('customer_id', help='Customer ID')
c.argument('filter', help='May be used to filter the lots by Status, Source etc. The filter supports \'eq\', \'lt\', \'gt\', \'le\', \'ge\', and \'and\'. Tag filter is a key value pair string where key and value is separated by a colon (:).')
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"consumption event",
)
class __CMDGroup(AAZCommandGroup):
"""Manage event of Azure resources.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._list import *
Loading
Loading