Skip to main content

invoice_sections

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

Overview

Nameinvoice_sections
TypeResource
Idazure.billing.invoice_sections

Fields

NameDatatypeDescription
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
display_nametextfield from the properties object
invoiceSectionNametextfield from the properties object
provisioning_statetextfield from the properties object
reason_codetextfield from the properties object
statetextfield from the properties object
system_idtextfield 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 < > % & \ ? /
target_cloudtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, billingProfileName, invoiceSectionNameGets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_by_billing_profileSELECTbillingAccountName, billingProfileNameLists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
create_or_updateINSERTbillingAccountName, billingProfileName, invoiceSectionNameCreates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
deleteDELETEbillingAccountName, billingProfileName, invoiceSectionNameDeletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
validate_delete_eligibilityEXECbillingAccountName, billingProfileName, invoiceSectionNameValidates if the invoice section can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

SELECT examples

Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

SELECT
billingAccountName,
billingProfileName,
display_name,
invoiceSectionName,
provisioning_state,
reason_code,
state,
system_id,
tags,
target_cloud
FROM azure.billing.vw_invoice_sections
WHERE billingAccountName = '{{ billingAccountName }}'
AND billingProfileName = '{{ billingProfileName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.billing.invoice_sections (
billingAccountName,
billingProfileName,
invoiceSectionName,
tags,
properties
)
SELECT
'{{ billingAccountName }}',
'{{ billingProfileName }}',
'{{ invoiceSectionName }}',
'{{ tags }}',
'{{ properties }}'
;

DELETE example

Deletes the specified invoice_sections resource.

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