Skip to main content

products

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

Overview

Nameproducts
TypeResource
Idazure.billing.products

Fields

NameDatatypeDescription
propertiesobjectA product.
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

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, productNameGets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_by_billing_accountSELECTbillingAccountNameLists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
list_by_billing_profileSELECTbillingAccountName, billingProfileNameLists the products for a billing profile. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
list_by_customerSELECTbillingAccountName, customerNameLists the products for a customer. These don't include products billed based on usage.The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
updateUPDATEbillingAccountName, productNameUpdates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
moveEXECbillingAccountName, productName, data__destinationInvoiceSectionIdMoves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.
validate_move_eligibilityEXECbillingAccountName, productName, data__destinationInvoiceSectionIdValidates if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.

SELECT examples

Lists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.

SELECT
properties,
tags
FROM azure.billing.products
WHERE billingAccountName = '{{ billingAccountName }}';

UPDATE example

Updates a products resource.

/*+ update */
UPDATE azure.billing.products
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
billingAccountName = '{{ billingAccountName }}'
AND productName = '{{ productName }}';