properties
Creates, updates, deletes, gets or lists a properties
resource.
Overview
Name | properties |
Type | Resource |
Id | azure.billing.properties |
Fields
The following fields are returned by SELECT
queries:
- get
A billing property.
Name | Datatype | Description |
---|---|---|
properties | object | A billing property. |
tags | object | Dictionary 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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId | includeBillingCountry , includeTransitionStatus | Gets the billing properties for a subscription |
update | update | subscriptionId | 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. |
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.
Name | Datatype | Description |
---|---|---|
subscriptionId | string | The ID that uniquely identifies a billing subscription. |
includeBillingCountry | boolean | A flag that specifies whether or not to include billing country. |
includeTransitionStatus | boolean | A flag that specifies whether or not to include transition status for billing accounts with agreement type Microsoft Customer Agreement. |
SELECT
examples
- get
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
- update
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;