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

NameDatatypeDescription
descriptiontextfield from the properties object
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
customerNametextfield from the properties object
permissionstextfield from the properties object
roleDefinitionNametextfield from the properties object
role_nametextfield from the properties object
tagstextDictionary 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

NameAccessible byRequired ParamsDescription
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.
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.
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_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_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.
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.
list_by_customerSELECTbillingAccountName, billingProfileName, customerNameLists the role definitions for a customer. The operation is supported for billing accounts with agreement type Microsoft Partner 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.

SELECT examples

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

SELECT
description,
billingAccountName,
billingProfileName,
customerName,
permissions,
roleDefinitionName,
role_name,
tags
FROM azure.billing.vw_role_definitions
WHERE billingAccountName = '{{ billingAccountName }}';