Skip to main content

properties

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

Overview

Nameproperties
TypeResource
Idazure.billing.properties

Fields

The following fields are returned by SELECT queries:

A billing property.

NameDatatypeDescription
propertiesobjectA billing property.
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
getselectsubscriptionIdincludeBillingCountry, includeTransitionStatusGets 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.

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
subscriptionIdstringThe ID that uniquely identifies a billing subscription.
includeBillingCountrybooleanA flag that specifies whether or not to include billing country.
includeTransitionStatusbooleanA flag that specifies whether or not to include transition status for billing accounts with agreement type Microsoft Customer Agreement.

SELECT examples

Gets the billing properties for a subscription

SELECT
properties,
tags
FROM azure.billing.properties
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND includeBillingCountry = '{{ includeBillingCountry }}'
AND includeTransitionStatus = '{{ includeTransitionStatus }}'
;

UPDATE examples

Updates 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.

UPDATE azure.billing.properties
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties,
tags;