Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.billing.accounts

Fields

NameDatatypeDescription
account_statustextfield from the properties object
account_status_reason_codetextfield from the properties object
account_sub_typetextfield from the properties object
account_typetextfield from the properties object
agreement_typetextfield from the properties object
billingAccountNametextfield from the properties object
billing_relationship_typestextfield from the properties object
display_nametextfield from the properties object
enrollment_detailstextfield from the properties object
has_no_billing_profilestextfield from the properties object
has_read_accesstextfield from the properties object
notification_email_addresstextfield from the properties object
primary_billing_tenant_idtextfield from the properties object
provisioning_statetextfield from the properties object
qualificationstextfield from the properties object
registration_numbertextfield from the properties object
sold_totextfield 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 < > % & \ ? /
tax_idstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountNameGets a billing account by its ID.
listSELECTLists the billing accounts that a user has access to.
updateUPDATEbillingAccountNameUpdates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.
add_payment_termsEXECbillingAccountNameAdds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.
cancel_payment_termsEXECbillingAccountNameCancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.
confirm_transitionEXECbillingAccountNameGets the transition details for a billing account that has transitioned from agreement type Microsoft Online Services Program to agreement type Microsoft Customer Agreement.
validate_payment_termsEXECbillingAccountNameValidates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and account type 'Enterprise'.

SELECT examples

Lists the billing accounts that a user has access to.

SELECT
account_status,
account_status_reason_code,
account_sub_type,
account_type,
agreement_type,
billingAccountName,
billing_relationship_types,
display_name,
enrollment_details,
has_no_billing_profiles,
has_read_access,
notification_email_address,
primary_billing_tenant_id,
provisioning_state,
qualifications,
registration_number,
sold_to,
tags,
tax_ids
FROM azure.billing.vw_accounts
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure.billing.accounts
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
billingAccountName = '{{ billingAccountName }}';