Skip to main content

savings_plan_order

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

Overview

Namesavings_plan_order
TypeResource
Idazure.billing_benefits.savings_plan_order

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
benefitStartTimestring (date-time)This is the DateTime when the savings plan benefit started.
billingAccountIdstringFully-qualified identifier of the billing account where the benefit is applied. Present only for Enterprise Agreement customers.
billingPlanstringRepresents the billing plan in ISO 8601 format. Required only for monthly billing plans. "P1M" (P1M)
billingProfileIdstringFully-qualified identifier of the billing profile where the benefit is applied. Present only for Field-led or Customer-led customers.
billingScopeIdstringSubscription that will be charged for purchasing the benefit.
customerIdstringFully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers.
displayNamestringDisplay name.
expiryDateTimestring (date-time)Expiry date time.
extendedStatusInfoobject:vartype extended_status_info: ~azure.mgmt.billingbenefits.models.ExtendedStatusInfo
planInformationobjectInformation describing the type of billing plan for this savings plan.
provisioningStatestringProvisioning state. Known values are: "Creating", "PendingBilling", "ConfirmedBilling", "Created", "Succeeded", "Cancelled", "Expired", and "Failed". (Creating, PendingBilling, ConfirmedBilling, Created, Succeeded, Cancelled, Expired, Failed)
savingsPlansarray:vartype savings_plans: list[str]
skuobjectSavings plan SKU. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
termstringRepresent benefit term in ISO 8601 format. Known values are: "P1M", "P1Y", "P3Y", and "P5Y". (P1M, P1Y, P3Y, P5Y)
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsavings_plan_order_id$expandGet a savings plan order.
listselectList all Savings plan orders.
elevateexecsavings_plan_order_idElevate as owner on savings plan order based on billing permissions.

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.

NameDatatypeDescription
savings_plan_order_idstringOrder ID of the savings plan. Required.
$expandstring

SELECT examples

Get a savings plan order.

SELECT
id,
name,
benefitStartTime,
billingAccountId,
billingPlan,
billingProfileId,
billingScopeId,
customerId,
displayName,
expiryDateTime,
extendedStatusInfo,
planInformation,
provisioningState,
savingsPlans,
sku,
systemData,
term,
type
FROM azure.billing_benefits.savings_plan_order
WHERE savings_plan_order_id = '{{ savings_plan_order_id }}' -- required
AND $expand = '{{ $expand }}'
;

Lifecycle Methods

Elevate as owner on savings plan order based on billing permissions.

EXEC azure.billing_benefits.savings_plan_order.elevate 
@savings_plan_order_id='{{ savings_plan_order_id }}' --required
;