Skip to main content

scaling_plans

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

Overview

Namescaling_plans
TypeResource
Idazure.desktop_virtualization.scaling_plans

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
etagtextThe etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
exclusion_tagtextfield from the properties object
friendly_nametextfield from the properties object
host_pool_referencestextfield from the properties object
host_pool_typetextfield from the properties object
identitytextIdentity for the resource.
kindtextMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
managed_bytextfield from the properties object
object_idtextfield from the properties object
plantextPlan for the resource.
resourceGroupNametextfield from the properties object
scalingPlanNametextfield from the properties object
schedulestextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
time_zonetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, scalingPlanName, subscriptionIdGet a scaling plan.
list_by_host_poolSELECThostPoolName, resourceGroupName, subscriptionIdList scaling plan associated with hostpool.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList scaling plans.
list_by_subscriptionSELECTsubscriptionIdList scaling plans in subscription.
createINSERTresourceGroupName, scalingPlanName, subscriptionId, data__propertiesCreate or update a scaling plan.
deleteDELETEresourceGroupName, scalingPlanName, subscriptionIdRemove a scaling plan.
updateUPDATEresourceGroupName, scalingPlanName, subscriptionIdUpdate a scaling plan.

SELECT examples

List scaling plans in subscription.

SELECT
description,
etag,
exclusion_tag,
friendly_name,
host_pool_references,
host_pool_type,
identity,
kind,
managed_by,
object_id,
plan,
resourceGroupName,
scalingPlanName,
schedules,
sku,
subscriptionId,
time_zone
FROM azure.desktop_virtualization.vw_scaling_plans
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new scaling_plans resource.

/*+ create */
INSERT INTO azure.desktop_virtualization.scaling_plans (
resourceGroupName,
scalingPlanName,
subscriptionId,
data__properties,
managedBy,
kind,
identity,
sku,
plan,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ scalingPlanName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ managedBy }}',
'{{ kind }}',
'{{ identity }}',
'{{ sku }}',
'{{ plan }}',
'{{ properties }}'
;

UPDATE example

Updates a scaling_plans resource.

/*+ update */
UPDATE azure.desktop_virtualization.scaling_plans
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND scalingPlanName = '{{ scalingPlanName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified scaling_plans resource.

/*+ delete */
DELETE FROM azure.desktop_virtualization.scaling_plans
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND scalingPlanName = '{{ scalingPlanName }}'
AND subscriptionId = '{{ subscriptionId }}';