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
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
The ID that uniquely identifies a billing account.
Optional Parameters
The ID that uniquely identifies a customer.
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 policy update
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
The ID that uniquely identifies a billing account.
Optional Parameters
The ID that uniquely identifies a customer.
The policy that controls whether Azure marketplace purchases are allowed for a billing profile.
The ID that uniquely identifies a billing profile.
The policy that controls whether Azure reservation purchases are allowed for a billing profile.
The policy that controls whether users with Azure RBAC access to a subscription can view its charges.
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.