שתף באמצעות


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

--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.

--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 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

--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.

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.

Accepted values: Allowed, NotAllowed
--view-charges

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

Accepted values: Allowed, NotAllowed
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.