Skip to main content

savings_plans

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

Overview

Namesavings_plans
TypeResource
Idazure.billing.savings_plans

Fields

NameDatatypeDescription
applied_scope_propertiestextfield from the properties object
applied_scope_typetextfield from the properties object
benefit_start_timetextfield from the properties object
billingAccountNametextfield from the properties object
billing_account_idtextfield from the properties object
billing_plantextfield from the properties object
billing_profile_idtextfield from the properties object
billing_scope_idtextfield from the properties object
commitmenttextfield from the properties object
customer_idtextfield from the properties object
display_nametextfield from the properties object
display_provisioning_statetextfield from the properties object
effective_date_timetextfield from the properties object
expiry_date_timetextfield from the properties object
extended_status_infotextfield from the properties object
product_codetextfield from the properties object
provisioning_statetextfield from the properties object
purchase_date_timetextfield from the properties object
renewtextfield from the properties object
renew_destinationtextfield from the properties object
renew_propertiestextfield from the properties object
renew_sourcetextfield from the properties object
savingsPlanIdtextfield from the properties object
savingsPlanOrderIdtextfield from the properties object
skuobjectThe SKU to be applied for this resource
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 < > % & \ ? /
termtextfield from the properties object
user_friendly_applied_scope_typetextfield from the properties object
utilizationtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
get_by_billing_accountSELECTbillingAccountName, savingsPlanId, savingsPlanOrderIdGet savings plan by billing account.
list_by_billing_accountSELECTbillingAccountNameList savings plans by billing account.
list_by_savings_plan_orderSELECTbillingAccountName, savingsPlanOrderIdList savings plans in an order by billing account.
update_by_billing_accountEXECbillingAccountName, savingsPlanId, savingsPlanOrderIdUpdate savings plan by billing account.
validate_update_by_billing_accountEXECbillingAccountName, savingsPlanId, savingsPlanOrderIdValidate savings plan patch by billing account.

SELECT examples

List savings plans by billing account.

SELECT
applied_scope_properties,
applied_scope_type,
benefit_start_time,
billingAccountName,
billing_account_id,
billing_plan,
billing_profile_id,
billing_scope_id,
commitment,
customer_id,
display_name,
display_provisioning_state,
effective_date_time,
expiry_date_time,
extended_status_info,
product_code,
provisioning_state,
purchase_date_time,
renew,
renew_destination,
renew_properties,
renew_source,
savingsPlanId,
savingsPlanOrderId,
sku,
tags,
term,
user_friendly_applied_scope_type,
utilization
FROM azure.billing.vw_savings_plans
WHERE billingAccountName = '{{ billingAccountName }}';