Skip to main content

customers

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

Overview

Namecustomers
TypeResource
Idazure.billing.customers

Fields

NameDatatypeDescription
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
billing_profile_display_nametextfield from the properties object
billing_profile_idtextfield from the properties object
customerNametextfield from the properties object
display_nametextfield from the properties object
enabled_azure_planstextfield from the properties object
resellerstextfield from the properties object
statustextfield 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 < > % & \ ? /

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, billingProfileName, customerNameGets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
get_by_billing_accountSELECTbillingAccountName, customerNameGets a customer by its ID at billing account level. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
list_by_billing_accountSELECTbillingAccountNameLists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
list_by_billing_profileSELECTbillingAccountName, billingProfileNameLists the customers that are billed to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

SELECT examples

Lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

SELECT
billingAccountName,
billingProfileName,
billing_profile_display_name,
billing_profile_id,
customerName,
display_name,
enabled_azure_plans,
resellers,
status,
system_id,
tags
FROM azure.billing.vw_customers
WHERE billingAccountName = '{{ billingAccountName }}';