az billing account
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Billing account.
Commands
Name | Description | Type | Status |
---|---|---|---|
az billing account invoice-section |
Manage account invoice section. |
Core | Preview |
az billing account invoice-section list |
List all invoice sections for which a user has access. |
Core | Preview |
az billing account invoice-section show |
Get the InvoiceSection by id. |
Core | Preview |
az billing account list |
List the billing accounts that a user has access to. |
Core | Preview |
az billing account list-invoice-section |
List the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
Core | Preview |
az billing account reservation |
Manage account reservation. |
Core | Preview |
az billing account reservation list |
List the reservations for a billing account and the roll up counts of reservations group by provisioning states. |
Core | Preview |
az billing account show |
Get a billing account by its ID. |
Core | Preview |
az billing account transaction |
Manage billing acount transaction. |
Core | Preview |
az billing account transaction list |
List the billed and unbilled transactions by billing account name for given start and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice ID and do not include tax. Tax is added to the amount once an invoice is generated. |
Core | Preview |
az billing account update |
Update the properties of a billing account. Currently, displayName and address can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
Core | Preview |
az billing account wait |
Place the CLI in a waiting state until a condition of the billing account is met. |
Core | Preview |
az billing account list
Command group 'billing account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the billing accounts that a user has access to.
az billing account list [--expand]
Examples
List billing accounts
az billing account list
List billing account with desired expanded arguments
az billing account list --expand "soldTo,billingProfiles,billingProfiles/invoiceSections"
List billing account with desired expanded arguments
az billing account list --expand "enrollmentDetails,departments,enrollmentAccounts"
Optional Parameters
May be used to expand the soldTo, invoice sections and billing profiles.
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 account list-invoice-section
Command group 'billing account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
az billing account list-invoice-section --billing-account-name
[--max-items]
[--next-token]
Required Parameters
The ID that uniquely identifies a billing account.
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
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 account show
Command group 'billing account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get a billing account by its ID.
az billing account show --name
[--expand]
Examples
Show an billing acount with expanded properties
az billing account show --expand "soldTo,billingProfiles,billingProfiles/invoiceSections" --name "{billingAccountName}"
Show an billing acount with default properties
az billing account show --name "{billingAccountName}"
Required Parameters
The ID that uniquely identifies a billing account.
Optional Parameters
May be used to expand the soldTo, invoice sections and billing profiles.
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 account update
Command group 'billing account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update the properties of a billing account. Currently, displayName and address can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
az billing account update --name
[--billing-profiles-value]
[--departments]
[--display-name]
[--enrollment-accounts]
[--no-wait]
[--sold-to]
Examples
Update a billing account
az billing account update --name "{billingAccountName}" --display-name "Test Account" --sold-to address-line1="Test Address 1" city="Redmond" company-name="Contoso" country="US" first-name="Test" last-name="User" postal-code="12345" region="WA"
Required Parameters
The ID that uniquely identifies a billing account.
Optional Parameters
The billing profiles associated with the billing account. Expected value: json-string/@json-file.
The departments associated to the enrollment. Expected value: json-string/@json-file.
The billing account name.
The accounts associated to the enrollment. Expected value: json-string/@json-file.
Do not wait for the long-running operation to finish.
The address of the individual or organization that is responsible for the billing account.
Usage: --sold-to first-name=XX last-name=XX company-name=XX address-line1=XX address-line2=XX address-line3=XX city=XX district=XX region=XX country=XX postal-code=XX email=XX phone-number=XX.
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 account wait
Command group 'billing account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Place the CLI in a waiting state until a condition of the billing account is met.
az billing account wait --name
[--created]
[--custom]
[--deleted]
[--exists]
[--expand]
[--interval]
[--timeout]
[--updated]
Examples
Pause executing next line of CLI script until the billing account is successfully updated.
az billing account wait --name "{billingAccountName}" --updated
Required Parameters
The ID that uniquely identifies a billing account.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
May be used to expand the soldTo, invoice sections and billing profiles.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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.