Skip to main content

price_sheets

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

Overview

Nameprice_sheets
TypeResource
Idazure.consumption.price_sheets

Fields

NameDatatypeDescription
idtextThe full qualified ARM ID of an event.
nametextThe ID that uniquely identifies an event.
billingPeriodNametextfield from the properties object
downloadtextfield from the properties object
etagtextThe etag for the resource.
next_linktextfield from the properties object
pricesheetstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTsubscriptionIdGets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.
get_by_billing_periodSELECTbillingPeriodName, subscriptionIdGet the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.
download_by_billing_account_periodEXECbillingAccountId, billingPeriodNameGenerates the pricesheet for the provided billing period asynchronously based on the enrollment id

SELECT examples

Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.

SELECT
id,
name,
billingPeriodName,
download,
etag,
next_link,
pricesheets,
subscriptionId,
tags,
type
FROM azure.consumption.vw_price_sheets
WHERE subscriptionId = '{{ subscriptionId }}';