Skip to main content

savings_plan_orders

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

Overview

Namesavings_plan_orders
TypeResource
Idazure.billing_benefits.savings_plan_orders

Fields

The following fields are returned by SELECT queries:

The request is completed.

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectSavings plan order properties
skuobjectThe SKU to be applied for this resource
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectsavingsPlanOrderId$expandGet a savings plan order.
listselectList all Savings plan orders.
elevateexecsavingsPlanOrderIdElevate 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
savingsPlanOrderIdstringOrder ID of the savings plan
$expandstringMay be used to expand the detail information of some properties.

SELECT examples

Get a savings plan order.

SELECT
id,
name,
properties,
sku,
systemData,
type
FROM azure.billing_benefits.savings_plan_orders
WHERE savingsPlanOrderId = '{{ savingsPlanOrderId }}' -- required
AND $expand = '{{ $expand }}'
;

Lifecycle Methods

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

EXEC azure.billing_benefits.savings_plan_orders.elevate 
@savingsPlanOrderId='{{ savingsPlanOrderId }}' --required
;