Skip to main content

cost_allocation_rules

Overview

Namecost_allocation_rules
TypeResource
Idazure.cost_management.cost_allocation_rules

Fields

NameDatatypeDescription
idstringAzure Resource Manager Id for the rule. This is a read ony value.
namestringName of the rule. This is a read only value.
propertiesobjectThe properties of a cost allocation rule
typestringResource type of the rule. This is a read only value of Microsoft.CostManagement/CostAllocationRule.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountId, ruleNameGet a cost allocation rule by rule name and billing account or enterprise enrollment.
listSELECTbillingAccountIdGet the list of all cost allocation rules for a billing account or enterprise enrollment.
create_or_updateINSERTbillingAccountId, ruleNameCreate/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.
deleteDELETEbillingAccountId, ruleNameDelete cost allocation rule for billing account or enterprise enrollment.
_listEXECbillingAccountIdGet the list of all cost allocation rules for a billing account or enterprise enrollment.
check_name_availabilityEXECbillingAccountIdChecks availability and correctness of a name for a cost allocation rule