az billing product
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Billing product.
Commands
Name | Description | Type | Status |
---|---|---|---|
az billing product list |
List the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. |
Core | Preview |
az billing product move |
Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement. |
Core | Preview |
az billing product show |
Get a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
Core | Preview |
az billing product update |
Update the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
Core | Preview |
az billing product validate-move |
Validate if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement. |
Core | Preview |
az billing product list
Command group 'billing product' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
az billing product list --account-name
[--customer-name]
[--filter]
[--invoice-section-name]
[--profile-name]
Examples
List products by invoice name
az billing product list --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --invoice-section-name "{invoiceSectionName}"
Required Parameters
The ID that uniquely identifies a billing account.
Optional Parameters
The ID that uniquely identifies a customer.
May be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value are separated by a colon (:).
The ID that uniquely identifies an invoice section.
The ID that uniquely identifies a billing profile.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az billing product move
Command group 'billing product' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.
az billing product move --account-name
--name
[--destination-invoice-section-id]
Examples
Move a product's charges to a new invoice section
az billing product move --account-name "{billingAccountName}" --destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}" --name "{productName}"
Required Parameters
The ID that uniquely identifies a billing account.
The ID that uniquely identifies a product.
Optional Parameters
The destination invoice section id.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az billing product show
Command group 'billing product' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
az billing product show --account-name
--name
Examples
Shgow a product information
az billing product show --account-name "{billingAccountName}" --name "{productName}"
Required Parameters
The ID that uniquely identifies a billing account.
The ID that uniquely identifies a product.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az billing product update
Command group 'billing product' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
az billing product update --account-name
--name
[--auto-renew {Off, On}]
[--billing-frequency {Monthly, OneTime, UsageBased}]
[--status {Active, AutoRenew, Cancelled, Disabled, Expired, Expiring, Inactive, PastDue}]
Examples
Update properties of a product
az billing product update --account-name "{billingAccountName}" --auto-renew "Off" --name "{productName}"
Required Parameters
The ID that uniquely identifies a billing account.
The ID that uniquely identifies a product.
Optional Parameters
Indicates whether auto renewal is turned on or off for a product.
The frequency at which the product will be billed.
The current status of the product.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az billing product validate-move
Command group 'billing product' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Validate if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.
az billing product validate-move --account-name
--name
[--destination-invoice-section-id]
Examples
Validate if a product's charges can be moved to a new invoice section
az billing product validate-move --account-name "{billingAccountName}" --destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}" --name "{productName}"
Validate if a product's charges can be moved to a new invoice section
az billing product validate-move --account-name "{billingAccountName}" --destination-invoice-section-id "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{newInvoiceSectionName}" --name "{productName}"
Required Parameters
The ID that uniquely identifies a billing account.
The ID that uniquely identifies a product.
Optional Parameters
The destination invoice section id.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI