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

NameDatatypeDescription
aliasNametextfield from the properties object
auto_renewtextfield from the properties object
beneficiarytextfield from the properties object
beneficiary_tenant_idtextfield from the properties object
billingAccountNametextfield from the properties object
billing_frequencytextfield from the properties object
billing_policiestextfield from the properties object
billing_profile_display_nametextfield from the properties object
billing_profile_idtextfield from the properties object
billing_profile_nametextfield from the properties object
billing_subscription_idtextfield from the properties object
consumption_cost_centertextfield from the properties object
customer_display_nametextfield from the properties object
customer_idtextfield from the properties object
customer_nametextfield from the properties object
display_nametextfield from the properties object
enrollment_account_display_nametextfield from the properties object
enrollment_account_idtextfield from the properties object
enrollment_account_subscription_detailstextfield from the properties object
invoice_section_display_nametextfield from the properties object
invoice_section_idtextfield from the properties object
invoice_section_nametextfield from the properties object
last_month_chargestextfield from the properties object
month_to_date_chargestextfield from the properties object
next_billing_cycle_detailstextfield from the properties object
offer_idtextfield from the properties object
operation_statustextfield from the properties object
product_categorytextfield from the properties object
product_typetextfield from the properties object
product_type_idtextfield from the properties object
provisioning_statetextfield from the properties object
provisioning_tenant_idtextfield from the properties object
purchase_datetextfield from the properties object
quantitytextfield from the properties object
renewal_term_detailstextfield from the properties object
resellertextfield from the properties object
resource_uritextfield from the properties object
sku_descriptiontextfield from the properties object
sku_idtextfield from the properties object
statustextfield from the properties object
subscription_idtextfield from the properties object
suspension_reason_detailstextfield from the properties object
suspension_reasonstextfield from the properties object
system_overridestextfield 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 < > % & \ ? /
term_durationtextfield from the properties object
term_end_datetextfield from the properties object
term_start_datetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaliasName, billingAccountNameGets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.
list_by_billing_accountSELECTbillingAccountNameLists the subscription aliases for a billing account. The operation is supported for seat based billing subscriptions.
create_or_updateINSERTaliasName, billingAccountNameCreates or updates a billing subscription by its alias ID. The operation is supported for seat based billing subscriptions.

SELECT examples

Lists the subscription aliases for a billing account. The operation is supported for seat based billing subscriptions.

SELECT
aliasName,
auto_renew,
beneficiary,
beneficiary_tenant_id,
billingAccountName,
billing_frequency,
billing_policies,
billing_profile_display_name,
billing_profile_id,
billing_profile_name,
billing_subscription_id,
consumption_cost_center,
customer_display_name,
customer_id,
customer_name,
display_name,
enrollment_account_display_name,
enrollment_account_id,
enrollment_account_subscription_details,
invoice_section_display_name,
invoice_section_id,
invoice_section_name,
last_month_charges,
month_to_date_charges,
next_billing_cycle_details,
offer_id,
operation_status,
product_category,
product_type,
product_type_id,
provisioning_state,
provisioning_tenant_id,
purchase_date,
quantity,
renewal_term_details,
reseller,
resource_uri,
sku_description,
sku_id,
status,
subscription_id,
suspension_reason_details,
suspension_reasons,
system_overrides,
tags,
term_duration,
term_end_date,
term_start_date
FROM azure.billing.vw_subscriptions_aliases
WHERE billingAccountName = '{{ billingAccountName }}';

INSERT example

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

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