Skip to main content

customers

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

Overview

Namecustomers
TypeResource
Idazure.billing.customers

Fields

The following fields are returned by SELECT queries:

A partner's customer.

NameDatatypeDescription
propertiesobjectA partner's customer.
tagsobjectDictionary 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbillingAccountName, billingProfileName, customerNameGets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
list_by_billing_profileselectbillingAccountName, billingProfileNameexpand, filter, orderBy, top, skip, count, searchLists the customers that are billed to a billing profile. 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_accountselectbillingAccountNameexpand, filter, orderBy, top, skip, count, searchLists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billingAccountNamestringThe ID that uniquely identifies a billing account.
billingProfileNamestringThe ID that uniquely identifies a billing profile.
customerNamestringThe ID that uniquely identifies a customer.
countbooleanThe count query option allows clients to request a count of the matching resources included with the resources in the response.
expandstringMay be used to expand enabledAzurePlans and resellers
filterstringThe filter query option allows clients to filter a collection of resources that are addressed by a request URL.
orderBystringThe orderby query option allows clients to request resources in a particular order.
skipinteger (int64)The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result.
topinteger (int64)The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50.

SELECT examples

Gets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

SELECT
properties,
tags
FROM azure.billing.customers
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND billingProfileName = '{{ billingProfileName }}' -- required
AND customerName = '{{ customerName }}' -- required
;