Jaa


az billing policy

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

Billing policy.

Commands

Name Description Type Status
az billing policy show

Show the policies for a customer or for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.".

Core Preview
az billing policy update

Update the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Core Preview

az billing policy show

Preview

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

Show the policies for a customer or for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.".

az billing policy show --account-name
                       [--customer-name]
                       [--profile-name]

Examples

List the policies for a customer

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

List the policies for a billing profile

az billing policy show --account-name "{billingAccountName}" --profile-name "{billingProfileName}"

Required Parameters

--account-name

The ID that uniquely identifies a billing account.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--customer-name

The ID that uniquely identifies a customer.

--profile-name

The ID that uniquely identifies a billing profile.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az billing policy update

Preview

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

Update the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

az billing policy update --account-name
                         [--customer-name]
                         [--marketplace-purchases {AllAllowed, NotAllowed, OnlyFreeAllowed}]
                         [--profile-name]
                         [--reservation-purchases {Allowed, NotAllowed}]
                         [--view-charges {Allowed, NotAllowed}]

Examples

Update the policy for a billing profile

az billing policy update --account-name "{billingAccountName}" --profile-name "{billingProfileName}" --marketplace-purchases "OnlyFreeAllowed" --reservation-purchases "NotAllowed" --view-charges "Allowed"

Required Parameters

--account-name

The ID that uniquely identifies a billing account.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--customer-name

The ID that uniquely identifies a customer.

--marketplace-purchases

The policy that controls whether Azure marketplace purchases are allowed for a billing profile.

Property Value
Accepted values: AllAllowed, NotAllowed, OnlyFreeAllowed
--profile-name

The ID that uniquely identifies a billing profile.

--reservation-purchases

The policy that controls whether Azure reservation purchases are allowed for a billing profile.

Property Value
Accepted values: Allowed, NotAllowed
--view-charges

The policy that controls whether users with Azure RBAC access to a subscription can view its charges.

Property Value
Accepted values: Allowed, NotAllowed
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False