Skip to main content

savings_plan_order_aliases

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

Overview

Namesavings_plan_order_aliases
TypeResource
Idazure.billing_benefits.savings_plan_order_aliases

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
kindstringResource provider kind
propertiesobjectSavings plan order alias 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
getselectsavingsPlanOrderAliasNameGet a savings plan.
createinsertsavingsPlanOrderAliasName, data__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
savingsPlanOrderAliasNamestringName of the savings plan order alias

SELECT examples

Get a savings plan.

SELECT
id,
name,
kind,
properties,
sku,
systemData,
type
FROM azure.billing_benefits.savings_plan_order_aliases
WHERE savingsPlanOrderAliasName = '{{ savingsPlanOrderAliasName }}' -- 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_aliases (
data__sku,
data__kind,
data__properties,
savingsPlanOrderAliasName
)
SELECT
'{{ sku }}' /* required */,
'{{ kind }}',
'{{ properties }}',
'{{ savingsPlanOrderAliasName }}'
RETURNING
id,
name,
kind,
properties,
sku,
systemData,
type
;