Skip to main content

profiles

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

Overview

Nameprofiles
TypeResource
Idazure.billing.profiles

Fields

NameDatatypeDescription
bill_totextfield from the properties object
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
billing_relationship_typetextfield from the properties object
currencytextfield from the properties object
current_payment_termtextfield from the properties object
display_nametextfield from the properties object
enabled_azure_planstextfield from the properties object
has_read_accesstextfield from the properties object
indirect_relationship_infotextfield from the properties object
invoice_daytextfield from the properties object
invoice_email_opt_intextfield from the properties object
invoice_recipientstextfield from the properties object
other_payment_termstextfield from the properties object
po_numbertextfield from the properties object
provisioning_statetextfield from the properties object
ship_totextfield from the properties object
sold_totextfield from the properties object
spending_limittextfield from the properties object
spending_limit_detailstextfield from the properties object
statustextfield from the properties object
status_reason_codetextfield 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_cloudstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, billingProfileNameGets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
list_by_billing_accountSELECTbillingAccountNameLists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.
create_or_updateINSERTbillingAccountName, billingProfileNameCreates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.
deleteDELETEbillingAccountName, billingProfileNameDeletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
validate_delete_eligibilityEXECbillingAccountName, billingProfileNameValidates if the billing profile can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

SELECT examples

Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.

SELECT
bill_to,
billingAccountName,
billingProfileName,
billing_relationship_type,
currency,
current_payment_term,
display_name,
enabled_azure_plans,
has_read_access,
indirect_relationship_info,
invoice_day,
invoice_email_opt_in,
invoice_recipients,
other_payment_terms,
po_number,
provisioning_state,
ship_to,
sold_to,
spending_limit,
spending_limit_details,
status,
status_reason_code,
system_id,
tags,
target_clouds
FROM azure.billing.vw_profiles
WHERE billingAccountName = '{{ billingAccountName }}';

INSERT example

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

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

DELETE example

Deletes the specified profiles resource.

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