Skip to main content

role_assignments_by_invoice_sections

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

Overview

Namerole_assignments_by_invoice_sections
TypeResource
Idazure.billing.role_assignments_by_invoice_sections

Fields

The following fields are returned by SELECT queries:

The properties of the billing role assignment.

NameDatatypeDescription
propertiesobjectThe properties of the billing role assignment.
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
getselectbillingAccountName, billingProfileName, invoiceSectionName, billingRoleAssignmentNameGets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
listselectbillingAccountName, billingProfileName, invoiceSectionNamefilter, top, skipLists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
createinsertbillingAccountName, billingProfileName, invoiceSectionName, data__roleDefinitionIdAdds a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
deletedeletebillingAccountName, billingProfileName, invoiceSectionName, billingRoleAssignmentNameDeletes a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer 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.
billingRoleAssignmentNamestringThe ID that uniquely identifies a role assignment.
invoiceSectionNamestringThe ID that uniquely identifies an invoice section.
filterstringThe filter query option allows clients to filter a collection of resources that are addressed by a request URL.
skipinteger (int64)The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result.
topinteger (int64)The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50.

SELECT examples

Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

SELECT
properties,
tags
FROM azure.billing.role_assignments_by_invoice_sections
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND billingProfileName = '{{ billingProfileName }}' -- required
AND invoiceSectionName = '{{ invoiceSectionName }}' -- required
AND billingRoleAssignmentName = '{{ billingRoleAssignmentName }}' -- required
;

INSERT examples

Adds a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

INSERT INTO azure.billing.role_assignments_by_invoice_sections (
data__principalPuid,
data__principalId,
data__principalTenantId,
data__roleDefinitionId,
data__scope,
data__userAuthenticationType,
data__userEmailAddress,
billingAccountName,
billingProfileName,
invoiceSectionName
)
SELECT
'{{ principalPuid }}',
'{{ principalId }}',
'{{ principalTenantId }}',
'{{ roleDefinitionId }}' /* required */,
'{{ scope }}',
'{{ userAuthenticationType }}',
'{{ userEmailAddress }}',
'{{ billingAccountName }}',
'{{ billingProfileName }}',
'{{ invoiceSectionName }}'
RETURNING
properties,
tags
;

DELETE examples

Deletes a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

DELETE FROM azure.billing.role_assignments_by_invoice_sections
WHERE billingAccountName = '{{ billingAccountName }}' --required
AND billingProfileName = '{{ billingProfileName }}' --required
AND invoiceSectionName = '{{ invoiceSectionName }}' --required
AND billingRoleAssignmentName = '{{ billingRoleAssignmentName }}' --required
;