Skip to main content

subscriptions_aliases

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

Overview

Namesubscriptions_aliases
TypeResource
Idazure.billing.subscriptions_aliases

Fields

The following fields are returned by SELECT queries:

A billing subscription alias.

NameDatatypeDescription
propertiesobjectThe properties of a(n) BillingSubscriptionAlias
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, aliasNameGets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.
list_by_billing_accountselectbillingAccountNameincludeDeleted, filter, orderBy, top, skip, count, searchLists the subscription aliases for a billing account. The operation is supported for seat based billing subscriptions.
create_or_updateinsertbillingAccountName, aliasNameCreates or updates a billing subscription by its alias ID. The operation is supported for seat based billing subscriptions.

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
aliasNamestringThe ID that uniquely identifies a subscription alias.
billingAccountNamestringThe ID that uniquely identifies a billing account.
countbooleanThe count query option allows clients to request a count of the matching resources included with the resources in the response.
filterstringThe filter query option allows clients to filter a collection of resources that are addressed by a request URL.
includeDeletedbooleanCan be used to get deleted billing subscriptions.
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 subscription by its alias ID. The operation is supported for seat based billing subscriptions.

SELECT
properties,
tags
FROM azure.billing.subscriptions_aliases
WHERE billingAccountName = '{{ billingAccountName }}' -- required
AND aliasName = '{{ aliasName }}' -- required
;

INSERT examples

Creates or updates a billing subscription by its alias ID. The operation is supported for seat based billing subscriptions.

INSERT INTO azure.billing.subscriptions_aliases (
data__tags,
data__properties,
billingAccountName,
aliasName
)
SELECT
'{{ tags }}',
'{{ properties }}',
'{{ billingAccountName }}',
'{{ aliasName }}'
RETURNING
properties,
tags
;