Skip to main content

savings_plan_order_alias

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

Overview

Namesavings_plan_order_alias
TypeResource
Idazure.billing_benefits.savings_plan_order_alias

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.
appliedScopePropertiesobjectProperties specific to applied scope type. Not required if not applicable.
appliedScopeTypestringType of the Applied Scope. Known values are: "Single", "Shared", and "ManagementGroup". (Single, Shared, ManagementGroup)
billingPlanstringRepresents the billing plan in ISO 8601 format. Required only for monthly billing plans. "P1M" (P1M)
billingScopeIdstringSubscription that will be charged for purchasing the benefit.
commitmentobjectCommitment towards the benefit.
displayNamestringDisplay name.
kindstringResource provider kind.
provisioningStatestringProvisioning state. Known values are: "Creating", "PendingBilling", "ConfirmedBilling", "Created", "Succeeded", "Cancelled", "Expired", and "Failed". (Creating, PendingBilling, ConfirmedBilling, Created, Succeeded, Cancelled, Expired, Failed)
renewbooleanSetting this to true will automatically purchase a new benefit on the expiration date time.
savingsPlanOrderIdstringIdentifier of the savings plan created.
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_alias_nameGet a savings plan.
createinsertsavings_plan_order_alias_name, skuCreate a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 _.

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_alias_namestringName of the savings plan order alias. Required.

SELECT examples

Get a savings plan.

SELECT
id,
name,
appliedScopeProperties,
appliedScopeType,
billingPlan,
billingScopeId,
commitment,
displayName,
kind,
provisioningState,
renew,
savingsPlanOrderId,
sku,
systemData,
term,
type
FROM azure.billing_benefits.savings_plan_order_alias
WHERE savings_plan_order_alias_name = '{{ savings_plan_order_alias_name }}' -- required
;

INSERT examples

Create a savings plan. Learn more about permissions needed at https://go.microsoft.com/fwlink/?linkid=2215851 _.

INSERT INTO azure.billing_benefits.savings_plan_order_alias (
properties,
sku,
kind,
savings_plan_order_alias_name
)
SELECT
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ kind }}',
'{{ savings_plan_order_alias_name }}'
RETURNING
id,
name,
kind,
properties,
sku,
systemData,
type
;