Skip to main content

properties

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

Overview

Nameproperties
TypeResource
Idazure.billing.properties

Fields

NameDatatypeDescription
account_admin_notification_email_addresstextfield from the properties object
billing_account_agreement_typetextfield from the properties object
billing_account_display_nametextfield from the properties object
billing_account_idtextfield from the properties object
billing_account_sold_to_countrytextfield from the properties object
billing_account_statustextfield from the properties object
billing_account_status_reason_codetextfield from the properties object
billing_account_sub_typetextfield from the properties object
billing_account_typetextfield from the properties object
billing_currencytextfield from the properties object
billing_profile_display_nametextfield from the properties object
billing_profile_idtextfield from the properties object
billing_profile_payment_method_familytextfield from the properties object
billing_profile_payment_method_typetextfield from the properties object
billing_profile_spending_limittextfield from the properties object
billing_profile_spending_limit_detailstextfield from the properties object
billing_profile_statustextfield from the properties object
billing_profile_status_reason_codetextfield from the properties object
billing_tenant_idtextfield from the properties object
cost_centertextfield from the properties object
customer_display_nametextfield from the properties object
customer_idtextfield from the properties object
customer_statustextfield from the properties object
enrollment_detailstextfield from the properties object
invoice_section_display_nametextfield from the properties object
invoice_section_idtextfield from the properties object
invoice_section_statustextfield from the properties object
invoice_section_status_reason_codetextfield from the properties object
is_account_admintextfield from the properties object
is_transitioned_billing_accounttextfield from the properties object
product_idtextfield from the properties object
product_nametextfield from the properties object
sku_descriptiontextfield from the properties object
sku_idtextfield from the properties object
subscriptionIdtextfield from the properties object
subscription_billing_statustextfield from the properties object
subscription_billing_status_detailstextfield from the properties object
subscription_billing_typetextfield from the properties object
subscription_service_usage_addresstextfield from the properties object
subscription_workload_typetextfield 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
getSELECTsubscriptionIdGets the billing properties for a subscription
updateUPDATEsubscriptionIdUpdates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.

SELECT examples

Gets the billing properties for a subscription

SELECT
account_admin_notification_email_address,
billing_account_agreement_type,
billing_account_display_name,
billing_account_id,
billing_account_sold_to_country,
billing_account_status,
billing_account_status_reason_code,
billing_account_sub_type,
billing_account_type,
billing_currency,
billing_profile_display_name,
billing_profile_id,
billing_profile_payment_method_family,
billing_profile_payment_method_type,
billing_profile_spending_limit,
billing_profile_spending_limit_details,
billing_profile_status,
billing_profile_status_reason_code,
billing_tenant_id,
cost_center,
customer_display_name,
customer_id,
customer_status,
enrollment_details,
invoice_section_display_name,
invoice_section_id,
invoice_section_status,
invoice_section_status_reason_code,
is_account_admin,
is_transitioned_billing_account,
product_id,
product_name,
sku_description,
sku_id,
subscriptionId,
subscription_billing_status,
subscription_billing_status_details,
subscription_billing_type,
subscription_service_usage_address,
subscription_workload_type,
tags
FROM azure.billing.vw_properties
WHERE subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a properties resource.

/*+ update */
UPDATE azure.billing.properties
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}';