Skip to main content

savings_plans

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

Overview

Namesavings_plans
TypeResource
Idazure.billing_benefits.savings_plans

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
applied_scope_propertiestextfield from the properties object
applied_scope_typetextfield from the properties object
benefit_start_timetextfield 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
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
skutextThe resource model definition representing SKU
system_datatextfield from the properties object
termtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
user_friendly_applied_scope_typetextfield from the properties object
utilizationtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTsavingsPlanId, savingsPlanOrderIdGet savings plan.
listSELECTsavingsPlanOrderIdList savings plans in an order.
list_allSELECTList savings plans.
updateUPDATEsavingsPlanId, savingsPlanOrderIdUpdate savings plan.
validate_updateEXECsavingsPlanId, savingsPlanOrderIdValidate savings plan patch.

SELECT examples

List savings plans.

SELECT
id,
name,
applied_scope_properties,
applied_scope_type,
benefit_start_time,
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,
provisioning_state,
purchase_date_time,
renew,
renew_destination,
renew_properties,
renew_source,
savingsPlanId,
savingsPlanOrderId,
sku,
system_data,
term,
type,
user_friendly_applied_scope_type,
utilization
FROM azure.billing_benefits.vw_savings_plans
;

UPDATE example

Updates a savings_plans resource.

/*+ update */
UPDATE azure.billing_benefits.savings_plans
SET
properties = '{{ properties }}'
WHERE
savingsPlanId = '{{ savingsPlanId }}'
AND savingsPlanOrderId = '{{ savingsPlanOrderId }}';