Skip to main content

billing_role_definition

Creates, updates, deletes, gets or lists a billing_role_definition resource.

Overview

Namebilling_role_definition
TypeResource
Idazure.billing.billing_role_definition

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
descriptionstringThe role description.
permissionsarrayThe billingPermissions the role has.
roleNamestringThe name of the role. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectDictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_customerselectbilling_account_name, billing_profile_name, customer_name, role_definition_nameGets the definition for a role on a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
get_by_invoice_sectionselectbilling_account_name, billing_profile_name, invoice_section_name, role_definition_nameGets the definition for a role on an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_by_customerselectbilling_account_name, billing_profile_name, customer_nameLists the role definitions for a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
list_by_invoice_sectionselectbilling_account_name, billing_profile_name, invoice_section_nameLists the role definitions for an invoice section. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
get_by_billing_profileselectbilling_account_name, billing_profile_name, role_definition_nameGets the definition for a role on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
get_by_departmentselectbilling_account_name, department_name, role_definition_nameGets the definition for a role on a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
get_by_enrollment_accountselectbilling_account_name, enrollment_account_name, role_definition_nameGets the definition for a role on an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
list_by_billing_profileselectbilling_account_name, billing_profile_nameLists the role definitions for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
list_by_departmentselectbilling_account_name, department_nameList the definition for a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
list_by_enrollment_accountselectbilling_account_name, enrollment_account_nameList the definition for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
get_by_billing_accountselectbilling_account_name, role_definition_nameGets the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
list_by_billing_accountselectbilling_account_nameLists the role definitions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billing_account_namestringThe ID that uniquely identifies a billing account. Required.
billing_profile_namestringThe ID that uniquely identifies a billing profile. Required.
customer_namestringThe ID that uniquely identifies a customer. Required.
department_namestringThe name of the department. Required.
enrollment_account_namestringThe name of the enrollment account. Required.
invoice_section_namestringThe ID that uniquely identifies an invoice section. Required.
role_definition_namestringThe ID that uniquely identifies a role definition. Required.

SELECT examples

Gets the definition for a role on a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

SELECT
id,
name,
description,
permissions,
roleName,
systemData,
tags,
type
FROM azure.billing.billing_role_definition
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND customer_name = '{{ customer_name }}' -- required
AND role_definition_name = '{{ role_definition_name }}' -- required
;