Skip to main content

role_definitions

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

Overview

Namerole_definitions
TypeResource
Idazure.billing.role_definitions

Fields

The following fields are returned by SELECT queries:

The properties of a role definition.

NameDatatypeDescription
propertiesobjectThe properties of a role definition.
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 < > % & \ ? /

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_customerselectbillingAccountName, billingProfileName, customerName, roleDefinitionNameGets the definition for a role on a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
get_by_billing_profileselectbillingAccountName, billingProfileName, roleDefinitionNameGets 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.
list_by_customerselectbillingAccountName, billingProfileName, customerNameLists the role definitions for a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
get_by_departmentselectbillingAccountName, departmentName, roleDefinitionNameGets the definition for a role on a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
get_by_enrollment_accountselectbillingAccountName, enrollmentAccountName, roleDefinitionNameGets the definition for a role on an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
list_by_billing_profileselectbillingAccountName, billingProfileNameLists 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.
get_by_billing_accountselectbillingAccountName, roleDefinitionNameGets 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_departmentselectbillingAccountName, departmentNameList the definition for a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
list_by_enrollment_accountselectbillingAccountName, enrollmentAccountNameList the definition for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
list_by_billing_accountselectbillingAccountNameLists 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
billingAccountNamestringThe ID that uniquely identifies a billing account.
billingProfileNamestringThe ID that uniquely identifies a billing profile.
customerNamestringThe ID that uniquely identifies a customer.
departmentNamestringThe name of the department.
enrollmentAccountNamestringThe name of the enrollment account.
roleDefinitionNamestringThe ID that uniquely identifies a role definition.

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
properties,
tags
FROM azure.billing.role_definitions
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND billingProfileName = '{{ billingProfileName }}' -- required
AND customerName = '{{ customerName }}' -- required
AND roleDefinitionName = '{{ roleDefinitionName }}' -- required
;