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

NameDatatypeDescription
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
billingRoleAssignmentNametextfield from the properties object
billing_account_display_nametextfield from the properties object
billing_account_idtextfield from the properties object
billing_profile_display_nametextfield from the properties object
billing_profile_idtextfield from the properties object
billing_request_idtextfield from the properties object
created_by_principal_idtextfield from the properties object
created_by_principal_puidtextfield from the properties object
created_by_principal_tenant_idtextfield from the properties object
created_by_user_email_addresstextfield from the properties object
created_ontextfield from the properties object
customer_display_nametextfield from the properties object
customer_idtextfield from the properties object
invoiceSectionNametextfield from the properties object
invoice_section_display_nametextfield from the properties object
invoice_section_idtextfield from the properties object
modified_by_principal_idtextfield from the properties object
modified_by_principal_puidtextfield from the properties object
modified_by_principal_tenant_idtextfield from the properties object
modified_by_user_email_addresstextfield from the properties object
modified_ontextfield from the properties object
principal_display_nametextfield from the properties object
principal_idtextfield from the properties object
principal_puidtextfield from the properties object
principal_tenant_idtextfield from the properties object
principal_tenant_nametextfield from the properties object
principal_typetextfield from the properties object
provisioning_statetextfield from the properties object
role_definition_idtextfield from the properties object
scopetextfield 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 < > % & \ ? /
user_authentication_typetextfield from the properties object
user_email_addresstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, billingProfileName, billingRoleAssignmentName, invoiceSectionNameGets 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, invoiceSectionNameLists 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, billingRoleAssignmentName, invoiceSectionNameDeletes a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

SELECT examples

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

SELECT
billingAccountName,
billingProfileName,
billingRoleAssignmentName,
billing_account_display_name,
billing_account_id,
billing_profile_display_name,
billing_profile_id,
billing_request_id,
created_by_principal_id,
created_by_principal_puid,
created_by_principal_tenant_id,
created_by_user_email_address,
created_on,
customer_display_name,
customer_id,
invoiceSectionName,
invoice_section_display_name,
invoice_section_id,
modified_by_principal_id,
modified_by_principal_puid,
modified_by_principal_tenant_id,
modified_by_user_email_address,
modified_on,
principal_display_name,
principal_id,
principal_puid,
principal_tenant_id,
principal_tenant_name,
principal_type,
provisioning_state,
role_definition_id,
scope,
tags,
user_authentication_type,
user_email_address
FROM azure.billing.vw_role_assignments_by_invoice_sections
WHERE billingAccountName = '{{ billingAccountName }}'
AND billingProfileName = '{{ billingProfileName }}'
AND invoiceSectionName = '{{ invoiceSectionName }}';

INSERT example

Use the following StackQL query and manifest file to create a new role_assignments_by_invoice_sections resource.

/*+ create */
INSERT INTO azure.billing.role_assignments_by_invoice_sections (
billingAccountName,
billingProfileName,
invoiceSectionName,
data__roleDefinitionId,
principalPuid,
principalId,
principalTenantId,
roleDefinitionId,
scope,
userAuthenticationType,
userEmailAddress
)
SELECT
'{{ billingAccountName }}',
'{{ billingProfileName }}',
'{{ invoiceSectionName }}',
'{{ data__roleDefinitionId }}',
'{{ principalPuid }}',
'{{ principalId }}',
'{{ principalTenantId }}',
'{{ roleDefinitionId }}',
'{{ scope }}',
'{{ userAuthenticationType }}',
'{{ userEmailAddress }}'
;

DELETE example

Deletes the specified role_assignments_by_invoice_sections resource.

/*+ delete */
DELETE FROM azure.billing.role_assignments_by_invoice_sections
WHERE billingAccountName = '{{ billingAccountName }}'
AND billingProfileName = '{{ billingProfileName }}'
AND billingRoleAssignmentName = '{{ billingRoleAssignmentName }}'
AND invoiceSectionName = '{{ invoiceSectionName }}';