Share via


az billing customer

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Billing customer.

Commands

Name Description Type Status
az billing customer list

List the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Core Preview
az billing customer show

Get a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Core Preview

az billing customer list

Preview

Command group 'billing customer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

az billing customer list --account-name
                         [--filter]
                         [--profile-name]
                         [--search]

Examples

List customers by billing account

az billing customer list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"

Required Parameters

--account-name

The ID that uniquely identifies a billing account.

Optional Parameters

--filter

May be used to filter the list of customers.

--profile-name

The ID that uniquely identifies a billing profile.

--search

Used for searching customers by their name. Any customer with name containing the search text will be included in the response.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az billing customer show

Preview

Command group 'billing customer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Get a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

az billing customer show --account-name
                         --customer-name
                         [--expand]

Examples

Show a customer with default properties

az billing customer show --account-name "{billingAccountName}" --name "{customerName}"

Show a customer with desired expanded properties

az billing customer show --expand "enabledAzurePlans,resellers" --account-name "{billingAccountName}" --name "{customerName}"

Required Parameters

--account-name

The ID that uniquely identifies a billing account.

--customer-name --name -n

The ID that uniquely identifies a customer.

Optional Parameters

--expand

May be used to expand enabledAzurePlans and resellers.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.